Go to the documentation of this file.
41 #ifndef __ARCH_ARM_SYSTEM_HH__
42 #define __ARCH_ARM_SYSTEM_HH__
49 #include "params/ArmSystem.hh"
const unsigned _havePAN
True if Priviledge Access Never is implemented.
static bool callSemihosting32(ThreadContext *tc, bool gem5_ops=false)
Make a Semihosting call from aarch32.
bool haveCrypto() const
Returns true if this system implements the Crypto Extension.
uint8_t physAddrRange() const
Returns the supported physical address range in bits.
bool highestELIs64() const
Returns true if the register width of the highest implemented exception level is 64 bits (ARMv8)
Addr resetAddr() const
Returns the reset address if the highest implemented exception level is 64 bits (ARMv8)
Addr _resetAddr
Reset address (ARMv8)
const Params * params() const
Addr physAddrMask() const
Returns the physical address mask.
const bool _haveLargeAsid64
True if ASID is 16 bits in AArch64 (ARMv8)
uint8_t physAddrRange64() const
Returns the supported physical address range in bits if the highest implemented exception level is 64...
const unsigned _haveSecEL2
True if Secure EL2 is implemented.
bool haveSVE() const
Returns true if SVE is implemented (ARMv8)
void setPowerController(FVPBasePwrCtrl *pwr_ctrl)
Sets the pointer to the Power Controller.
bool FullSystem
The FullSystem variable can be used to determine the current mode of simulation.
BaseGic * getGIC() const
Get a pointer to the system's GIC.
FVPBasePwrCtrl * getPowerController() const
Get a pointer to the system's power controller.
GenericTimer * getGenericTimer() const
Get a pointer to the system's generic timer model.
static bool callSemihosting(ThreadContext *tc, bool gem5_ops=false)
Make a Semihosting call from either aarch64 or aarch32.
bool haveVirtualization() const
Returns true if this system implements the virtualization Extensions.
const bool _haveVirtualization
True if this system implements the virtualization Extensions.
static void callSetStandByWfi(ThreadContext *tc)
Make a call to notify the power controller of STANDBYWFI assertion.
void setResetAddr(Addr addr)
static ArmSystem * getArmSystem(ThreadContext *tc)
Returns a valid ArmSystem pointer if using ARM ISA, it fails otherwise.
bool haveSecurity() const
Returns true if this system implements the Security Extensions.
ThreadContext is the external interface to all thread state for anything outside of the CPU.
bool haveLPAE() const
Returns true if this system implements the Large Physical Address Extension.
const unsigned _sveVL
SVE vector length at reset, in quadwords.
GenericTimer * _genericTimer
Pointer to the Generic Timer wrapper.
bool haveLSE() const
Returns true if LSE is implemented (ARMv8.1)
bool havePAN() const
Returns true if Priviledge Access Never is implemented.
static bool callSemihosting64(ThreadContext *tc, bool gem5_ops=false)
Make a Semihosting call from aarch64.
bool _highestELIs64
True if the register width of the highest implemented exception level is 64 bits (ARMv8)
unsigned sveVL() const
Returns the SVE vector length at reset, in quadwords.
bool haveSecEL2() const
Returns true if Priviledge Access Never is implemented.
const bool _haveSecurity
True if this system implements the Security Extensions.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
const bool _haveTME
True if system implements the transactional memory extension (TME)
const bool _haveSVE
True if SVE is implemented (ARMv8)
static constexpr Addr PageShift
const bool _haveLSE
True if LSE is implemented (ARMv8.1)
static void callClearStandByWfi(ThreadContext *tc)
Make a call to notify the power controller of STANDBYWFI deassertion.
ArmISA::ExceptionLevel highestEL() const
Returns the highest implemented exception level.
void setGIC(BaseGic *gic)
Sets the pointer to the GIC.
static bool haveEL(ThreadContext *tc, ArmISA::ExceptionLevel el)
Return true if the system implements a specific exception level.
bool multiProc
true if this a multiprocessor system
void setGenericTimer(GenericTimer *generic_timer)
Sets the pointer to the Generic Timer.
ArmSemihosting *const semihosting
True if the Semihosting interface is enabled.
bool haveSemihosting() const
Is Arm Semihosting support enabled?
static constexpr Addr PageBytes
static bool callSetWakeRequest(ThreadContext *tc)
Notify the power controller of WAKEREQUEST assertion.
FVPBasePwrCtrl * _pwrCtrl
Pointer to the Power Controller (if any)
bool haveTME() const
Returns true if this system implements the transactional memory extension (ARMv9)
Semihosting for AArch32 and AArch64.
const uint8_t _physAddrRange64
Supported physical address range in bits if the highest implemented exception level is 64 bits (ARMv8...
const bool _haveCrypto
True if this system implements the Crypto Extension.
virtual System * getSystemPtr()=0
bool haveLargeAsid64() const
Returns true if ASID is 16 bits in AArch64 (ARMv8)
static void callClearWakeRequest(ThreadContext *tc)
Notify the power controller of WAKEREQUEST deassertion.
const bool _haveLPAE
True if this system implements the Large Physical Address Extension.
Generated on Wed Sep 30 2020 14:02:01 for gem5 by doxygen 1.8.17