Put the ProcessInfo and StackTrace objects into the ISA namespaces.
--HG-- extra : convert_revision : 1626703583f02a1c9823874290462c1b6bdb6c3c
This commit is contained in:
parent
16a012e80d
commit
f1a55570d3
6 changed files with 683 additions and 670 deletions
|
@ -40,8 +40,9 @@
|
|||
#include "sim/system.hh"
|
||||
|
||||
using namespace std;
|
||||
using namespace AlphaISA;
|
||||
|
||||
namespace AlphaISA
|
||||
{
|
||||
ProcessInfo::ProcessInfo(ThreadContext *_tc)
|
||||
: tc(_tc)
|
||||
{
|
||||
|
@ -366,3 +367,4 @@ StackTrace::dump()
|
|||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -35,6 +35,9 @@
|
|||
#include "cpu/static_inst.hh"
|
||||
|
||||
class ThreadContext;
|
||||
|
||||
namespace AlphaISA
|
||||
{
|
||||
class StackTrace;
|
||||
|
||||
class ProcessInfo
|
||||
|
@ -117,5 +120,6 @@ StackTrace::trace(ThreadContext *tc, StaticInstPtr inst)
|
|||
trace(tc, !inst->isReturn());
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
#endif // __ARCH_ALPHA_STACKTRACE_HH__
|
||||
|
|
|
@ -40,8 +40,8 @@
|
|||
#include "sim/system.hh"
|
||||
|
||||
using namespace std;
|
||||
using namespace SparcISA;
|
||||
|
||||
namespace SparcISA
|
||||
{
|
||||
ProcessInfo::ProcessInfo(ThreadContext *_tc)
|
||||
: tc(_tc)
|
||||
{
|
||||
|
@ -369,3 +369,4 @@ StackTrace::dump()
|
|||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -35,6 +35,8 @@
|
|||
#include "cpu/static_inst.hh"
|
||||
|
||||
class ThreadContext;
|
||||
namespace SparcISA
|
||||
{
|
||||
class StackTrace;
|
||||
|
||||
class ProcessInfo
|
||||
|
@ -117,5 +119,6 @@ StackTrace::trace(ThreadContext *tc, StaticInstPtr inst)
|
|||
trace(tc, !inst->isReturn());
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
#endif // __ARCH_SPARC_STACKTRACE_HH__
|
||||
|
|
|
@ -33,9 +33,9 @@
|
|||
|
||||
#include <map>
|
||||
|
||||
#include "arch/stacktrace.hh"
|
||||
#include "cpu/static_inst.hh"
|
||||
#include "sim/host.hh"
|
||||
#include "arch/stacktrace.hh"
|
||||
|
||||
class ThreadContext;
|
||||
|
||||
|
@ -66,7 +66,7 @@ class FunctionProfile
|
|||
const SymbolTable *symtab;
|
||||
ProfileNode top;
|
||||
std::map<Addr, Counter> pc_count;
|
||||
StackTrace trace;
|
||||
TheISA::StackTrace trace;
|
||||
|
||||
public:
|
||||
FunctionProfile(const SymbolTable *symtab);
|
||||
|
|
|
@ -28,6 +28,9 @@
|
|||
* Authors: Ali Saidi
|
||||
*/
|
||||
|
||||
//To get endianness
|
||||
#include "arch/isa_traits.hh"
|
||||
|
||||
#include "mem/port.hh"
|
||||
#include "sim/byteswap.hh"
|
||||
|
||||
|
@ -35,7 +38,7 @@ template <typename T>
|
|||
void
|
||||
FunctionalPort::writeHtoG(Addr addr, T d)
|
||||
{
|
||||
d = htog(d);
|
||||
d = TheISA::htog(d);
|
||||
writeBlob(addr, (uint8_t*)&d, sizeof(T));
|
||||
}
|
||||
|
||||
|
@ -46,6 +49,6 @@ FunctionalPort::readGtoH(Addr addr)
|
|||
{
|
||||
T d;
|
||||
readBlob(addr, (uint8_t*)&d, sizeof(T));
|
||||
return gtoh(d);
|
||||
return TheISA::gtoh(d);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue