Go to the documentation of this file.
41 #ifndef __ARCH_ARM_SYSTEM_HH__
42 #define __ARCH_ARM_SYSTEM_HH__
46 #include <unordered_map>
52 #include "params/ArmSystem.hh"
56 #include "enums/ArmExtension.hh"
67 struct ArmReleaseParams;
193 if (
has(ArmExtension::SECURITY))
195 if (
has(ArmExtension::VIRTUALIZATION))
224 if (
has(ArmExtension::LPAE))
void setGenericTimer(GenericTimer *generic_timer)
Sets the pointer to the Generic Timer.
uint8_t physAddrRange() const
Returns the supported physical address range in bits.
virtual System * getSystemPtr()=0
GenericTimer * _genericTimer
Pointer to the Generic Timer wrapper.
ArmSystem(const Params &p)
bool highestELIs64() const
Returns true if the register width of the highest implemented exception level is 64 bits (ARMv8)
static bool callSemihosting64(ThreadContext *tc, bool gem5_ops=false)
Make a Semihosting call from aarch64.
static void callClearWakeRequest(ThreadContext *tc)
Notify the power controller of WAKEREQUEST deassertion.
unsigned smeVL() const
Returns the SME vector length at reset, in quadwords.
bool haveLargeAsid64() const
Returns true if ASID is 16 bits in AArch64 (ARMv8)
FVPBasePwrCtrl * getPowerController() const
Get a pointer to the system's power controller.
static bool callSemihosting(ThreadContext *tc, bool gem5_ops=false)
Make a Semihosting call from either aarch64 or aarch32.
BaseGic * getGIC() const
Get a pointer to the system's GIC.
constexpr uint64_t mask(unsigned nbits)
Generate a 64-bit mask of 'nbits' 1s, right justified.
static ArmSystem * getArmSystem(ThreadContext *tc)
Returns a valid ArmSystem pointer if using ARM ISA, it fails otherwise.
Addr _resetAddr
Reset address (ARMv8)
bool has(ArmExtension ext) const
ArmRelease(const Params &p)
bool multiProc
true if this a multiprocessor system
ArmISA::ExceptionLevel highestEL() const
Returns the highest implemented exception level.
FVPBasePwrCtrl * _pwrCtrl
Pointer to the Power Controller (if any)
ThreadContext is the external interface to all thread state for anything outside of the CPU.
static constexpr Addr PageShift
ArmSemihosting *const semihosting
True if the Semihosting interface is enabled.
const unsigned _smeVL
SME vector length at reset, in quadwords.
Abstract superclass for simulation objects.
const uint8_t _physAddrRange64
Supported physical address range in bits if the highest implemented exception level is 64 bits (ARMv8...
static bool callSetWakeRequest(ThreadContext *tc)
Notify the power controller of WAKEREQUEST assertion.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
static void callClearStandByWfi(ThreadContext *tc)
Make a call to notify the power controller of STANDBYWFI deassertion.
bool _highestELIs64
True if the register width of the highest implemented exception level is 64 bits (ARMv8)
Semihosting for AArch32 and AArch64.
Addr physAddrMask() const
Returns the physical address mask.
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.
bool has(ArmExtension ext) const
const ArmRelease * release
Arm Release object: contains a list of implemented features.
static void callSetStandByWfi(ThreadContext *tc)
Make a call to notify the power controller of STANDBYWFI assertion.
std::unordered_map< ArmExtension, bool > _extensions
List of implemented extensions.
unsigned sveVL() const
Returns the SVE vector length at reset, in quadwords.
bool haveSemihosting() const
Is Arm Semihosting support enabled?
void setGIC(BaseGic *gic)
Sets the pointer to the GIC.
Addr resetAddr() const
Returns the reset address if the highest implemented exception level is 64 bits (ARMv8)
const ArmRelease * releaseFS() const
GenericTimer * getGenericTimer() const
Get a pointer to the system's generic timer model.
static constexpr Addr PageBytes
static bool haveEL(ThreadContext *tc, ArmISA::ExceptionLevel el)
Return true if the system implements a specific exception level.
uint8_t physAddrRange64() const
Returns the supported physical address range in bits if the highest implemented exception level is 64...
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
const bool _haveLargeAsid64
True if ASID is 16 bits in AArch64 (ARMv8)
static bool callSemihosting32(ThreadContext *tc, bool gem5_ops=false)
Make a Semihosting call from aarch32.
const unsigned _sveVL
SVE vector length at reset, in quadwords.
void setResetAddr(Addr addr)
Generated on Sun Jul 30 2023 01:56:49 for gem5 by doxygen 1.8.17