|
gem5
v20.1.0.5
|
#include <system.hh>
Public Types | |
| typedef ArmSystemParams | Params |
Public Types inherited from System | |
| typedef SystemParams | Params |
Public Types inherited from SimObject | |
| typedef SimObjectParams | Params |
Public Member Functions | |
| const Params * | params () const |
| ArmSystem (Params *p) | |
| 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... | |
| void | setPowerController (FVPBasePwrCtrl *pwr_ctrl) |
| Sets the pointer to the Power Controller. 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... | |
| FVPBasePwrCtrl * | getPowerController () const |
| Get a pointer to the system's power controller. More... | |
| bool | highestELIs64 () const |
| Returns true if the register width of the highest implemented exception level is 64 bits (ARMv8) More... | |
| ArmISA::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... | |
| void | setResetAddr (Addr addr) |
| bool | haveLargeAsid64 () const |
| Returns true if ASID is 16 bits in AArch64 (ARMv8) More... | |
| bool | haveTME () const |
| Returns true if this system implements the transactional memory extension (ARMv9) 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 | haveVHE () const |
| Returns true if Virtualization Host Extensions is implemented. More... | |
| bool | havePAN () const |
| Returns true if Priviledge Access Never is implemented. More... | |
| bool | haveSecEL2 () 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... | |
Public Member Functions inherited from System | |
| void | init () override |
| After all objects have been created and all ports are connected, check that the system port is connected. More... | |
| void | startup () override |
| startup() is the final initialization call before simulation. More... | |
| RequestPort & | 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... | |
| bool | schedule (PCEvent *event) override |
| bool | remove (PCEvent *event) override |
| 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... | |
| void | addDeviceMemory (RequestorID requestorId, AbstractMemory *deviceMemory) |
| Add a physical memory range for a device. More... | |
| bool | isDeviceMemAddr (PacketPtr pkt) const |
| Similar to isMemAddr but for devices. More... | |
| AbstractMemory * | getDeviceMemory (RequestorID _id) const |
| Return a pointer to the device memory. 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... | |
| RequestorID | getRequestorId (const SimObject *requestor, std::string subrequestor=std::string()) |
| Request an id used to create a request object in the system. More... | |
| RequestorID | getGlobalRequestorId (const std::string &requestor_name) |
| Registers a GLOBAL RequestorID, which is a RequestorID not related to any particular SimObject; since no SimObject is passed, the requestor gets registered by providing the full requestor name. More... | |
| std::string | getRequestorName (RequestorID requestor_id) |
| Get the name of an object for a given request id. More... | |
| RequestorID | lookupRequestorId (const SimObject *obj) const |
| Looks up the RequestorID for a given SimObject returns an invalid RequestorID (invldRequestorId) if not found. More... | |
| RequestorID | lookupRequestorId (const std::string &name) const |
| Looks up the RequestorID for a given object name string returns an invalid RequestorID (invldRequestorId) if not found. More... | |
| RequestorID | maxRequestors () |
| Get the number of requestors 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 () | |
| const Params * | params () const |
| const AddrRange & | m5opRange () const |
| Range used by memory-mapped m5 pseudo-ops if enabled. 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... | |
Public Member Functions inherited from SimObject | |
| 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 | initState () |
| initState() is called on each SimObject when not 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... | |
Public Member Functions inherited from EventManager | |
| 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) |
| This function is not needed by the usual gem5 event loop but may be necessary in derived EventQueues which host gem5 on other schedulers. More... | |
| void | setCurTick (Tick newVal) |
| EventManager (EventManager &em) | |
| Event manger manages events in the event queue. More... | |
| EventManager (EventManager *em) | |
| EventManager (EventQueue *eq) | |
Public Member Functions inherited from Serializable | |
| 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) |
Public Member Functions inherited from Drainable | |
| DrainState | drainState () const |
| Return the current drain state of an object. More... | |
| virtual void | notifyFork () |
| Notify a child process of a fork. More... | |
Public Member Functions inherited from Stats::Group | |
| 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... | |
| const Info * | resolveStat (std::string name) const |
| Resolve a stat by its name within this group. More... | |
| Group ()=delete | |
| Group (const Group &)=delete | |
| Group & | operator= (const Group &)=delete |
Static Public Member Functions | |
| 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 ArmISA::ExceptionLevel | highestEL (ThreadContext *tc) |
| Returns the highest implemented exception level for the system of a specific thread context. More... | |
| static bool | haveEL (ThreadContext *tc, ArmISA::ExceptionLevel el) |
| Return true if the system implements a specific exception level. More... | |
| static bool | haveTME (ThreadContext *tc) |
| Returns true if the system of a specific thread context implements the transactional memory extension (TME) 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 bool | callSemihosting64 (ThreadContext *tc, bool gem5_ops=false) |
| Make a Semihosting call from aarch64. More... | |
| static bool | callSemihosting32 (ThreadContext *tc, bool gem5_ops=false) |
| Make a Semihosting call from aarch32. More... | |
| static bool | callSemihosting (ThreadContext *tc, bool gem5_ops=false) |
| Make a Semihosting call from either aarch64 or aarch32. More... | |
| static void | callSetStandByWfi (ThreadContext *tc) |
| Make a call to notify the power controller of STANDBYWFI assertion. More... | |
| static void | callClearStandByWfi (ThreadContext *tc) |
| Make a call to notify the power controller of STANDBYWFI deassertion. More... | |
| static bool | callSetWakeRequest (ThreadContext *tc) |
| Notify the power controller of WAKEREQUEST assertion. More... | |
| static void | callClearWakeRequest (ThreadContext *tc) |
| Notify the power controller of WAKEREQUEST deassertion. More... | |
Static Public Member Functions inherited from System | |
| static void | printSystems () |
Static Public Member Functions inherited from SimObject | |
| 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 Public Member Functions inherited from Serializable | |
| static const std::string & | currentSection () |
| Gets the fully-qualified name of the active section. More... | |
| static void | serializeAll (const std::string &cpt_dir) |
| Serializes all the SimObjects. More... | |
| static void | unserializeGlobals (CheckpointIn &cp) |
Public Attributes | |
| bool | multiProc |
| true if this a multiprocessor system More... | |
Public Attributes inherited from System | |
| Threads | threads |
| const bool | multiThread |
| Addr | pagePtr |
| uint64_t | init_param |
| PortProxy | physProxy |
| Port to physical memory used for writing object files into ram at boot. More... | |
| Workload * | workload = nullptr |
| OS kernel. More... | |
| Counter | totalNumInsts |
| std::map< std::pair< uint32_t, uint32_t >, Tick > | lastWorkItemStarted |
| std::map< uint32_t, Stats::Histogram * > | workItemStats |
| FutexMap | futexMap |
| std::set< int > | PIDs |
| Process set to track which PIDs have already been allocated. More... | |
| std::list< BasicSignal > | signalList |
| std::vector< RedirectPath * > | redirectPaths |
Static Public Attributes | |
| static constexpr Addr | PageBytes = ArmISA::PageBytes |
| static constexpr Addr | PageShift = ArmISA::PageShift |
Static Public Attributes inherited from System | |
| static std::vector< System * > | systemList |
| static int | numSystemsRunning = 0 |
| static const int | maxPID = 32768 |
Protected Attributes | |
| 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 |
| FVPBasePwrCtrl * | _pwrCtrl |
| Pointer to the Power Controller (if any) More... | |
| 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 | _haveTME |
| True if system implements the transactional memory extension (TME) 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 bool | _haveVHE |
| True if FEAT_VHE (Virtualization Host Extensions) is implemented. More... | |
| const unsigned | _havePAN |
| True if Priviledge Access Never is implemented. More... | |
| const unsigned | _haveSecEL2 |
| True if Secure EL2 is implemented. More... | |
| ArmSemihosting *const | semihosting |
| True if the Semihosting interface is enabled. More... | |
Protected Attributes inherited from System | |
| KvmVM *const | kvmVM |
| PhysicalMemory | physmem |
| Enums::MemoryMode | memoryMode |
| const unsigned int | _cacheLineSize |
| uint64_t | workItemsBegin |
| uint64_t | workItemsEnd |
| uint32_t | numWorkIds |
| std::vector< RequestorInfo > | requestors |
| This array is a per-system list of all devices capable of issuing a memory system request and an associated string for each requestor id. More... | |
| ThermalModel * | thermalModel |
| Params * | _params |
| const AddrRange | _m5opRange |
| Range for memory-mapped m5 pseudo ops. More... | |
Protected Attributes inherited from SimObject | |
| const SimObjectParams * | _params |
| Cached copy of the object parameters. More... | |
Protected Attributes inherited from EventManager | |
| EventQueue * | eventq |
| A pointer to this object's event queue. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from System | |
| std::string | stripSystemName (const std::string &requestor_name) const |
| Strips off the system name from a requestor name. More... | |
| RequestorID | _getRequestorId (const SimObject *requestor, const std::string &requestor_name) |
| helper function for getRequestorId More... | |
| std::string | leafRequestorName (const SimObject *requestor, const std::string &subrequestor) |
| Helper function for constructing the full (sub)requestor name by providing the root requestor and the relative subrequestor name. More... | |
Protected Member Functions inherited from Drainable | |
| Drainable () | |
| virtual | ~Drainable () |
| void | signalDrainDone () const |
| Signal that an object is drained. More... | |
| typedef ArmSystemParams ArmSystem::Params |
| ArmSystem::ArmSystem | ( | Params * | p | ) |
Definition at line 58 of file system.cc.
References _highestELIs64, _physAddrRange64, _resetAddr, Loader::Arm64, fatal, Workload::getArch(), Workload::getEntry(), MipsISA::p, warn, warn_if, and System::workload.
|
static |
Make a call to notify the power controller of STANDBYWFI deassertion.
Definition at line 217 of file system.cc.
References getArmSystem(), and getPowerController().
Referenced by Gicv3::postInt().
|
static |
Notify the power controller of WAKEREQUEST deassertion.
Definition at line 233 of file system.cc.
References getArmSystem(), and getPowerController().
Referenced by Gicv3CPUInterface::deassertWakeRequest().
|
static |
Make a Semihosting call from either aarch64 or aarch32.
Definition at line 201 of file system.cc.
References callSemihosting32(), callSemihosting64(), and ArmISA::inAArch64().
Referenced by Iris::ThreadContext::semihostingEvent().
|
static |
Make a Semihosting call from aarch32.
Definition at line 195 of file system.cc.
References ArmSemihosting::call32(), getArmSystem(), and semihosting.
Referenced by callSemihosting().
|
static |
Make a Semihosting call from aarch64.
Definition at line 189 of file system.cc.
References ArmSemihosting::call64(), getArmSystem(), and semihosting.
Referenced by callSemihosting().
|
static |
Make a call to notify the power controller of STANDBYWFI assertion.
Definition at line 210 of file system.cc.
References getArmSystem(), and getPowerController().
|
static |
Notify the power controller of WAKEREQUEST assertion.
Returns true if WAKEREQUEST is enabled as a power-on mechanism, and the core is now powered, false otherwise
Definition at line 224 of file system.cc.
References getArmSystem(), and getPowerController().
Referenced by Gicv3CPUInterface::assertWakeRequest().
|
inlinestatic |
Returns a valid ArmSystem pointer if using ARM ISA, it fails otherwise.
Definition at line 277 of file system.hh.
References FullSystem, and ThreadContext::getSystemPtr().
Referenced by callClearStandByWfi(), callClearWakeRequest(), callSemihosting32(), callSemihosting64(), callSetStandByWfi(), callSetWakeRequest(), haveLargeAsid64(), haveLPAE(), haveSecurity(), haveSemihosting(), haveTME(), haveVirtualization(), highestEL(), highestELIs64(), physAddrMask(), physAddrRange(), and resetAddr().
|
inline |
Get a pointer to the system's generic timer model.
Definition at line 197 of file system.hh.
References _genericTimer.
Referenced by ArmISA::ISA::getGenericTimer(), and ArmISA::ISA::readMiscReg().
|
inline |
Get a pointer to the system's GIC.
Definition at line 200 of file system.hh.
References _gic.
Referenced by ArmISA::FsWorkload::initState(), and ArmISA::ISA::setupThreadContext().
|
inline |
Get a pointer to the system's power controller.
Definition at line 203 of file system.hh.
References _pwrCtrl.
Referenced by callClearStandByWfi(), callClearWakeRequest(), callSetStandByWfi(), and callSetWakeRequest().
|
inline |
Returns true if this system implements the Crypto Extension.
Definition at line 178 of file system.hh.
References _haveCrypto.
Referenced by ArmISA::ISA::ISA().
|
static |
Return true if the system implements a specific exception level.
Definition at line 136 of file system.cc.
References ArmISA::el, ArmISA::EL0, ArmISA::EL1, ArmISA::EL2, ArmISA::EL3, haveSecurity(), haveVirtualization(), and warn.
Referenced by ArmISA::addPAC(), ArmISA::addPACDA(), ArmISA::addPACDB(), ArmISA::addPACGA(), ArmISA::addPACIA(), ArmISA::addPACIB(), ArmISA::VectorCatch::addressMatching(), ArmISA::authDA(), ArmISA::authDB(), ArmISA::authIA(), ArmISA::authIB(), ArmISA::badMode(), ArmISA::badMode32(), ArmISA::calculateBottomPACBit(), MiscRegOp64::checkEL3Trap(), ArmISA::ArmStaticInst::checkForWFxTrap32(), ArmISA::ArmStaticInst::checkForWFxTrap64(), ArmISA::TLB::checkPermissions64(), ArmISA::debugTargetFrom(), ArmISA::EL2Enabled(), ArmISA::ELIsInHost(), ArmISA::VectorCatch::exceptionTrapping(), ArmISA::ArmStaticInst::generalExceptionsToAArch64(), ArmISA::haveAArch32EL(), ArmISA::illegalExceptionReturn(), ArmISA::SelfDebug::isDebugEnabledForEL32(), ArmISA::SelfDebug::isDebugEnabledForEL64(), ArmISA::BrkPoint::isEnabled(), ArmISA::WatchPoint::isEnabled(), ArmISA::isSecure(), ArmISA::isSecureBelowEL3(), ArmISA::IsSecureEL2Enabled(), ArmISA::isUnpriviledgeAccess(), ArmISA::readMPIDR(), ArmISA::PrefetchAbort::routeToHyp(), ArmISA::s1TranslationRegime(), ArmISA::stripPAC(), ArmISA::trapPACUse(), and ArmISA::ArmStaticInst::trapWFx().
|
inline |
Returns true if ASID is 16 bits in AArch64 (ARMv8)
Definition at line 226 of file system.hh.
References _haveLargeAsid64.
Referenced by haveLargeAsid64(), and ArmISA::ISA::ISA().
|
static |
Returns true if ASID is 16 bits for the system of a specific thread context while in AArch64 (ARMv8)
Definition at line 177 of file system.cc.
References getArmSystem(), and haveLargeAsid64().
|
inline |
Returns true if this system implements the Large Physical Address Extension.
Definition at line 168 of file system.hh.
References _haveLPAE.
Referenced by haveLPAE(), ArmISA::ISA::ISA(), and ArmISA::longDescFormatInUse().
|
static |
Returns true if the system of a specific thread context implements the Large Physical Address Extension.
Definition at line 112 of file system.cc.
References FullSystem, getArmSystem(), and haveLPAE().
|
inline |
Returns true if LSE is implemented (ARMv8.1)
Definition at line 240 of file system.hh.
References _haveLSE.
Referenced by ArmISA::ISA::ISA().
|
inline |
Returns true if Priviledge Access Never is implemented.
Definition at line 246 of file system.hh.
References _havePAN.
Referenced by ArmISA::ISA::ISA().
|
inline |
Returns true if Priviledge Access Never is implemented.
Definition at line 249 of file system.hh.
References _haveSecEL2.
Referenced by ArmISA::ISA::ISA().
|
inline |
Returns true if this system implements the Security Extensions.
Definition at line 164 of file system.hh.
References _haveSecurity.
Referenced by ArmISA::AbortFault< DataAbort >::abortDisable(), ArmISA::Interrupt::abortDisable(), ArmISA::FastInterrupt::abortDisable(), ArmISA::canReadAArch64SysReg(), ArmISA::canWriteAArch64SysReg(), ArmISA::ArmStaticInst::checkAdvSIMDOrFPEnabled32(), ArmISA::ArmStaticInst::checkFPAdvSIMDTrap64(), ArmISA::ArmStaticInst::checkSveEnabled(), ArmISA::ELStateUsingAArch32K(), ArmISA::FastInterrupt::fiqDisable(), ArmISA::ArmFault::getVector(), ArmISA::Reset::getVector(), ArmISA::ArmFault::getVector64(), Gicv3Distributor::Gicv3Distributor(), haveEL(), Gicv3CPUInterface::haveEL(), haveSecurity(), Gicv3CPUInterface::inSecureState(), ArmISA::ArmFault::invoke(), ArmISA::Reset::invoke(), ArmISA::HardwareBreakpoint::invoke(), ArmISA::ArmFault::invoke64(), ArmISA::ISA::ISA(), ArmISA::Interrupt::routeToMonitor(), ArmISA::FastInterrupt::routeToMonitor(), ArmISA::SystemError::routeToMonitor(), ArmISA::snsBankedIndex(), MiscRegOp64::trap(), and ArmISA::ArmFault::update().
|
static |
Returns true if the system of a specific thread context implements the Security Extensions.
Definition at line 106 of file system.cc.
References FullSystem, getArmSystem(), and haveSecurity().
|
inline |
Is Arm Semihosting support enabled?
Definition at line 270 of file system.hh.
References semihosting.
Referenced by haveSemihosting().
|
static |
Is Arm Semihosting support enabled?
Definition at line 183 of file system.cc.
References FullSystem, getArmSystem(), and haveSemihosting().
|
inline |
Returns true if SVE is implemented (ARMv8)
Definition at line 234 of file system.hh.
References _haveSVE.
Referenced by ArmISA::ISA::ISA().
|
inline |
Returns true if this system implements the transactional memory extension (ARMv9)
Definition at line 231 of file system.hh.
References _haveTME.
Referenced by haveTME(), and ArmISA::ISA::ISA().
|
static |
Returns true if the system of a specific thread context implements the transactional memory extension (TME)
Definition at line 153 of file system.cc.
References getArmSystem(), and haveTME().
|
inline |
Returns true if Virtualization Host Extensions is implemented.
Definition at line 243 of file system.hh.
References _haveVHE.
Referenced by ArmISA::ISA::ISA().
|
inline |
Returns true if this system implements the virtualization Extensions.
Definition at line 173 of file system.hh.
References _haveVirtualization.
Referenced by ArmISA::ArmStaticInst::checkAdvSIMDOrFPEnabled32(), ArmISA::TLB::checkPermissions64(), ArmISA::ArmStaticInst::cpsrWriteByInstr(), ArmISA::ELStateUsingAArch32K(), ArmISA::FastInterrupt::fiqDisable(), ArmISA::ArmFault::getVector(), ArmISA::Reset::getVector(), ArmISA::ArmFault::getVector64(), haveEL(), Gicv3CPUInterface::haveEL(), haveVirtualization(), ArmISA::ArmFault::invoke(), ArmISA::Reset::invoke(), ArmISA::HardwareBreakpoint::invoke(), ArmISA::ArmFault::invoke64(), ArmISA::ISA::ISA(), ArmISA::isUnpriviledgeAccess(), MiscRegOp64::trap(), and ArmISA::ArmFault::update().
|
static |
Returns true if the system of a specific thread context implements the virtualization Extensions.
Definition at line 118 of file system.cc.
References FullSystem, getArmSystem(), and haveVirtualization().
|
inline |
Returns the highest implemented exception level.
Definition at line 211 of file system.hh.
References _haveSecurity, _haveVirtualization, ArmISA::EL1, ArmISA::EL2, and ArmISA::EL3.
Referenced by ArmISA::canReadAArch64SysReg(), ArmISA::ISA::clear64(), ArmISA::ELStateUsingAArch32K(), ArmISA::haveAArch32EL(), ArmISA::ISA::MiscRegLUTEntryInitializer::highest(), and highestEL().
|
static |
Returns the highest implemented exception level for the system of a specific thread context.
Definition at line 130 of file system.cc.
References ArmISA::EL1, FullSystem, getArmSystem(), and highestEL().
|
inline |
Returns true if the register width of the highest implemented exception level is 64 bits (ARMv8)
Definition at line 207 of file system.hh.
References _highestELIs64.
Referenced by ArmISA::ISA::clear(), ArmISA::debugTargetFrom(), ArmISA::ELStateUsingAArch32K(), Trace::TarmacTracer::getInstRecord(), ArmISA::haveAArch32EL(), highestELIs64(), ArmISA::illegalExceptionReturn(), ArmISA::Reset::invoke(), ArmISA::ISA::ISA(), ArmISA::ArmFault::setSyndrome(), ArmISA::snsBankedIndex(), and ArmISA::Interrupts::takeInt().
|
static |
Returns true if the register width of the highest implemented exception level for the system of a specific thread context is 64 bits (ARMv8)
Definition at line 124 of file system.cc.
References FullSystem, getArmSystem(), and highestELIs64().
|
inline |
Definition at line 153 of file system.hh.
References System::_params.
Referenced by BaseArmKvmCPU::startup().
|
inline |
Returns the physical address mask.
Definition at line 267 of file system.hh.
References ArmISA::mask, and physAddrRange().
Referenced by physAddrMask().
|
static |
Returns the physical address mask for the system of a specific thread context.
Definition at line 171 of file system.cc.
References getArmSystem(), and physAddrMask().
|
inline |
Returns the supported physical address range in bits.
Definition at line 257 of file system.hh.
References _haveLPAE, _highestELIs64, and _physAddrRange64.
Referenced by ArmISA::ISA::ISA(), physAddrMask(), and physAddrRange().
|
static |
Returns the supported physical address range in bits for the system of a specific thread context.
Definition at line 165 of file system.cc.
References getArmSystem(), and physAddrRange().
|
inline |
Returns the supported physical address range in bits if the highest implemented exception level is 64 bits (ARMv8)
Definition at line 253 of file system.hh.
References _physAddrRange64.
|
inline |
Returns the reset address if the highest implemented exception level is 64 bits (ARMv8)
Definition at line 222 of file system.hh.
References _resetAddr.
Referenced by ArmISA::ISA::clear32(), ArmISA::ISA::clear64(), ArmISA::Reset::invoke(), and resetAddr().
|
static |
Returns the reset address if the highest implemented exception level for the system of a specific thread context is 64 bits (ARMv8)
Definition at line 159 of file system.cc.
References getArmSystem(), and resetAddr().
|
inline |
Sets the pointer to the Generic Timer.
Definition at line 182 of file system.hh.
References _genericTimer.
Referenced by GenericTimer::GenericTimer().
|
inline |
Sets the pointer to the GIC.
Definition at line 188 of file system.hh.
References _gic, and ArmISA::gic.
Referenced by BaseGic::init(), and Gicv3::unserialize().
|
inline |
Sets the pointer to the Power Controller.
Definition at line 191 of file system.hh.
References _pwrCtrl.
Referenced by FVPBasePwrCtrl::FVPBasePwrCtrl().
|
inline |
Definition at line 223 of file system.hh.
References _resetAddr, and addr.
|
inline |
Returns the SVE vector length at reset, in quadwords.
Definition at line 237 of file system.hh.
References _sveVL.
Referenced by ArmISA::ISA::ISA().
|
protected |
Pointer to the Generic Timer wrapper.
Definition at line 85 of file system.hh.
Referenced by getGenericTimer(), and setGenericTimer().
|
protected |
|
protected |
True if this system implements the Crypto Extension.
Definition at line 80 of file system.hh.
Referenced by haveCrypto().
|
protected |
True if ASID is 16 bits in AArch64 (ARMv8)
Definition at line 113 of file system.hh.
Referenced by haveLargeAsid64().
|
protected |
True if this system implements the Large Physical Address Extension.
Definition at line 70 of file system.hh.
Referenced by haveLPAE(), and physAddrRange().
|
protected |
|
protected |
|
protected |
True if Secure EL2 is implemented.
Definition at line 140 of file system.hh.
Referenced by haveSecEL2().
|
protected |
True if this system implements the Security Extensions.
Definition at line 65 of file system.hh.
Referenced by haveSecurity(), and highestEL().
|
protected |
|
protected |
|
protected |
|
protected |
True if this system implements the virtualization Extensions.
Definition at line 75 of file system.hh.
Referenced by haveVirtualization(), and highestEL().
|
protected |
True if the register width of the highest implemented exception level is 64 bits (ARMv8)
Definition at line 102 of file system.hh.
Referenced by ArmSystem(), highestELIs64(), and physAddrRange().
|
protected |
Supported physical address range in bits if the highest implemented exception level is 64 bits (ARMv8)
Definition at line 108 of file system.hh.
Referenced by ArmSystem(), physAddrRange(), and physAddrRange64().
|
protected |
Pointer to the Power Controller (if any)
Definition at line 91 of file system.hh.
Referenced by getPowerController(), and setPowerController().
|
protected |
Reset address (ARMv8)
Definition at line 96 of file system.hh.
Referenced by ArmSystem(), resetAddr(), and setResetAddr().
|
protected |
| bool ArmSystem::multiProc |
true if this a multiprocessor system
Definition at line 161 of file system.hh.
Referenced by ArmISA::getMPIDR().
|
staticconstexpr |
Definition at line 148 of file system.hh.
Referenced by GenericTimerMem::validateFrameRange().
|
staticconstexpr |
|
protected |
True if the Semihosting interface is enabled.
Definition at line 145 of file system.hh.
Referenced by callSemihosting32(), callSemihosting64(), and haveSemihosting().