53#include "params/ArmRelease.hh"
64 for (
auto ext :
p.extensions) {
65 fatal_if(_extensions.find(ext) != _extensions.end(),
66 "Duplicated FEAT_\n");
68 _extensions[ext] = true;
86 if (
p.auto_reset_addr) {
87 _resetAddr = workload->getEntry();
89 _resetAddr = p.reset_addr;
90 warn_if(workload->getEntry() != _resetAddr,
91 "Workload entry point %#x and reset address %#x are different",
92 workload->getEntry(), _resetAddr);
97 warn(
"Highest ARM exception-level set to AArch%d but the workload "
98 "is for AArch%d. Assuming you wanted these to match.",
109 fatal(
"Invalid physical address range (%d)\n", _physAddrRange64);
139 return has(ArmExtension::VIRTUALIZATION, tc);
141 return has(ArmExtension::SECURITY, tc);
143 warn(
"Unimplemented Exception Level\n");
203 pwr_ctrl->setStandByWfi(tc);
210 pwr_ctrl->clearStandByWfi(tc);
217 return pwr_ctrl->setWakeRequest(tc);
226 pwr_ctrl->clearWakeRequest(tc);
ArmRelease(const Params &p)
bool call32(ThreadContext *tc, bool gem5_ops)
Perform an Arm Semihosting call from aarch32 code.
bool call64(ThreadContext *tc, bool gem5_ops)
Perform an Arm Semihosting call from aarch64 code.
const bool _haveLargeAsid64
True if ASID is 16 bits in AArch64 (ARMv8)
FVPBasePwrCtrl * _pwrCtrl
Pointer to the Power Controller (if any)
static ArmSystem * getArmSystem(ThreadContext *tc)
Returns a valid ArmSystem pointer if using ARM ISA, it fails otherwise.
Addr physAddrMask() const
Returns the physical address mask.
bool highestELIs64() const
Returns true if the register width of the highest implemented exception level is 64 bits (ARMv8)
ArmISA::ExceptionLevel highestEL() const
Returns the highest implemented exception level.
const unsigned _smeVL
SME vector length at reset, in quadwords.
static bool callSemihosting32(ThreadContext *tc, bool gem5_ops=false)
Make a Semihosting call from aarch32.
bool haveSemihosting() const
Is Arm Semihosting support enabled?
const uint8_t _physAddrRange64
Supported physical address range in bits if the highest implemented exception level is 64 bits (ARMv8...
FVPBasePwrCtrl * getPowerController() const
Get a pointer to the system's power controller.
static void callClearStandByWfi(ThreadContext *tc)
Make a call to notify the power controller of STANDBYWFI deassertion.
static void callSetStandByWfi(ThreadContext *tc)
Make a call to notify the power controller of STANDBYWFI assertion.
ArmSemihosting *const semihosting
True if the Semihosting interface is enabled.
static bool callSemihosting(ThreadContext *tc, bool gem5_ops=false)
Make a Semihosting call from either aarch64 or aarch32.
uint8_t physAddrRange() const
Returns the supported physical address range in bits.
static bool callSetWakeRequest(ThreadContext *tc)
Notify the power controller of WAKEREQUEST assertion.
bool has(ArmExtension ext) const
bool haveLargeAsid64() const
Returns true if ASID is 16 bits in AArch64 (ARMv8)
Addr resetAddr() const
Returns the reset address if the highest implemented exception level is 64 bits (ARMv8)
static bool haveEL(ThreadContext *tc, ArmISA::ExceptionLevel el)
Return true if the system implements a specific exception level.
const unsigned _sveVL
SVE vector length at reset, in quadwords.
static void callClearWakeRequest(ThreadContext *tc)
Notify the power controller of WAKEREQUEST deassertion.
bool multiProc
true if this a multiprocessor system
GenericTimer * _genericTimer
Pointer to the Generic Timer wrapper.
ArmSystem(const Params &p)
bool _highestELIs64
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.
const ArmRelease * release
Arm Release object: contains a list of implemented features.
Workload * workload
OS kernel.
ThreadContext is the external interface to all thread state for anything outside of the CPU.
This class implements the base power controller for FVP-based platforms.
Implementation of a GICv2.
SimObject(const Params &p)
const unsigned MaxPhysAddrRange
bool inAArch64(ThreadContext *tc)
Copyright (c) 2024 Arm Limited All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
bool FullSystem
The FullSystem variable can be used to determine the current mode of simulation.