34 #ifndef __PROCESS_HH__
35 #define __PROCESS_HH__
43 #include "arch/registers.hh"
46 #include "config/the_isa.hh"
94 std::string
fullPath(
const std::string &filename);
203 std::shared_ptr<FDArray>
fds;
218 #endif // __PROCESS_HH__
virtual SyscallDesc * getDesc(int callnum)=0
void revokeThreadContext(int context_id)
After delegating a thread context to a child process no longer should relate to the ThreadContext...
uint64_t childClearTID
Calls a futex wakeup at the address specified by this pointer when this process exits.
DrainState
Object drain/handover states.
std::vector< ContextID > contextIds
void allocateMem(Addr vaddr, int64_t size, bool clobber=false)
virtual bool mmapGrowsDown() const
Does mmap region grow upward or downward from mmapEnd? Most platforms grow downward, but a few (such as Alpha) grow upward instead, so they can override this method to return false.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
SETranslatingPortProxy initVirtMem
void regStats() override
Register statistics for this object.
Stats::Scalar numSyscalls
const Params * params() const
virtual TheISA::IntReg getSyscallArg(ThreadContext *tc, int &i)=0
ObjectFile * getInterpreter()
void initState() override
initState() is called on each SimObject when not restoring from a checkpoint.
std::shared_ptr< MemState > memState
ThreadContext is the external interface to all thread state for anything outside of the CPU...
Declaration of Statistics objects.
This is a simple scalar statistic, like a counter.
DrainState drain() override
Notify an object that it needs to drain its state.
void replicatePage(Addr vaddr, Addr new_paddr, ThreadContext *old_tc, ThreadContext *new_tc, bool alloc_page)
void assignThreadContext(ContextID context_id)
bool map(Addr vaddr, Addr paddr, int size, bool cacheable=true)
Maps a contiguous range of virtual addresses in this process's address space to a contiguous range of...
const char * progName() const
ThreadContext * findFreeContext()
std::vector< std::string > envp
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,16,32,64}_t.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
std::string getcwd() const
EmulatedDriver * findDriver(std::string filename)
Find an emulated device driver.
virtual void syscall(int64_t callnum, ThreadContext *tc, Fault *fault)
Declaration of base class for page table.
std::string fullPath(const std::string &filename)
This class provides the wrapper interface for the system call implementations which are defined in th...
bool fixupStackFault(Addr vaddr)
Attempt to fix up a fault at vaddr by allocating a page on the stack.
std::ostream CheckpointOut
Process(ProcessParams *params, ObjectFile *obj_file)
void setpgid(uint64_t pgid)
TranslatingPortProxy Object Declaration for SE.
virtual void setSyscallArg(ThreadContext *tc, int i, TheISA::IntReg val)=0
EmulatedDriver is an abstract base class for fake SE-mode device drivers.
void serialize(CheckpointOut &cp) const override
Serialize an object.
virtual void setSyscallReturn(ThreadContext *tc, SyscallReturn return_value)=0
std::vector< std::string > argv
This class represents the return value from an emulated system call, including any errno setting...
void clone(ThreadContext *old_tc, ThreadContext *new_tc, Process *new_p, TheISA::IntReg flags)
std::shared_ptr< FaultBase > Fault
Abstract superclass for simulation objects.
int ContextID
Globally unique thread context ID.
std::shared_ptr< FDArray > fds
std::vector< EmulatedDriver * > drivers