|
| const Params * | params () const |
| |
| | FreebsdArmSystem (Params *p) |
| |
| | ~FreebsdArmSystem () |
| |
| void | initState () |
| | Initialise the system. More...
|
| |
| void | startup () |
| | startup() is the final initialization call before simulation. More...
|
| |
| void | mapPid (ThreadContext *tc, uint32_t pid) |
| | This function creates a new task Id for the given pid. More...
|
| |
| const Params * | params () const |
| |
| | GenericArmSystem (Params *p) |
| |
| virtual | ~GenericArmSystem () |
| |
| const Params * | params () const |
| |
| | ArmSystem (Params *p) |
| |
| | ~ArmSystem () |
| |
| virtual Addr | fixFuncEventAddr (Addr addr) |
| | Fix up an address used to match PCs for hooking simulator events on to target function executions. More...
|
| |
| bool | haveSecurity () const |
| | Returns true if this system implements the Security Extensions. More...
|
| |
| bool | haveLPAE () const |
| | Returns true if this system implements the Large Physical Address Extension. More...
|
| |
| bool | haveVirtualization () const |
| | Returns true if this system implements the virtualization Extensions. More...
|
| |
| bool | haveCrypto () const |
| | Returns true if this system implements the Crypto Extension. More...
|
| |
| void | setGenericTimer (GenericTimer *generic_timer) |
| | Sets the pointer to the Generic Timer. More...
|
| |
| void | setGIC (BaseGic *gic) |
| | Sets the pointer to the GIC. More...
|
| |
| GenericTimer * | getGenericTimer () const |
| | Get a pointer to the system's generic timer model. More...
|
| |
| BaseGic * | getGIC () const |
| | Get a pointer to the system's GIC. More...
|
| |
| bool | highestELIs64 () const |
| | Returns true if the register width of the highest implemented exception level is 64 bits (ARMv8) More...
|
| |
| ExceptionLevel | highestEL () const |
| | Returns the highest implemented exception level. More...
|
| |
| Addr | resetAddr () const |
| | Returns the reset address if the highest implemented exception level is 64 bits (ARMv8) More...
|
| |
| bool | haveLargeAsid64 () const |
| | Returns true if ASID is 16 bits in AArch64 (ARMv8) More...
|
| |
| bool | haveSVE () const |
| | Returns true if SVE is implemented (ARMv8) More...
|
| |
| unsigned | sveVL () const |
| | Returns the SVE vector length at reset, in quadwords. More...
|
| |
| bool | haveLSE () const |
| | Returns true if LSE is implemented (ARMv8.1) More...
|
| |
| bool | havePAN () const |
| | Returns true if Priviledge Access Never is implemented. More...
|
| |
| uint8_t | physAddrRange64 () const |
| | Returns the supported physical address range in bits if the highest implemented exception level is 64 bits (ARMv8) More...
|
| |
| uint8_t | physAddrRange () const |
| | Returns the supported physical address range in bits. More...
|
| |
| Addr | physAddrMask () const |
| | Returns the physical address mask. More...
|
| |
| bool | haveSemihosting () const |
| | Is Arm Semihosting support enabled? More...
|
| |
| void | init () override |
| | After all objects have been created and all ports are connected, check that the system port is connected. More...
|
| |
| MasterPort & | getSystemPort () |
| | Get a reference to the system port that can be used by non-structural simulation objects like processes or threads, or external entities like loaders and debuggers, etc, to access the memory system. More...
|
| |
| Port & | getPort (const std::string &if_name, PortID idx=InvalidPortID) override |
| | Additional function to return the Port of a memory object. More...
|
| |
| unsigned int | cacheLineSize () const |
| | Get the cache line size of the system. More...
|
| |
| ThreadContext * | findFreeContext () |
| |
| ThreadContext * | getThreadContext (ContextID tid) const |
| |
| bool | schedule (PCEvent *event) override |
| |
| bool | remove (PCEvent *event) override |
| |
| unsigned | numContexts () const |
| |
| int | numRunningContexts () |
| | Return number of running (non-halted) thread contexts in system. More...
|
| |
| KvmVM * | getKvmVM () |
| | Get a pointer to the Kernel Virtual Machine (KVM) SimObject, if present. More...
|
| |
| bool | validKvmEnvironment () const |
| | Verify gem5 configuration will support KVM emulation. More...
|
| |
| PhysicalMemory & | getPhysMem () |
| | Get a pointer to access the physical memory of the system. More...
|
| |
| Addr | freeMemSize () const |
| | Amount of physical memory that is still free. More...
|
| |
| Addr | memSize () const |
| | Amount of physical memory that exists. More...
|
| |
| bool | isMemAddr (Addr addr) const |
| | Check if a physical address is within a range of a memory that is part of the global address map. More...
|
| |
| Arch | getArch () const |
| | Get the architecture. More...
|
| |
| ByteOrder | getGuestByteOrder () const |
| | Get the guest byte order. More...
|
| |
| Addr | getPageBytes () const |
| | Get the page bytes for the ISA. More...
|
| |
| Addr | getPageShift () const |
| | Get the number of bits worth of in-page address for the ISA. More...
|
| |
| ThermalModel * | getThermalModel () const |
| | The thermal model used for this system (if any). More...
|
| |
| MasterID | getMasterId (const SimObject *master, std::string submaster=std::string()) |
| | Request an id used to create a request object in the system. More...
|
| |
| MasterID | getGlobalMasterId (const std::string &master_name) |
| | Registers a GLOBAL MasterID, which is a MasterID not related to any particular SimObject; since no SimObject is passed, the master gets registered by providing the full master name. More...
|
| |
| std::string | getMasterName (MasterID master_id) |
| | Get the name of an object for a given request id. More...
|
| |
| MasterID | lookupMasterId (const SimObject *obj) const |
| | Looks up the MasterID for a given SimObject returns an invalid MasterID (invldMasterId) if not found. More...
|
| |
| MasterID | lookupMasterId (const std::string &name) const |
| | Looks up the MasterID for a given object name string returns an invalid MasterID (invldMasterId) if not found. More...
|
| |
| MasterID | maxMasters () |
| | Get the number of masters registered in the system. More...
|
| |
| void | regStats () override |
| | Callback to set stat parameters. More...
|
| |
| uint64_t | incWorkItemsBegin () |
| | Called by pseudo_inst to track the number of work items started by this system. More...
|
| |
| uint64_t | incWorkItemsEnd () |
| | Called by pseudo_inst to track the number of work items completed by this system. More...
|
| |
| int | markWorkItem (int index) |
| | Called by pseudo_inst to mark the cpus actively executing work items. More...
|
| |
| void | workItemBegin (uint32_t tid, uint32_t workid) |
| |
| void | workItemEnd (uint32_t tid, uint32_t workid) |
| |
| bool | breakpoint () |
| |
| | System (Params *p) |
| |
| | ~System () |
| |
| void | initState () override |
| | initState() is called on each SimObject when not restoring from a checkpoint. More...
|
| |
| const Params * | params () const |
| |
| const AddrRange & | m5opRange () const |
| | Range used by memory-mapped m5 pseudo-ops if enabled. More...
|
| |
| Addr | getKernelStart () const |
| | Returns the address the kernel starts at. More...
|
| |
| Addr | getKernelEnd () const |
| | Returns the address the kernel ends at. More...
|
| |
| Addr | getKernelEntry () const |
| | Returns the address the entry point to the kernel code. More...
|
| |
| Addr | allocPhysPages (int npages) |
| | Allocate npages contiguous unused physical pages. More...
|
| |
| ContextID | registerThreadContext (ThreadContext *tc, ContextID assigned=InvalidContextID) |
| |
| void | replaceThreadContext (ThreadContext *tc, ContextID context_id) |
| |
| void | serialize (CheckpointOut &cp) const override |
| | Serialize an object. More...
|
| |
| void | unserialize (CheckpointIn &cp) override |
| | Unserialize an object. More...
|
| |
| void | drainResume () override |
| | Resume execution after a successful drain. More...
|
| |
| bool | isAtomicMode () const |
| | Is the system in atomic mode? More...
|
| |
| bool | isTimingMode () const |
| | Is the system in timing mode? More...
|
| |
| bool | bypassCaches () const |
| | Should caches be bypassed? More...
|
| |
| Enums::MemoryMode | getMemoryMode () const |
| | Get the memory mode of the system. More...
|
| |
| void | setMemoryMode (Enums::MemoryMode mode) |
| | Change the memory mode of the system. More...
|
| |
| template<class T , typename... Args> |
| T * | addFuncEvent (const SymbolTable *symtab, const char *lbl, const std::string &desc, Args... args) |
| | Add a function-based event to the given function, to be looked up in the specified symbol table. More...
|
| |
| template<class T > |
| T * | addFuncEvent (const SymbolTable *symtab, const char *lbl) |
| |
| template<class T , typename... Args> |
| T * | addFuncEventOrPanic (const SymbolTable *symtab, const char *lbl, Args... args) |
| |
| template<class T , typename... Args> |
| T * | addKernelFuncEvent (const char *lbl, Args... args) |
| | Add a function-based event to a kernel symbol. More...
|
| |
| template<class T , typename... Args> |
| T * | addKernelFuncEventOrPanic (const char *lbl, Args... args) |
| |
| const Params * | params () const |
| |
| | SimObject (const Params *_params) |
| |
| virtual | ~SimObject () |
| |
| virtual const std::string | name () const |
| |
| virtual void | loadState (CheckpointIn &cp) |
| | loadState() is called on each SimObject when restoring from a checkpoint. More...
|
| |
| virtual void | regProbePoints () |
| | Register probe points for this object. More...
|
| |
| virtual void | regProbeListeners () |
| | Register probe listeners for this object. More...
|
| |
| ProbeManager * | getProbeManager () |
| | Get the probe manager for this object. More...
|
| |
| DrainState | drain () override |
| | Provide a default implementation of the drain interface for objects that don't need draining. More...
|
| |
| virtual void | memWriteback () |
| | Write back dirty buffers to memory using functional writes. More...
|
| |
| virtual void | memInvalidate () |
| | Invalidate the contents of memory buffers. More...
|
| |
| | EventManager (EventManager &em) |
| |
| | EventManager (EventManager *em) |
| |
| | EventManager (EventQueue *eq) |
| |
| EventQueue * | eventQueue () const |
| |
| void | schedule (Event &event, Tick when) |
| |
| void | deschedule (Event &event) |
| |
| void | reschedule (Event &event, Tick when, bool always=false) |
| |
| void | schedule (Event *event, Tick when) |
| |
| void | deschedule (Event *event) |
| |
| void | reschedule (Event *event, Tick when, bool always=false) |
| |
| void | wakeupEventQueue (Tick when=(Tick) -1) |
| |
| void | setCurTick (Tick newVal) |
| |
| | Serializable () |
| |
| virtual | ~Serializable () |
| |
| void | serializeSection (CheckpointOut &cp, const char *name) const |
| | Serialize an object into a new section. More...
|
| |
| void | serializeSection (CheckpointOut &cp, const std::string &name) const |
| |
| void | unserializeSection (CheckpointIn &cp, const char *name) |
| | Unserialize an a child object. More...
|
| |
| void | unserializeSection (CheckpointIn &cp, const std::string &name) |
| |
| DrainState | drainState () const |
| | Return the current drain state of an object. More...
|
| |
| virtual void | notifyFork () |
| | Notify a child process of a fork. More...
|
| |
| | Group ()=delete |
| |
| | Group (const Group &)=delete |
| |
| Group & | operator= (const Group &)=delete |
| |
| | Group (Group *parent, const char *name=nullptr) |
| | Construct a new statistics group. More...
|
| |
| virtual | ~Group () |
| |
| virtual void | resetStats () |
| | Callback to reset stats. More...
|
| |
| virtual void | preDumpStats () |
| | Callback before stats are dumped. More...
|
| |
| void | addStat (Stats::Info *info) |
| | Register a stat with this group. More...
|
| |
| const std::map< std::string, Group * > & | getStatGroups () const |
| | Get all child groups associated with this object. More...
|
| |
| const std::vector< Info * > & | getStats () const |
| | Get all stats associated with this object. More...
|
| |
| void | addStatGroup (const char *name, Group *block) |
| | Add a stat block as a child of this block. More...
|
| |
|
| static ArmSystem * | getArmSystem (System *sys) |
| | Casts the provided System object into a valid ArmSystem, it fails otherwise. More...
|
| |
| static ArmSystem * | getArmSystem (ThreadContext *tc) |
| | Returns a valid ArmSystem pointer if using ARM ISA, it fails otherwise. More...
|
| |
| static bool | haveSecurity (ThreadContext *tc) |
| | Returns true if the system of a specific thread context implements the Security Extensions. More...
|
| |
| static bool | haveVirtualization (ThreadContext *tc) |
| | Returns true if the system of a specific thread context implements the virtualization Extensions. More...
|
| |
| static bool | haveLPAE (ThreadContext *tc) |
| | Returns true if the system of a specific thread context implements the Large Physical Address Extension. More...
|
| |
| static bool | highestELIs64 (ThreadContext *tc) |
| | Returns true if the register width of the highest implemented exception level for the system of a specific thread context is 64 bits (ARMv8) More...
|
| |
| static ExceptionLevel | highestEL (ThreadContext *tc) |
| | Returns the highest implemented exception level for the system of a specific thread context. More...
|
| |
| static bool | haveEL (ThreadContext *tc, ExceptionLevel el) |
| | Return true if the system implements a specific exception level. More...
|
| |
| static Addr | resetAddr (ThreadContext *tc) |
| | Returns the reset address if the highest implemented exception level for the system of a specific thread context is 64 bits (ARMv8) More...
|
| |
| static uint8_t | physAddrRange (ThreadContext *tc) |
| | Returns the supported physical address range in bits for the system of a specific thread context. More...
|
| |
| static Addr | physAddrMask (ThreadContext *tc) |
| | Returns the physical address mask for the system of a specific thread context. More...
|
| |
| static bool | haveLargeAsid64 (ThreadContext *tc) |
| | Returns true if ASID is 16 bits for the system of a specific thread context while in AArch64 (ARMv8) More...
|
| |
| static bool | haveSemihosting (ThreadContext *tc) |
| | Is Arm Semihosting support enabled? More...
|
| |
| static uint64_t | callSemihosting64 (ThreadContext *tc, uint32_t op, uint64_t param) |
| | Make a Semihosting call from aarch64. More...
|
| |
| static uint32_t | callSemihosting32 (ThreadContext *tc, uint32_t op, uint32_t param) |
| | Make a Semihosting call from aarch32. More...
|
| |
| static void | printSystems () |
| |
| static void | serializeAll (CheckpointOut &cp) |
| | Serialize all SimObjects in the system. More...
|
| |
| static SimObject * | find (const char *name) |
| | Find the SimObject with the given name and return a pointer to it. More...
|
| |
| static const std::string & | currentSection () |
| | Get the fully-qualified name of the active section. More...
|
| |
| static void | serializeAll (const std::string &cpt_dir) |
| |
| static void | unserializeGlobals (CheckpointIn &cp) |
| |
| static std::vector< System * > | systemList |
| |
| static int | numSystemsRunning = 0 |
| |
| static const int | maxPID = 32768 |
| |
| static int | ckptCount = 0 |
| |
| static int | ckptMaxCount = 0 |
| |
| static int | ckptPrevCount = -1 |
| |
| ObjectFile * | getBootLoader (ObjectFile *const obj) |
| | Get a boot loader that matches the kernel. More...
|
| |
| std::string | stripSystemName (const std::string &master_name) const |
| | Strips off the system name from a master name. More...
|
| |
| MasterID | _getMasterId (const SimObject *master, const std::string &master_name) |
| | helper function for getMasterId More...
|
| |
| std::string | leafMasterName (const SimObject *master, const std::string &submaster) |
| | Helper function for constructing the full (sub)master name by providing the root master and the relative submaster name. More...
|
| |
| virtual void | serializeSymtab (CheckpointOut &os) const |
| | If needed, serialize additional symbol table entries for a specific subclass of this system. More...
|
| |
| virtual void | unserializeSymtab (CheckpointIn &cp) |
| | If needed, unserialize additional symbol table entries for a specific subclass of this system. More...
|
| |
| | Drainable () |
| |
| virtual | ~Drainable () |
| |
| void | signalDrainDone () const |
| | Signal that an object is drained. More...
|
| |
| Linux::DebugPrintkEvent * | debugPrintkEvent |
| | PC based event to skip the dprink() call and emulate its functionality. More...
|
| |
| std::vector< std::unique_ptr< ObjectFile > > | bootLoaders |
| | Bootloaders. More...
|
| |
| ObjectFile * | bootldr |
| | Pointer to the bootloader object. More...
|
| |
| const bool | _haveSecurity |
| | True if this system implements the Security Extensions. More...
|
| |
| const bool | _haveLPAE |
| | True if this system implements the Large Physical Address Extension. More...
|
| |
| const bool | _haveVirtualization |
| | True if this system implements the virtualization Extensions. More...
|
| |
| const bool | _haveCrypto |
| | True if this system implements the Crypto Extension. More...
|
| |
| GenericTimer * | _genericTimer |
| | Pointer to the Generic Timer wrapper. More...
|
| |
| BaseGic * | _gic |
| |
| const Addr | _resetAddr |
| | Reset address (ARMv8) More...
|
| |
| bool | _highestELIs64 |
| | True if the register width of the highest implemented exception level is 64 bits (ARMv8) More...
|
| |
| const uint8_t | _physAddrRange64 |
| | Supported physical address range in bits if the highest implemented exception level is 64 bits (ARMv8) More...
|
| |
| const bool | _haveLargeAsid64 |
| | True if ASID is 16 bits in AArch64 (ARMv8) More...
|
| |
| const bool | _haveSVE |
| | True if SVE is implemented (ARMv8) More...
|
| |
| const unsigned | _sveVL |
| | SVE vector length at reset, in quadwords. More...
|
| |
| const bool | _haveLSE |
| | True if LSE is implemented (ARMv8.1) More...
|
| |
| const unsigned | _havePAN |
| | True if Priviledge Access Never is implemented. More...
|
| |
| ArmSemihosting *const | semihosting |
| | True if the Semihosting interface is enabled. More...
|
| |
| KvmVM *const | kvmVM |
| |
| PhysicalMemory | physmem |
| |
| Enums::MemoryMode | memoryMode |
| |
| const unsigned int | _cacheLineSize |
| |
| uint64_t | workItemsBegin |
| |
| uint64_t | workItemsEnd |
| |
| uint32_t | numWorkIds |
| |
| std::vector< bool > | activeCpus |
| |
| std::vector< MasterInfo > | masters |
| | This array is a per-system list of all devices capable of issuing a memory system request and an associated string for each master id. More...
|
| |
| ThermalModel * | thermalModel |
| |
| Params * | _params |
| |
| const AddrRange | _m5opRange |
| | Range for memory-mapped m5 pseudo ops. More...
|
| |
| const SimObjectParams * | _params |
| | Cached copy of the object parameters. More...
|
| |
| EventQueue * | eventq |
| | A pointer to this object's event queue. More...
|
| |