Go to the documentation of this file.
30 #ifndef __PROCESS_HH__
31 #define __PROCESS_HH__
60 class EmulationPageTable;
286 std::shared_ptr<FDArray>
fds;
309 #endif // __PROCESS_HH__
This is a simple scalar statistic, like a counter.
void assignThreadContext(ContextID context_id)
std::vector< EmulatedDriver * > drivers
loader::MemoryImage interpImage
const char * progName() const
virtual void clone(ThreadContext *old_tc, ThreadContext *new_tc, Process *new_p, RegVal flags)
EmulatedDriver * findDriver(std::string filename)
Find an emulated device driver.
std::unique_ptr< SETranslatingPortProxy > initVirtMem
std::string tgtCwd
The cwd members are used to track changes to the current working directory for the purpose of executi...
statistics::Scalar numSyscalls
static std::stack< std::string > path
void initState() override
initState() is called on each SimObject when not restoring from a checkpoint.
std::shared_ptr< FDArray > fds
void serialize(CheckpointOut &cp) const override
Serialize an object.
std::shared_ptr< MemState > memState
virtual void syscall(ThreadContext *tc)
void allocateMem(Addr vaddr, int64_t size, bool clobber=false)
bool fixupFault(Addr vaddr)
Attempt to fix up a fault at vaddr by allocating a page on the stack.
uint64_t childClearTID
Calls a futex wakeup at the address specified by this pointer when this process exits.
DrainState
Object drain/handover states.
static Process * tryLoaders(const ProcessParams ¶ms, loader::ObjectFile *obj_file)
ThreadContext is the external interface to all thread state for anything outside of the CPU.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
const Params & params() const
EmulationPageTable * pTable
virtual Process * load(const ProcessParams ¶ms, loader::ObjectFile *obj_file)=0
Each subclass needs to implement this method.
std::vector< std::string > argv
std::string absolutePath(const std::string &path, bool host_fs)
Return an absolute path given a relative path paired with the current working directory of the proces...
Process(const ProcessParams ¶ms, EmulationPageTable *pTable, loader::ObjectFile *obj_file)
std::string checkPathRedirect(const std::string &filename)
Redirect file path if it matches any keys initialized by system object.
Abstract superclass for simulation objects.
void replicatePage(Addr vaddr, Addr new_paddr, ThreadContext *old_tc, ThreadContext *new_tc, bool alloc_page)
loader::ObjectFile * getInterpreter()
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
std::vector< std::string > envp
EmulatedDriver is an abstract base class for fake SE-mode device drivers.
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...
int ContextID
Globally unique thread context ID.
virtual bool mmapGrowsDown() const
Does mmap region grow upward or downward from mmapEnd? Most platforms grow downward,...
void revokeThreadContext(int context_id)
After delegating a thread context to a child process no longer should relate to the ThreadContext.
void init() override
init() is called after all C++ SimObjects have been created and all ports are connected.
std::ostream CheckpointOut
std::vector< ContextID > contextIds
DrainState drain() override
Draining is the process of clearing out the states of SimObjects.These are the SimObjects that are pa...
void operator=(const Loader &)=delete
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
std::vector< ContextID > vforkContexts
loader::MemoryImage image
loader::ObjectFile * objFile
Each instance of a Loader subclass will have a chance to try to load an object file when tryLoaders i...
Generated on Sun Jul 30 2023 01:56:49 for gem5 by doxygen 1.8.17