32 #ifndef __SPARC_PROCESS_HH__
33 #define __SPARC_PROCESS_HH__
59 template<
class IntType>
86 Addr max_stack_size = 8 * 1024 * 1024;
90 Addr stack_base = 0xf0000000
ULL;
93 Addr next_thread_stack_base = stack_base - max_stack_size;
96 Addr mmap_end = 0x70000000;
98 memState = std::make_shared<MemState>(brk_point, stack_base,
100 next_thread_stack_base,
108 void argsInit(
int intSize,
int pageSize);
130 Addr max_stack_size = 8 * 1024 * 1024;
134 Addr stack_base = 0x80000000000
ULL;
137 Addr next_thread_stack_base = stack_base - max_stack_size;
140 Addr mmap_end = 0xfffff80000000000
ULL;
142 memState = std::make_shared<MemState>(brk_point, stack_base,
144 next_thread_stack_base,
152 void argsInit(
int intSize,
int pageSize);
166 #endif // __SPARC_PROCESS_HH__
void setSyscallArg(ThreadContext *tc, int i, SparcISA::IntReg val)
void initState()
initState() is called on each SimObject when not restoring from a checkpoint.
void argsInit(int pageSize)
SparcProcess(ProcessParams *params, ObjectFile *objFile, Addr _StackBias)
void initState()
initState() is called on each SimObject when not restoring from a checkpoint.
const Params * params() const
virtual TheISA::IntReg getSyscallArg(ThreadContext *tc, int &i)=0
SparcISA::IntReg getSyscallArg(ThreadContext *tc, int &i)
T roundUp(const T &val, const U &align)
std::shared_ptr< MemState > memState
ThreadContext is the external interface to all thread state for anything outside of the CPU...
void flushWindows(ThreadContext *tc)
Sparc64Process(ProcessParams *params, ObjectFile *objFile)
Faux page table class indended to stop the usage of an architectural page table, when there is none d...
void setSyscallReturn(ThreadContext *tc, SyscallReturn return_value)
virtual void flushWindows(ThreadContext *tc)=0
SparcISA::IntReg getSyscallArg(ThreadContext *tc, int &i)
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
#define ULL(N)
uint64_t constant
void argsInit(int intSize, int pageSize)
Declarations of a non-full system Page Table.
void flushWindows(ThreadContext *tc)
virtual void handleTrap(int trapNum, ThreadContext *tc, Fault *fault)
void initState()
initState() is called on each SimObject when not restoring from a checkpoint.
void argsInit(int intSize, int pageSize)
NoArchPageTable ArchPageTable
This class represents the return value from an emulated system call, including any errno setting...
void setSyscallArg(ThreadContext *tc, int i, SparcISA::IntReg val)
Sparc32Process(ProcessParams *params, ObjectFile *objFile)
std::shared_ptr< FaultBase > Fault