gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::ArmISA::ISA Class Reference

#include <isa.hh>

Inheritance diagram for gem5::ArmISA::ISA:
gem5::BaseISA gem5::SimObject gem5::EventManager gem5::Serializable gem5::Drainable gem5::statistics::Group gem5::Named

Public Member Functions

const RegIdmapIntRegId (RegIndex idx) const
 
void clear () override
 
SelfDebuggetSelfDebug () const
 
const ArmReleasegetRelease () const
 
RegVal readMiscRegNoEffect (RegIndex idx) const override
 
RegVal readMiscReg (RegIndex idx) override
 
void setMiscRegNoEffect (RegIndex idx, RegVal val) override
 
void setMiscReg (RegIndex, RegVal val) override
 
RegVal readMiscRegReset (RegIndex) const
 
void setMiscRegReset (RegIndex, RegVal val)
 
int flattenMiscIndex (int reg) const
 
int redirectRegVHE (int misc_reg)
 Returns the enconcing equivalent when VHE is implemented and HCR_EL2.E2H is enabled and executing at EL2.
 
int snsBankedIndex64 (MiscRegIndex reg, bool ns) const
 
std::pair< int, int > getMiscIndices (int misc_reg) const
 
bool inSecureState () const
 Return true if the PE is in Secure state.
 
ExceptionLevel currEL () const
 Returns the current Exception Level (EL) of the ISA object.
 
unsigned getCurSveVecLenInBits () const
 
unsigned getCurSveVecLenInBitsAtReset () const
 
unsigned getCurSmeVecLenInBits () const
 
unsigned getCurSmeVecLenInBitsAtReset () const
 
void serialize (CheckpointOut &cp) const override
 Serialize an object.
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object.
 
void startup () override
 startup() is the final initialization call before simulation.
 
void setupThreadContext ()
 
PCStateBasenewPCState (Addr new_inst_addr=0) const override
 
void takeOverFrom (ThreadContext *new_tc, ThreadContext *old_tc) override
 
enums::DecoderFlavor decoderFlavor () const
 
 PARAMS (ArmISA)
 
 ISA (const Params &p)
 
uint64_t getExecutingAsid () const override
 
bool inUserMode () const override
 
void copyRegsFrom (ThreadContext *src) override
 
void handleLockedRead (const RequestPtr &req) override
 
void handleLockedRead (ExecContext *xc, const RequestPtr &req) override
 
bool handleLockedWrite (const RequestPtr &req, Addr cacheBlockMask) override
 
bool handleLockedWrite (ExecContext *xc, const RequestPtr &req, Addr cacheBlockMask) override
 
void handleLockedSnoop (PacketPtr pkt, Addr cacheBlockMask) override
 
void handleLockedSnoop (ExecContext *xc, PacketPtr pkt, Addr cacheBlockMask) override
 
void handleLockedSnoopHit () override
 
void handleLockedSnoopHit (ExecContext *xc) override
 
void globalClearExclusive () override
 
void globalClearExclusive (ExecContext *xc) override
 
int64_t getVectorLengthInBytes () const override
 This function returns the vector length of the Vector Length Agnostic extension of the ISA.
 
- Public Member Functions inherited from gem5::BaseISA
virtual void setThreadContext (ThreadContext *_tc)
 
virtual void resetThread ()
 
const RegClassesregClasses () const
 
const std::string getIsaName () const
 
- Public Member Functions inherited from gem5::SimObject
const Paramsparams () const
 
 SimObject (const Params &p)
 
virtual ~SimObject ()
 
virtual void init ()
 init() is called after all C++ SimObjects have been created and all ports are connected.
 
virtual void loadState (CheckpointIn &cp)
 loadState() is called on each SimObject when restoring from a checkpoint.
 
virtual void initState ()
 initState() is called on each SimObject when not restoring from a checkpoint.
 
virtual void regProbePoints ()
 Register probe points for this object.
 
virtual void regProbeListeners ()
 Register probe listeners for this object.
 
ProbeManagergetProbeManager ()
 Get the probe manager for this object.
 
virtual PortgetPort (const std::string &if_name, PortID idx=InvalidPortID)
 Get a port with a given name and index.
 
DrainState drain () override
 Provide a default implementation of the drain interface for objects that don't need draining.
 
virtual void memWriteback ()
 Write back dirty buffers to memory using functional writes.
 
virtual void memInvalidate ()
 Invalidate the contents of memory buffers.
 
void serialize (CheckpointOut &cp) const override
 Serialize an object.
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object.
 
- Public Member Functions inherited from gem5::EventManager
EventQueueeventQueue () 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.
 
void setCurTick (Tick newVal)
 
 EventManager (EventManager &em)
 Event manger manages events in the event queue.
 
 EventManager (EventManager *em)
 
 EventManager (EventQueue *eq)
 
- Public Member Functions inherited from gem5::Serializable
 Serializable ()
 
virtual ~Serializable ()
 
void serializeSection (CheckpointOut &cp, const char *name) const
 Serialize an object into a new section.
 
void serializeSection (CheckpointOut &cp, const std::string &name) const
 
void unserializeSection (CheckpointIn &cp, const char *name)
 Unserialize an a child object.
 
void unserializeSection (CheckpointIn &cp, const std::string &name)
 
- Public Member Functions inherited from gem5::Drainable
DrainState drainState () const
 Return the current drain state of an object.
 
virtual void notifyFork ()
 Notify a child process of a fork.
 
- Public Member Functions inherited from gem5::statistics::Group
 Group (Group *parent, const char *name=nullptr)
 Construct a new statistics group.
 
virtual ~Group ()
 
virtual void regStats ()
 Callback to set stat parameters.
 
virtual void resetStats ()
 Callback to reset stats.
 
virtual void preDumpStats ()
 Callback before stats are dumped.
 
void addStat (statistics::Info *info)
 Register a stat with this group.
 
const std::map< std::string, Group * > & getStatGroups () const
 Get all child groups associated with this object.
 
const std::vector< Info * > & getStats () const
 Get all stats associated with this object.
 
void addStatGroup (const char *name, Group *block)
 Add a stat block as a child of this block.
 
const InforesolveStat (std::string name) const
 Resolve a stat by its name within this group.
 
void mergeStatGroup (Group *block)
 Merge the contents (stats & children) of a block to this block.
 
 Group ()=delete
 
 Group (const Group &)=delete
 
Groupoperator= (const Group &)=delete
 
- Public Member Functions inherited from gem5::Named
 Named (const std::string &name_)
 
virtual ~Named ()=default
 
virtual std::string name () const
 

Static Public Member Functions

static SelfDebuggetSelfDebug (ThreadContext *tc)
 
template<typename Elem >
static void zeroSveVecRegUpperPart (Elem *v, unsigned eCount)
 
- Static Public Member Functions inherited from gem5::SimObject
static void serializeAll (const std::string &cpt_dir)
 Create a checkpoint by serializing all SimObjects in the system.
 
static SimObjectfind (const char *name)
 Find the SimObject with the given name and return a pointer to it.
 
static void setSimObjectResolver (SimObjectResolver *resolver)
 There is a single object name resolver, and it is only set when simulation is restoring from checkpoints.
 
static SimObjectResolvergetSimObjectResolver ()
 There is a single object name resolver, and it is only set when simulation is restoring from checkpoints.
 
- Static Public Member Functions inherited from gem5::Serializable
static const std::string & currentSection ()
 Gets the fully-qualified name of the active section.
 
static void generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream)
 Generate a checkpoint file so that the serialization can be routed to it.
 

Protected Member Functions

const MiscRegLUTEntryInitializer InitReg (uint32_t reg)
 
void initializeMiscRegMetadata ()
 
BaseISADevicegetGenericTimer ()
 
BaseISADevicegetGICv3CPUInterface ()
 
BaseISADevicegetGICv3CPUInterface (ThreadContext *tc)
 
void updateRegMap (CPSR cpsr)
 
void addressTranslation (MMU::ArmTranslationType tran_type, BaseMMU::Mode mode, Request::Flags flags, RegVal val)
 
void addressTranslation64 (MMU::ArmTranslationType tran_type, BaseMMU::Mode mode, Request::Flags flags, RegVal val)
 
- Protected Member Functions inherited from gem5::BaseISA
 BaseISA (const SimObjectParams &p, const std::string &name)
 
- Protected Member Functions inherited from gem5::Drainable
 Drainable ()
 
virtual ~Drainable ()
 
virtual void drainResume ()
 Resume execution after a successful drain.
 
void signalDrainDone () const
 Signal that an object is drained.
 

Protected Attributes

ArmSystemsystem
 
const enums::DecoderFlavor _decoderFlavor
 
DummyISADevice dummyDevice
 Dummy device for to handle non-existing ISA devices.
 
BaseISADevicepmu
 
std::unique_ptr< BaseISADevicetimer
 
std::unique_ptr< BaseISADevicegicv3CpuInterface
 
bool highestELIs64
 
ExceptionLevel highestEL
 
bool haveLargeAsid64
 
uint8_t physAddrRange
 
unsigned sveVL
 SVE vector length in quadwords.
 
unsigned smeVL
 SME vector length in quadwords.
 
const ArmReleaserelease
 This could be either a FS or a SE release.
 
bool impdefAsNop
 If true, accesses to IMPLEMENTATION DEFINED registers are treated as NOP hence not causing UNDEFINED INSTRUCTION.
 
SelfDebugselfDebug
 
RegVal miscRegs [NUM_MISCREGS]
 
const RegIdintRegMap
 
- Protected Attributes inherited from gem5::BaseISA
ThreadContexttc = nullptr
 
RegClasses _regClasses
 
std::string isaName
 
- Protected Attributes inherited from gem5::SimObject
const SimObjectParams & _params
 Cached copy of the object parameters.
 
- Protected Attributes inherited from gem5::EventManager
EventQueueeventq
 A pointer to this object's event queue.
 

Additional Inherited Members

- Public Types inherited from gem5::BaseISA
typedef std::vector< const RegClass * > RegClasses
 
- Public Types inherited from gem5::SimObject
typedef SimObjectParams Params
 

Detailed Description

Definition at line 70 of file isa.hh.

Constructor & Destructor Documentation

◆ ISA()

Member Function Documentation

◆ addressTranslation()

◆ addressTranslation64()

◆ clear()

void gem5::ArmISA::ISA::clear ( )
overridevirtual

◆ copyRegsFrom()

◆ currEL()

ExceptionLevel gem5::ArmISA::ISA::currEL ( ) const

Returns the current Exception Level (EL) of the ISA object.

Definition at line 1459 of file isa.cc.

References gem5::ArmISA::MISCREG_CPSR, gem5::ArmISA::opModeToEL(), and readMiscRegNoEffect().

Referenced by readMiscReg(), and redirectRegVHE().

◆ decoderFlavor()

enums::DecoderFlavor gem5::ArmISA::ISA::decoderFlavor ( ) const
inline

Definition at line 401 of file isa.hh.

References _decoderFlavor.

◆ flattenMiscIndex()

int gem5::ArmISA::ISA::flattenMiscIndex ( int reg) const
inline

Definition at line 204 of file isa.hh.

References flattenMiscIndex(), highestELIs64, inSecureState(), gem5::ArmISA::lookUpMiscReg, gem5::ArmISA::MISCREG_BANKED, gem5::ArmISA::MISCREG_CPSR, gem5::ArmISA::MISCREG_MAIR0, gem5::ArmISA::MISCREG_MAIR1, gem5::ArmISA::MISCREG_MUTEX, gem5::ArmISA::MISCREG_NMRR, gem5::ArmISA::MISCREG_NMRR_MAIR1, gem5::ArmISA::MISCREG_NMRR_MAIR1_NS, gem5::ArmISA::MISCREG_NMRR_MAIR1_S, gem5::ArmISA::MISCREG_PMCCFILTR, gem5::ArmISA::MISCREG_PMSELR, gem5::ArmISA::MISCREG_PMXEVTYPER, gem5::ArmISA::MISCREG_PMXEVTYPER_PMCCFILTR, gem5::ArmISA::MISCREG_PRRR, gem5::ArmISA::MISCREG_PRRR_MAIR0, gem5::ArmISA::MISCREG_PRRR_MAIR0_NS, gem5::ArmISA::MISCREG_PRRR_MAIR0_S, gem5::ArmISA::MISCREG_SPSR, gem5::ArmISA::MISCREG_SPSR_ABT, gem5::ArmISA::MISCREG_SPSR_EL1, gem5::ArmISA::MISCREG_SPSR_EL2, gem5::ArmISA::MISCREG_SPSR_EL3, gem5::ArmISA::MISCREG_SPSR_FIQ, gem5::ArmISA::MISCREG_SPSR_HYP, gem5::ArmISA::MISCREG_SPSR_IRQ, gem5::ArmISA::MISCREG_SPSR_MON, gem5::ArmISA::MISCREG_SPSR_SVC, gem5::ArmISA::MISCREG_SPSR_UND, gem5::ArmISA::MISCREG_TTBCR, miscRegs, gem5::ArmISA::MODE_ABORT, gem5::ArmISA::MODE_EL0T, gem5::ArmISA::MODE_EL1H, gem5::ArmISA::MODE_EL1T, gem5::ArmISA::MODE_EL2H, gem5::ArmISA::MODE_EL2T, gem5::ArmISA::MODE_EL3H, gem5::ArmISA::MODE_EL3T, gem5::ArmISA::MODE_FIQ, gem5::ArmISA::MODE_HYP, gem5::ArmISA::MODE_IRQ, gem5::ArmISA::MODE_MON, gem5::ArmISA::MODE_SVC, gem5::ArmISA::MODE_UNDEFINED, gem5::ArmISA::MODE_USER, panic, readMiscRegNoEffect(), gem5::X86ISA::reg, snsBankedIndex64(), and warn.

Referenced by flattenMiscIndex(), getMiscIndices(), readMiscRegReset(), and setMiscRegReset().

◆ getCurSmeVecLenInBits()

◆ getCurSmeVecLenInBitsAtReset()

unsigned gem5::ArmISA::ISA::getCurSmeVecLenInBitsAtReset ( ) const
inline

Definition at line 371 of file isa.hh.

References smeVL.

◆ getCurSveVecLenInBits()

◆ getCurSveVecLenInBitsAtReset()

unsigned gem5::ArmISA::ISA::getCurSveVecLenInBitsAtReset ( ) const
inline

Definition at line 367 of file isa.hh.

References sveVL.

◆ getExecutingAsid()

uint64_t gem5::ArmISA::ISA::getExecutingAsid ( ) const
inlineoverridevirtual

Reimplemented from gem5::BaseISA.

Definition at line 408 of file isa.hh.

References gem5::ArmISA::MISCREG_CONTEXTIDR, and readMiscRegNoEffect().

◆ getGenericTimer()

BaseISADevice & gem5::ArmISA::ISA::getGenericTimer ( )
protected

◆ getGICv3CPUInterface() [1/2]

BaseISADevice & gem5::ArmISA::ISA::getGICv3CPUInterface ( )
protected

◆ getGICv3CPUInterface() [2/2]

BaseISADevice * gem5::ArmISA::ISA::getGICv3CPUInterface ( ThreadContext * tc)
protected

◆ getMiscIndices()

std::pair< int, int > gem5::ArmISA::ISA::getMiscIndices ( int misc_reg) const
inline

◆ getRelease()

const ArmRelease * gem5::ArmISA::ISA::getRelease ( ) const
inline

◆ getSelfDebug() [1/2]

◆ getSelfDebug() [2/2]

static SelfDebug * gem5::ArmISA::ISA::getSelfDebug ( ThreadContext * tc)
inlinestatic

Definition at line 187 of file isa.hh.

References gem5::ThreadContext::getIsaPtr(), getSelfDebug(), and gem5::BaseISA::tc.

◆ getVectorLengthInBytes()

int64_t gem5::ArmISA::ISA::getVectorLengthInBytes ( ) const
inlineoverridevirtual

This function returns the vector length of the Vector Length Agnostic extension of the ISA.

For ARM ISA, this function returns the SVE/SVE2 vector length. For RISC-V ISA, this function returns the RVV vector length. For other ISAs, this function returns -1.

Reimplemented from gem5::BaseISA.

Definition at line 439 of file isa.hh.

References sveVL.

◆ globalClearExclusive() [1/2]

void gem5::ArmISA::ISA::globalClearExclusive ( )
overridevirtual

◆ globalClearExclusive() [2/2]

void gem5::ArmISA::ISA::globalClearExclusive ( ExecContext * xc)
overridevirtual

◆ handleLockedRead() [1/2]

void gem5::ArmISA::ISA::handleLockedRead ( const RequestPtr & req)
overridevirtual

◆ handleLockedRead() [2/2]

void gem5::ArmISA::ISA::handleLockedRead ( ExecContext * xc,
const RequestPtr & req )
overridevirtual

◆ handleLockedSnoop() [1/2]

void gem5::ArmISA::ISA::handleLockedSnoop ( ExecContext * xc,
PacketPtr pkt,
Addr cacheBlockMask )
overridevirtual

Reimplemented from gem5::BaseISA.

Definition at line 1753 of file isa.cc.

References gem5::ArmISA::lockedSnoopHandler(), and gem5::ExecContext::tcBase().

◆ handleLockedSnoop() [2/2]

void gem5::ArmISA::ISA::handleLockedSnoop ( PacketPtr pkt,
Addr cacheBlockMask )
overridevirtual

Reimplemented from gem5::BaseISA.

Definition at line 1747 of file isa.cc.

References gem5::ArmISA::lockedSnoopHandler(), and gem5::BaseISA::tc.

◆ handleLockedSnoopHit() [1/2]

◆ handleLockedSnoopHit() [2/2]

◆ handleLockedWrite() [1/2]

bool gem5::ArmISA::ISA::handleLockedWrite ( const RequestPtr & req,
Addr cacheBlockMask )
overridevirtual

Reimplemented from gem5::BaseISA.

Definition at line 1836 of file isa.cc.

References gem5::ArmISA::lockedWriteHandler(), and gem5::BaseISA::tc.

◆ handleLockedWrite() [2/2]

bool gem5::ArmISA::ISA::handleLockedWrite ( ExecContext * xc,
const RequestPtr & req,
Addr cacheBlockMask )
overridevirtual

Reimplemented from gem5::BaseISA.

Definition at line 1842 of file isa.cc.

References gem5::ArmISA::lockedWriteHandler(), and gem5::ExecContext::tcBase().

◆ initializeMiscRegMetadata()

void gem5::ArmISA::ISA::initializeMiscRegMetadata ( )
protected

Some registers alias with others, and therefore need to be translated. When two mapping registers are given, they are the 32b lower and upper halves, respectively, of the 64b register being mapped. aligned with reference documentation ARM DDI 0487A.i pp 1540-1543

NAM = "not architecturally mandated", from ARM DDI 0487A.i, template text "AArch64 System register ___ can be mapped to AArch32 System register ___, but this is not architecturally mandated."

Definition at line 2876 of file misc.cc.

References gem5::ArmISA::MiscRegLUTEntryInitializer::allPrivileges(), gem5::ArmISA::MiscRegLUTEntryInitializer::banked(), gem5::ArmISA::MiscRegLUTEntryInitializer::bankedChild(), gem5::ArmISA::MiscRegLUTEntryInitializer::exceptUserMode(), gem5::ArmRelease::has(), highestELIs64, InitReg(), gem5::ArmISA::mask, gem5::ArmISA::MISCREG_CPSR, gem5::ArmISA::MISCREG_CPSR_MODE, gem5::ArmISA::MISCREG_CPSR_Q, gem5::ArmISA::MISCREG_CTR, gem5::ArmISA::MISCREG_DBGAUTHSTATUS, gem5::ArmISA::MISCREG_DBGBCR0, gem5::ArmISA::MISCREG_DBGBCR1, gem5::ArmISA::MISCREG_DBGBCR10, gem5::ArmISA::MISCREG_DBGBCR11, gem5::ArmISA::MISCREG_DBGBCR12, gem5::ArmISA::MISCREG_DBGBCR13, gem5::ArmISA::MISCREG_DBGBCR14, gem5::ArmISA::MISCREG_DBGBCR15, gem5::ArmISA::MISCREG_DBGBCR2, gem5::ArmISA::MISCREG_DBGBCR3, gem5::ArmISA::MISCREG_DBGBCR4, gem5::ArmISA::MISCREG_DBGBCR5, gem5::ArmISA::MISCREG_DBGBCR6, gem5::ArmISA::MISCREG_DBGBCR7, gem5::ArmISA::MISCREG_DBGBCR8, gem5::ArmISA::MISCREG_DBGBCR9, gem5::ArmISA::MISCREG_DBGBVR0, gem5::ArmISA::MISCREG_DBGBVR1, gem5::ArmISA::MISCREG_DBGBVR10, gem5::ArmISA::MISCREG_DBGBVR11, gem5::ArmISA::MISCREG_DBGBVR12, gem5::ArmISA::MISCREG_DBGBVR13, gem5::ArmISA::MISCREG_DBGBVR14, gem5::ArmISA::MISCREG_DBGBVR15, gem5::ArmISA::MISCREG_DBGBVR2, gem5::ArmISA::MISCREG_DBGBVR3, gem5::ArmISA::MISCREG_DBGBVR4, gem5::ArmISA::MISCREG_DBGBVR5, gem5::ArmISA::MISCREG_DBGBVR6, gem5::ArmISA::MISCREG_DBGBVR7, gem5::ArmISA::MISCREG_DBGBVR8, gem5::ArmISA::MISCREG_DBGBVR9, gem5::ArmISA::MISCREG_DBGBXVR0, gem5::ArmISA::MISCREG_DBGBXVR1, gem5::ArmISA::MISCREG_DBGBXVR10, gem5::ArmISA::MISCREG_DBGBXVR11, gem5::ArmISA::MISCREG_DBGBXVR12, gem5::ArmISA::MISCREG_DBGBXVR13, gem5::ArmISA::MISCREG_DBGBXVR14, gem5::ArmISA::MISCREG_DBGBXVR15, gem5::ArmISA::MISCREG_DBGBXVR2, gem5::ArmISA::MISCREG_DBGBXVR3, gem5::ArmISA::MISCREG_DBGBXVR4, gem5::ArmISA::MISCREG_DBGBXVR5, gem5::ArmISA::MISCREG_DBGBXVR6, gem5::ArmISA::MISCREG_DBGBXVR7, gem5::ArmISA::MISCREG_DBGBXVR8, gem5::ArmISA::MISCREG_DBGBXVR9, gem5::ArmISA::MISCREG_DBGCLAIMCLR, gem5::ArmISA::MISCREG_DBGCLAIMSET, gem5::ArmISA::MISCREG_DBGDCCINT, gem5::ArmISA::MISCREG_DBGDEVID0, gem5::ArmISA::MISCREG_DBGDEVID1, gem5::ArmISA::MISCREG_DBGDEVID2, gem5::ArmISA::MISCREG_DBGDIDR, gem5::ArmISA::MISCREG_DBGDRAR, gem5::ArmISA::MISCREG_DBGDSAR, gem5::ArmISA::MISCREG_DBGDSCRext, gem5::ArmISA::MISCREG_DBGDSCRint, gem5::ArmISA::MISCREG_DBGDTRRXext, gem5::ArmISA::MISCREG_DBGDTRRXint, gem5::ArmISA::MISCREG_DBGDTRTXext, gem5::ArmISA::MISCREG_DBGDTRTXint, gem5::ArmISA::MISCREG_DBGOSDLR, gem5::ArmISA::MISCREG_DBGOSECCR, gem5::ArmISA::MISCREG_DBGOSLAR, gem5::ArmISA::MISCREG_DBGOSLSR, gem5::ArmISA::MISCREG_DBGPRCR, gem5::ArmISA::MISCREG_DBGVCR, gem5::ArmISA::MISCREG_DBGWCR0, gem5::ArmISA::MISCREG_DBGWCR1, gem5::ArmISA::MISCREG_DBGWCR10, gem5::ArmISA::MISCREG_DBGWCR11, gem5::ArmISA::MISCREG_DBGWCR12, gem5::ArmISA::MISCREG_DBGWCR13, gem5::ArmISA::MISCREG_DBGWCR14, gem5::ArmISA::MISCREG_DBGWCR15, gem5::ArmISA::MISCREG_DBGWCR2, gem5::ArmISA::MISCREG_DBGWCR3, gem5::ArmISA::MISCREG_DBGWCR4, gem5::ArmISA::MISCREG_DBGWCR5, gem5::ArmISA::MISCREG_DBGWCR6, gem5::ArmISA::MISCREG_DBGWCR7, gem5::ArmISA::MISCREG_DBGWCR8, gem5::ArmISA::MISCREG_DBGWCR9, gem5::ArmISA::MISCREG_DBGWFAR, gem5::ArmISA::MISCREG_DBGWVR0, gem5::ArmISA::MISCREG_DBGWVR1, gem5::ArmISA::MISCREG_DBGWVR10, gem5::ArmISA::MISCREG_DBGWVR11, gem5::ArmISA::MISCREG_DBGWVR12, gem5::ArmISA::MISCREG_DBGWVR13, gem5::ArmISA::MISCREG_DBGWVR14, gem5::ArmISA::MISCREG_DBGWVR15, gem5::ArmISA::MISCREG_DBGWVR2, gem5::ArmISA::MISCREG_DBGWVR3, gem5::ArmISA::MISCREG_DBGWVR4, gem5::ArmISA::MISCREG_DBGWVR5, gem5::ArmISA::MISCREG_DBGWVR6, gem5::ArmISA::MISCREG_DBGWVR7, gem5::ArmISA::MISCREG_DBGWVR8, gem5::ArmISA::MISCREG_DBGWVR9, gem5::ArmISA::MISCREG_ELR_HYP, gem5::ArmISA::MISCREG_FPEXC, gem5::ArmISA::MISCREG_FPSCR, gem5::ArmISA::MISCREG_FPSCR_EXC, gem5::ArmISA::MISCREG_FPSCR_QC, gem5::ArmISA::MISCREG_FPSID, gem5::ArmISA::MISCREG_JIDR, gem5::ArmISA::MISCREG_JMCR, gem5::ArmISA::MISCREG_JOSCR, gem5::ArmISA::MISCREG_LOCKADDR, gem5::ArmISA::MISCREG_LOCKFLAG, gem5::ArmISA::MISCREG_MIDR, gem5::ArmISA::MISCREG_MVFR0, gem5::ArmISA::MISCREG_MVFR1, gem5::ArmISA::MISCREG_NMRR_MAIR1, gem5::ArmISA::MISCREG_NMRR_MAIR1_NS, gem5::ArmISA::MISCREG_NMRR_MAIR1_S, gem5::ArmISA::MISCREG_PMXEVTYPER_PMCCFILTR, gem5::ArmISA::MISCREG_PRRR_MAIR0, gem5::ArmISA::MISCREG_PRRR_MAIR0_NS, gem5::ArmISA::MISCREG_PRRR_MAIR0_S, gem5::ArmISA::MISCREG_SEV_MAILBOX, gem5::ArmISA::MISCREG_SPSR, gem5::ArmISA::MISCREG_SPSR_ABT, gem5::ArmISA::MISCREG_SPSR_FIQ, gem5::ArmISA::MISCREG_SPSR_HYP, gem5::ArmISA::MISCREG_SPSR_IRQ, gem5::ArmISA::MISCREG_SPSR_MON, gem5::ArmISA::MISCREG_SPSR_SVC, gem5::ArmISA::MISCREG_SPSR_UND, gem5::ArmISA::MISCREG_TEECR, gem5::ArmISA::MISCREG_TEEHBR, gem5::ArmISA::MISCREG_TLBINEEDSYNC, gem5::ArmISA::MiscRegLUTEntryInitializer::monNonSecureRead(), gem5::ArmISA::MiscRegLUTEntryInitializer::monNonSecureWrite(), gem5::ArmISA::MiscRegLUTEntryInitializer::monSecureRead(), gem5::ArmISA::MiscRegLUTEntryInitializer::monSecureWrite(), gem5::ArmISA::MiscRegLUTEntryInitializer::mutex(), gem5::MipsISA::p, gem5::SimObject::params(), gem5::ArmISA::MiscRegLUTEntryInitializer::privSecure(), gem5::ArmISA::MiscRegLUTEntryInitializer::raz(), release, gem5::ArmISA::MiscRegLUTEntryInitializer::res0(), gem5::ArmISA::MiscRegLUTEntryInitializer::reset(), gem5::ArmISA::resetCPSR(), system, gem5::ArmISA::MiscRegLUTEntryInitializer::unimplemented(), gem5::ArmISA::MiscRegLUTEntryInitializer::warnNotFail(), and gem5::ArmISA::MiscRegLUTEntryInitializer::writes().

Referenced by ISA().

◆ InitReg()

const MiscRegLUTEntryInitializer gem5::ArmISA::ISA::InitReg ( uint32_t reg)
inlineprotected

Definition at line 115 of file isa.hh.

References gem5::ArmISA::lookUpMiscReg, and gem5::X86ISA::reg.

Referenced by initializeMiscRegMetadata(), and setMiscRegReset().

◆ inSecureState()

bool gem5::ArmISA::ISA::inSecureState ( ) const

◆ inUserMode()

bool gem5::ArmISA::ISA::inUserMode ( ) const
inlineoverridevirtual

Implements gem5::BaseISA.

Definition at line 414 of file isa.hh.

References gem5::ArmISA::inUserMode(), gem5::ArmISA::MISCREG_CPSR, and miscRegs.

◆ mapIntRegId()

const RegId & gem5::ArmISA::ISA::mapIntRegId ( RegIndex idx) const
inline

Definition at line 168 of file isa.hh.

References intRegMap.

◆ newPCState()

PCStateBase * gem5::ArmISA::ISA::newPCState ( Addr new_inst_addr = 0) const
inlineoverridevirtual

Implements gem5::BaseISA.

Definition at line 393 of file isa.hh.

◆ PARAMS()

gem5::ArmISA::ISA::PARAMS ( ArmISA )

◆ readMiscReg()

RegVal gem5::ArmISA::ISA::readMiscReg ( RegIndex idx)
overridevirtual

Implements gem5::BaseISA.

Definition at line 411 of file isa.cc.

References gem5::PCStateBase::as(), gem5::ArmISA::cc_reg::C, currEL(), gem5::ArmISA::daif, DPRINTF, gem5::ArmISA::EL1, gem5::ArmISA::EL2Enabled(), gem5::ArmISA::EL3, gem5::ArmISA::ELIs32(), gem5::ThreadContext::getCpuPtr(), getGenericTimer(), getGICv3CPUInterface(), gem5::BaseCPU::getInterruptController(), gem5::ThreadContext::getReg(), gem5::ThreadContext::getSystemPtr(), gem5::ArmRelease::has(), highestEL, gem5::ArmISA::isSecure(), gem5::ArmISA::lookUpMiscReg, gem5::ArmISA::MISCREG_ACTLR, gem5::ArmISA::MISCREG_CCSIDR, gem5::ArmISA::MISCREG_CLIDR, gem5::ArmISA::MISCREG_CNTFRQ, gem5::ArmISA::MISCREG_CNTFRQ_EL0, gem5::ArmISA::MISCREG_CNTVOFF, gem5::ArmISA::MISCREG_CNTVOFF_EL2, gem5::ArmISA::MISCREG_CPACR, gem5::ArmISA::MISCREG_CPSR, gem5::ArmISA::MISCREG_CPSR_Q, gem5::ArmISA::MISCREG_CURRENTEL, gem5::ArmISA::MISCREG_DAIF, gem5::ArmISA::MISCREG_DFAR_S, gem5::ArmISA::MISCREG_FPCR, gem5::ArmISA::MISCREG_FPSCR, gem5::ArmISA::MISCREG_FPSCR_EXC, gem5::ArmISA::MISCREG_FPSCR_QC, gem5::ArmISA::MISCREG_FPSR, gem5::ArmISA::MISCREG_HCPTR, gem5::ArmISA::MISCREG_HCR_EL2, gem5::ArmISA::MISCREG_HDFAR, gem5::ArmISA::MISCREG_HIFAR, gem5::ArmISA::MISCREG_ICC_AP0R0, gem5::ArmISA::MISCREG_ICC_IGRPEN1_EL3, gem5::ArmISA::MISCREG_ICC_PMR_EL1, gem5::ArmISA::MISCREG_ICH_AP0R0_EL2, gem5::ArmISA::MISCREG_ICH_LR15_EL2, gem5::ArmISA::MISCREG_ICH_LRC15, gem5::ArmISA::MISCREG_ID_AFR0, gem5::ArmISA::MISCREG_IFAR_S, gem5::ArmISA::MISCREG_IMPLEMENTED, gem5::ArmISA::MISCREG_ISR, gem5::ArmISA::MISCREG_ISR_EL1, gem5::ArmISA::MISCREG_L2CTLR, gem5::ArmISA::MISCREG_MIDR, gem5::ArmISA::MISCREG_MIDR_EL1, gem5::ArmISA::MISCREG_MPAM1_EL1, gem5::ArmISA::MISCREG_MPAM2_EL2, gem5::ArmISA::MISCREG_MPIDR, gem5::ArmISA::MISCREG_MPIDR_EL1, gem5::ArmISA::MISCREG_NSACR, gem5::ArmISA::MISCREG_NZCV, gem5::ArmISA::MISCREG_PAN, gem5::ArmISA::MISCREG_PMCR, gem5::ArmISA::MISCREG_PMEVCNTR0_EL0, gem5::ArmISA::MISCREG_PMEVTYPER5_EL0, gem5::ArmISA::MISCREG_PMINTENSET_EL1, gem5::ArmISA::MISCREG_PMOVSSET, gem5::ArmISA::MISCREG_PMOVSSET_EL0, gem5::ArmISA::MISCREG_PMXEVTYPER_PMCCFILTR, gem5::ArmISA::MISCREG_REVIDR, gem5::ArmISA::MISCREG_RNDR, gem5::ArmISA::MISCREG_RNDRRS, gem5::ArmISA::MISCREG_SCR_EL3, gem5::ArmISA::MISCREG_SP_EL0, gem5::ArmISA::MISCREG_SP_EL1, gem5::ArmISA::MISCREG_SP_EL2, gem5::ArmISA::MISCREG_SPSEL, gem5::ArmISA::MISCREG_UAO, gem5::ArmISA::MISCREG_VPIDR, gem5::ArmISA::MISCREG_WARN_NOT_FAIL, gem5::ArmISA::miscRegName, miscRegs, gem5::ArmISA::MODE_MON, gem5::ArmISA::cc_reg::Nz, panic, gem5::MipsISA::pc, gem5::ThreadContext::pcState(), pmu, gem5::Random::random(), gem5::random_mt, gem5::ArmISA::BaseISADevice::readMiscReg(), readMiscRegNoEffect(), gem5::ArmISA::readMPIDR(), gem5::ArmISA::misc_regs::readRegisterNoEffect(), redirectRegVHE(), release, gem5::ThreadContext::setReg(), gem5::System::Threads::size(), gem5::ArmISA::int_reg::Sp0, gem5::ArmISA::int_reg::Sp1, gem5::ArmISA::int_reg::Sp2, system, gem5::BaseISA::tc, gem5::ThreadContext::threadId(), gem5::System::threads, gem5::ArmISA::unflattenMiscReg(), gem5::ArmISA::cc_reg::V, gem5::X86ISA::val, warn, and warn_once.

◆ readMiscRegNoEffect()

RegVal gem5::ArmISA::ISA::readMiscRegNoEffect ( RegIndex idx) const
overridevirtual

Implements gem5::BaseISA.

Definition at line 387 of file isa.cc.

References DPRINTF, getMiscIndices(), gem5::ArmISA::lookUpMiscReg, gem5::ArmISA::mask, gem5::ArmISA::miscRegName, miscRegs, gem5::ArmISA::NUM_MISCREGS, gem5::X86ISA::reg, and gem5::X86ISA::val.

Referenced by addressTranslation(), gem5::Gicv3CPUInterface::bpr1(), currEL(), gem5::Gicv3CPUInterface::dropPriority(), gem5::Gicv3CPUInterface::eoiMaintenanceInterruptStatus(), gem5::ArmISA::IntRegClassOps::flatten(), flattenMiscIndex(), getExecutingAsid(), gem5::Gicv3CPUInterface::getHPPIR1(), gem5::Gicv3CPUInterface::getHPPVILR(), gem5::Gicv3CPUInterface::groupEnabled(), gem5::Gicv3CPUInterface::groupPriorityMask(), gem5::Gicv3CPUInterface::highestActiveGroup(), gem5::Gicv3CPUInterface::highestActivePriority(), gem5::Gicv3CPUInterface::hppiCanPreempt(), gem5::Gicv3CPUInterface::hppviCanPreempt(), gem5::Gicv3CPUInterface::isEOISplitMode(), gem5::Gicv3CPUInterface::maintenanceInterruptStatus(), gem5::Gicv3CPUInterface::readBankedMiscReg(), gem5::SparcISA::ISA::readFSReg(), readMiscReg(), gem5::Gicv3CPUInterface::readMiscReg(), redirectRegVHE(), setMiscReg(), gem5::Gicv3CPUInterface::setMiscReg(), gem5::Gicv3CPUInterface::virtualActivateIRQ(), gem5::Gicv3CPUInterface::virtualDeactivateIRQ(), gem5::Gicv3CPUInterface::virtualDropPriority(), gem5::Gicv3CPUInterface::virtualFindActive(), gem5::Gicv3CPUInterface::virtualGroupPriorityMask(), gem5::Gicv3CPUInterface::virtualHighestActivePriority(), gem5::Gicv3CPUInterface::virtualIncrementEOICount(), gem5::Gicv3CPUInterface::virtualIsEOISplitMode(), and gem5::Gicv3CPUInterface::virtualUpdate().

◆ readMiscRegReset()

RegVal gem5::ArmISA::ISA::readMiscRegReset ( RegIndex idx) const

Definition at line 1375 of file isa.cc.

References flattenMiscIndex(), and gem5::ArmISA::lookUpMiscReg.

◆ redirectRegVHE()

int gem5::ArmISA::ISA::redirectRegVHE ( int misc_reg)

Returns the enconcing equivalent when VHE is implemented and HCR_EL2.E2H is enabled and executing at EL2.

Definition at line 233 of file isa.cc.

References currEL(), gem5::ArmISA::EL2, gem5::ArmISA::ELIsInHost(), gem5::ArmRelease::has(), gem5::ArmISA::MISCREG_AFSR0_EL1, gem5::ArmISA::MISCREG_AFSR0_EL12, gem5::ArmISA::MISCREG_AFSR0_EL2, gem5::ArmISA::MISCREG_AFSR1_EL1, gem5::ArmISA::MISCREG_AFSR1_EL12, gem5::ArmISA::MISCREG_AFSR1_EL2, gem5::ArmISA::MISCREG_AMAIR_EL1, gem5::ArmISA::MISCREG_AMAIR_EL12, gem5::ArmISA::MISCREG_AMAIR_EL2, gem5::ArmISA::MISCREG_CNTHCTL_EL2, gem5::ArmISA::MISCREG_CNTHP_CTL_EL2, gem5::ArmISA::MISCREG_CNTHP_CVAL_EL2, gem5::ArmISA::MISCREG_CNTHP_TVAL_EL2, gem5::ArmISA::MISCREG_CNTHPS_CTL_EL2, gem5::ArmISA::MISCREG_CNTHPS_CVAL_EL2, gem5::ArmISA::MISCREG_CNTHPS_TVAL_EL2, gem5::ArmISA::MISCREG_CNTHV_CTL_EL2, gem5::ArmISA::MISCREG_CNTHV_CVAL_EL2, gem5::ArmISA::MISCREG_CNTHV_TVAL_EL2, gem5::ArmISA::MISCREG_CNTHVS_CTL_EL2, gem5::ArmISA::MISCREG_CNTHVS_CVAL_EL2, gem5::ArmISA::MISCREG_CNTHVS_TVAL_EL2, gem5::ArmISA::MISCREG_CNTKCTL_EL1, gem5::ArmISA::MISCREG_CNTKCTL_EL12, gem5::ArmISA::MISCREG_CNTP_CTL, gem5::ArmISA::MISCREG_CNTP_CTL_EL0, gem5::ArmISA::MISCREG_CNTP_CTL_EL02, gem5::ArmISA::MISCREG_CNTP_CVAL, gem5::ArmISA::MISCREG_CNTP_CVAL_EL0, gem5::ArmISA::MISCREG_CNTP_CVAL_EL02, gem5::ArmISA::MISCREG_CNTP_TVAL, gem5::ArmISA::MISCREG_CNTP_TVAL_EL0, gem5::ArmISA::MISCREG_CNTP_TVAL_EL02, gem5::ArmISA::MISCREG_CNTPCT_EL0, gem5::ArmISA::MISCREG_CNTV_CTL, gem5::ArmISA::MISCREG_CNTV_CTL_EL0, gem5::ArmISA::MISCREG_CNTV_CTL_EL02, gem5::ArmISA::MISCREG_CNTV_CVAL, gem5::ArmISA::MISCREG_CNTV_CVAL_EL0, gem5::ArmISA::MISCREG_CNTV_CVAL_EL02, gem5::ArmISA::MISCREG_CNTV_TVAL, gem5::ArmISA::MISCREG_CNTV_TVAL_EL0, gem5::ArmISA::MISCREG_CNTV_TVAL_EL02, gem5::ArmISA::MISCREG_CNTVCT, gem5::ArmISA::MISCREG_CNTVCT_EL0, gem5::ArmISA::MISCREG_CONTEXTIDR_EL1, gem5::ArmISA::MISCREG_CONTEXTIDR_EL12, gem5::ArmISA::MISCREG_CONTEXTIDR_EL2, gem5::ArmISA::MISCREG_CPACR_EL1, gem5::ArmISA::MISCREG_CPACR_EL12, gem5::ArmISA::MISCREG_CPTR_EL2, gem5::ArmISA::MISCREG_ELR_EL1, gem5::ArmISA::MISCREG_ELR_EL12, gem5::ArmISA::MISCREG_ELR_EL2, gem5::ArmISA::MISCREG_ESR_EL1, gem5::ArmISA::MISCREG_ESR_EL12, gem5::ArmISA::MISCREG_ESR_EL2, gem5::ArmISA::MISCREG_FAR_EL1, gem5::ArmISA::MISCREG_FAR_EL12, gem5::ArmISA::MISCREG_FAR_EL2, gem5::ArmISA::MISCREG_HCR_EL2, gem5::ArmISA::MISCREG_MAIR_EL1, gem5::ArmISA::MISCREG_MAIR_EL12, gem5::ArmISA::MISCREG_MAIR_EL2, gem5::ArmISA::MISCREG_MPAM1_EL1, gem5::ArmISA::MISCREG_MPAM1_EL12, gem5::ArmISA::MISCREG_MPAM2_EL2, gem5::ArmISA::MISCREG_SCR_EL3, gem5::ArmISA::MISCREG_SCTLR2_EL1, gem5::ArmISA::MISCREG_SCTLR2_EL12, gem5::ArmISA::MISCREG_SCTLR_EL1, gem5::ArmISA::MISCREG_SCTLR_EL12, gem5::ArmISA::MISCREG_SCTLR_EL2, gem5::ArmISA::MISCREG_SPSR_EL1, gem5::ArmISA::MISCREG_SPSR_EL12, gem5::ArmISA::MISCREG_SPSR_EL2, gem5::ArmISA::MISCREG_TCR2_EL1, gem5::ArmISA::MISCREG_TCR2_EL12, gem5::ArmISA::MISCREG_TCR_EL1, gem5::ArmISA::MISCREG_TCR_EL12, gem5::ArmISA::MISCREG_TCR_EL2, gem5::ArmISA::MISCREG_TTBR0_EL1, gem5::ArmISA::MISCREG_TTBR0_EL12, gem5::ArmISA::MISCREG_TTBR0_EL2, gem5::ArmISA::MISCREG_TTBR1_EL1, gem5::ArmISA::MISCREG_TTBR1_EL12, gem5::ArmISA::MISCREG_TTBR1_EL2, gem5::ArmISA::MISCREG_VBAR_EL1, gem5::ArmISA::MISCREG_VBAR_EL12, gem5::ArmISA::MISCREG_VBAR_EL2, gem5::ArmISA::MISCREG_ZCR_EL1, gem5::ArmISA::MISCREG_ZCR_EL12, readMiscRegNoEffect(), release, and gem5::BaseISA::tc.

Referenced by readMiscReg(), and setMiscReg().

◆ serialize()

void gem5::ArmISA::ISA::serialize ( CheckpointOut & cp) const
overridevirtual

Serialize an object.

Output an object's state into the current checkpoint section.

Parameters
cpCheckpoint state

Reimplemented from gem5::BaseISA.

Definition at line 1568 of file isa.cc.

References DPRINTF, gem5::ArmISA::miscRegName, miscRegs, gem5::ArmISA::NUM_PHYS_MISCREGS, gem5::BaseISA::serialize(), and SERIALIZE_MAPPING.

◆ setMiscReg()

void gem5::ArmISA::ISA::setMiscReg ( RegIndex idx,
RegVal val )
overridevirtual

Implements gem5::BaseISA.

Definition at line 684 of file isa.cc.

References addressTranslation(), addressTranslation64(), gem5::InstDecoder::as(), gem5::PCStateBase::as(), gem5::bits(), gem5::ArmISA::cc_reg::C, gem5::ArmISA::CpsrMaskQ, gem5::ArmISA::daif, DPRINTF, gem5::ArmISA::el, gem5::ArmISA::EL3, gem5::ArmISA::ELIs32(), gem5::ArmISA::FpscrExcMask, gem5::ArmISA::FpscrQcMask, gem5::ThreadContext::getCheckerCpuPtr(), getCurSmeVecLenInBits(), getCurSveVecLenInBits(), gem5::ThreadContext::getDecoderPtr(), getGenericTimer(), getGICv3CPUInterface(), gem5::ArmISA::getMMUPtr(), gicv3CpuInterface, gem5::ArmRelease::has(), highestELIs64, gem5::ArmISA::MMU::HypMode, gem5::ArmISA::MMU::invalidateMiscReg(), gem5::ArmISA::isSecure(), gem5::ArmISA::lookUpMiscReg, gem5::ArmISA::mask, gem5::ArmISA::MISCREG_ACTLR, gem5::ArmISA::MISCREG_AT_S12E0R_Xt, gem5::ArmISA::MISCREG_AT_S12E0W_Xt, gem5::ArmISA::MISCREG_AT_S12E1R_Xt, gem5::ArmISA::MISCREG_AT_S12E1W_Xt, gem5::ArmISA::MISCREG_AT_S1E0R_Xt, gem5::ArmISA::MISCREG_AT_S1E0W_Xt, gem5::ArmISA::MISCREG_AT_S1E1R_Xt, gem5::ArmISA::MISCREG_AT_S1E1W_Xt, gem5::ArmISA::MISCREG_AT_S1E2R_Xt, gem5::ArmISA::MISCREG_AT_S1E2W_Xt, gem5::ArmISA::MISCREG_AT_S1E3R_Xt, gem5::ArmISA::MISCREG_AT_S1E3W_Xt, gem5::ArmISA::MISCREG_ATS12NSOPR, gem5::ArmISA::MISCREG_ATS12NSOPW, gem5::ArmISA::MISCREG_ATS12NSOUR, gem5::ArmISA::MISCREG_ATS12NSOUW, gem5::ArmISA::MISCREG_ATS1CPR, gem5::ArmISA::MISCREG_ATS1CPW, gem5::ArmISA::MISCREG_ATS1CUR, gem5::ArmISA::MISCREG_ATS1CUW, gem5::ArmISA::MISCREG_ATS1HR, gem5::ArmISA::MISCREG_ATS1HW, gem5::ArmISA::MISCREG_CNTFRQ, gem5::ArmISA::MISCREG_CNTFRQ_EL0, gem5::ArmISA::MISCREG_CNTVOFF, gem5::ArmISA::MISCREG_CNTVOFF_EL2, gem5::ArmISA::MISCREG_CONTEXTIDR, gem5::ArmISA::MISCREG_CPACR, gem5::ArmISA::MISCREG_CPACR_EL1, gem5::ArmISA::MISCREG_CPSR, gem5::ArmISA::MISCREG_CPSR_Q, gem5::ArmISA::MISCREG_CPTR_EL2, gem5::ArmISA::MISCREG_CPTR_EL3, gem5::ArmISA::MISCREG_CSSELR, gem5::ArmISA::MISCREG_CURRENTEL, gem5::ArmISA::MISCREG_DACR, gem5::ArmISA::MISCREG_DAIF, gem5::ArmISA::MISCREG_DBGBCR0, gem5::ArmISA::MISCREG_DBGBCR0_EL1, gem5::ArmISA::MISCREG_DBGBCR15, gem5::ArmISA::MISCREG_DBGBCR15_EL1, gem5::ArmISA::MISCREG_DBGDSCRext, gem5::ArmISA::MISCREG_DBGDSCRint, gem5::ArmISA::MISCREG_DBGOSLAR, gem5::ArmISA::MISCREG_DBGOSLSR, gem5::ArmISA::MISCREG_DBGWCR0, gem5::ArmISA::MISCREG_DBGWCR0_EL1, gem5::ArmISA::MISCREG_DBGWCR15, gem5::ArmISA::MISCREG_DBGWCR15_EL1, gem5::ArmISA::MISCREG_DC_ZVA_Xt, gem5::ArmISA::MISCREG_DFAR_S, gem5::ArmISA::MISCREG_FPCR, gem5::ArmISA::MISCREG_FPEXC, gem5::ArmISA::MISCREG_FPSCR, gem5::ArmISA::MISCREG_FPSCR_EXC, gem5::ArmISA::MISCREG_FPSCR_QC, gem5::ArmISA::MISCREG_FPSID, gem5::ArmISA::MISCREG_FPSR, gem5::ArmISA::MISCREG_HCPTR, gem5::ArmISA::MISCREG_HCR, gem5::ArmISA::MISCREG_HCR_EL2, gem5::ArmISA::MISCREG_HDCR, gem5::ArmISA::MISCREG_HDFAR, gem5::ArmISA::MISCREG_HIFAR, gem5::ArmISA::MISCREG_HSCTLR, gem5::ArmISA::MISCREG_HSTR, gem5::ArmISA::MISCREG_ICC_AP0R0, gem5::ArmISA::MISCREG_ICC_IGRPEN1_EL3, gem5::ArmISA::MISCREG_ICC_PMR_EL1, gem5::ArmISA::MISCREG_ICH_AP0R0_EL2, gem5::ArmISA::MISCREG_ICH_LR15_EL2, gem5::ArmISA::MISCREG_ICH_LRC15, gem5::ArmISA::MISCREG_ID_AA64AFR0_EL1, gem5::ArmISA::MISCREG_ID_AA64AFR1_EL1, gem5::ArmISA::MISCREG_ID_AA64DFR0_EL1, gem5::ArmISA::MISCREG_ID_AA64DFR1_EL1, gem5::ArmISA::MISCREG_ID_AA64ISAR0_EL1, gem5::ArmISA::MISCREG_ID_AA64ISAR1_EL1, gem5::ArmISA::MISCREG_ID_AA64MMFR0_EL1, gem5::ArmISA::MISCREG_ID_AA64MMFR1_EL1, gem5::ArmISA::MISCREG_ID_AA64MMFR2_EL1, gem5::ArmISA::MISCREG_ID_AA64PFR0_EL1, gem5::ArmISA::MISCREG_ID_AA64PFR1_EL1, gem5::ArmISA::MISCREG_ID_DFR0, gem5::ArmISA::MISCREG_ID_ISAR0, gem5::ArmISA::MISCREG_ID_ISAR1, gem5::ArmISA::MISCREG_ID_ISAR2, gem5::ArmISA::MISCREG_ID_ISAR3, gem5::ArmISA::MISCREG_ID_ISAR4, gem5::ArmISA::MISCREG_ID_ISAR5, gem5::ArmISA::MISCREG_ID_MMFR0, gem5::ArmISA::MISCREG_ID_MMFR1, gem5::ArmISA::MISCREG_ID_MMFR2, gem5::ArmISA::MISCREG_ID_MMFR3, gem5::ArmISA::MISCREG_ID_MMFR4, gem5::ArmISA::MISCREG_ID_PFR0, gem5::ArmISA::MISCREG_ID_PFR1, gem5::ArmISA::MISCREG_IFAR_S, gem5::ArmISA::MISCREG_IMPLEMENTED, gem5::ArmISA::MISCREG_L2CTLR, gem5::ArmISA::MISCREG_MAIR0, gem5::ArmISA::MISCREG_MAIR1, gem5::ArmISA::MISCREG_MDCR_EL2, gem5::ArmISA::MISCREG_MDCR_EL3, gem5::ArmISA::MISCREG_MDSCR_EL1, gem5::ArmISA::MISCREG_MIDR, gem5::ArmISA::MISCREG_MPIDR, gem5::ArmISA::MISCREG_MVFR0, gem5::ArmISA::MISCREG_MVFR1, gem5::ArmISA::MISCREG_NMRR, gem5::ArmISA::MISCREG_NSACR, gem5::ArmISA::MISCREG_NZCV, gem5::ArmISA::MISCREG_OSLAR_EL1, gem5::ArmISA::MISCREG_OSLSR_EL1, gem5::ArmISA::MISCREG_PAN, gem5::ArmISA::MISCREG_PMCR, gem5::ArmISA::MISCREG_PMEVCNTR0_EL0, gem5::ArmISA::MISCREG_PMEVTYPER5_EL0, gem5::ArmISA::MISCREG_PMINTENSET_EL1, gem5::ArmISA::MISCREG_PMOVSSET, gem5::ArmISA::MISCREG_PMOVSSET_EL0, gem5::ArmISA::MISCREG_PMXEVTYPER_PMCCFILTR, gem5::ArmISA::MISCREG_PRRR, gem5::ArmISA::MISCREG_SCR, gem5::ArmISA::MISCREG_SCR_EL3, gem5::ArmISA::MISCREG_SCTLR, gem5::ArmISA::MISCREG_SCTLR_EL1, gem5::ArmISA::MISCREG_SCTLR_EL2, gem5::ArmISA::MISCREG_SCTLR_EL3, gem5::ArmISA::MISCREG_SCTLR_NS, gem5::ArmISA::MISCREG_SCTLR_S, gem5::ArmISA::MISCREG_SDCR, gem5::ArmISA::MISCREG_SMCR_EL1, gem5::ArmISA::MISCREG_SMCR_EL2, gem5::ArmISA::MISCREG_SMCR_EL3, gem5::ArmISA::MISCREG_SP_EL0, gem5::ArmISA::MISCREG_SP_EL1, gem5::ArmISA::MISCREG_SP_EL2, gem5::ArmISA::MISCREG_SPSEL, gem5::ArmISA::MISCREG_TCR_EL1, gem5::ArmISA::MISCREG_TCR_EL2, gem5::ArmISA::MISCREG_TCR_EL3, gem5::ArmISA::MISCREG_TLBTR, gem5::ArmISA::MISCREG_TTBCR, gem5::ArmISA::MISCREG_TTBR0, gem5::ArmISA::MISCREG_TTBR0_EL1, gem5::ArmISA::MISCREG_TTBR0_EL2, gem5::ArmISA::MISCREG_TTBR0_EL3, gem5::ArmISA::MISCREG_TTBR1, gem5::ArmISA::MISCREG_TTBR1_EL1, gem5::ArmISA::MISCREG_TTBR1_EL2, gem5::ArmISA::MISCREG_UAO, gem5::ArmISA::MISCREG_VTCR_EL2, gem5::ArmISA::MISCREG_VTTBR, gem5::ArmISA::MISCREG_WARN_NOT_FAIL, gem5::ArmISA::MISCREG_ZCR_EL1, gem5::ArmISA::MISCREG_ZCR_EL2, gem5::ArmISA::MISCREG_ZCR_EL3, gem5::ArmISA::miscRegName, miscRegs, gem5::ArmISA::MODE_MON, gem5::ArmISA::cc_reg::Nz, gem5::ArmISA::pan, panic, gem5::MipsISA::pc, gem5::ThreadContext::pcState(), gem5::ThreadContext::pcStateNoRecord(), pmu, gem5::MipsISA::r, gem5::BaseMMU::Read, gem5::ThreadContext::readMiscReg(), readMiscRegNoEffect(), gem5::ThreadContext::readMiscRegNoEffect(), redirectRegVHE(), release, gem5::ArmISA::MMU::S12E0Tran, gem5::ArmISA::MMU::S12E1Tran, gem5::ArmISA::MMU::S1CTran, gem5::ArmISA::MMU::S1E0Tran, gem5::ArmISA::MMU::S1E1Tran, gem5::ArmISA::MMU::S1E2Tran, gem5::ArmISA::MMU::S1E3Tran, gem5::ArmISA::MMU::S1S2NsTran, selfDebug, gem5::ArmISA::SelfDebug::setbSDD(), gem5::ArmISA::SelfDebug::setDebugMask(), gem5::ArmISA::SelfDebug::setenableTDETGE(), gem5::ArmISA::SelfDebug::setMDBGen(), gem5::ArmISA::SelfDebug::setMDSCRvals(), gem5::ArmISA::BaseISADevice::setMiscReg(), gem5::ThreadContext::setMiscReg(), setMiscRegNoEffect(), gem5::ThreadContext::setReg(), gem5::ArmISA::sp, gem5::ArmISA::int_reg::Sp0, gem5::ArmISA::int_reg::Sp1, gem5::ArmISA::int_reg::Sp2, gem5::BaseISA::tc, gem5::ArmISA::uao, gem5::ArmISA::unflattenMiscReg(), gem5::ArmISA::SelfDebug::updateDBGBCR(), gem5::ArmISA::SelfDebug::updateDBGWCR(), gem5::ArmISA::SelfDebug::updateOSLock(), updateRegMap(), gem5::ArmISA::MMU::UserMode, gem5::ArmISA::cc_reg::V, gem5::ArmISA::v, gem5::X86ISA::val, warn, warn_once, and gem5::BaseMMU::Write.

Referenced by gem5::SparcISA::ISA::processHSTickCompare(), gem5::SparcISA::ISA::processSTickCompare(), and gem5::SparcISA::ISA::setFSReg().

◆ setMiscRegNoEffect()

◆ setMiscRegReset()

void gem5::ArmISA::ISA::setMiscRegReset ( RegIndex idx,
RegVal val )

◆ setupThreadContext()

void gem5::ArmISA::ISA::setupThreadContext ( )

◆ snsBankedIndex64()

◆ startup()

void gem5::ArmISA::ISA::startup ( )
overridevirtual

startup() is the final initialization call before simulation.

All state is initialized (including unserialized state, if any, such as the curTick() value), so this is the appropriate place to schedule initial event(s) for objects that need them.

Reimplemented from gem5::SimObject.

Definition at line 153 of file isa.cc.

References gem5::ArmRelease::has(), release, gem5::ThreadContext::setHtmCheckpointPtr(), setupThreadContext(), gem5::SimObject::startup(), and gem5::BaseISA::tc.

◆ takeOverFrom()

void gem5::ArmISA::ISA::takeOverFrom ( ThreadContext * new_tc,
ThreadContext * old_tc )
overridevirtual

Reimplemented from gem5::BaseISA.

Definition at line 184 of file isa.cc.

References setupThreadContext(), and gem5::BaseISA::tc.

◆ unserialize()

void gem5::ArmISA::ISA::unserialize ( CheckpointIn & cp)
overridevirtual

Unserialize an object.

Read an object's state from the current checkpoint section.

Parameters
cpCheckpoint state

Implements gem5::Serializable.

Definition at line 1577 of file isa.cc.

References DPRINTF, gem5::ArmISA::lookUpMiscReg, gem5::ArmISA::MISCREG_CPSR, gem5::ArmISA::MISCREG_UNSERIALIZE, gem5::ArmISA::miscRegName, miscRegs, gem5::ArmISA::NUM_MISCREGS, gem5::ArmISA::NUM_PHYS_MISCREGS, gem5::statistics::reset(), UNSERIALIZE_MAPPING, updateRegMap(), and warn.

◆ updateRegMap()

◆ zeroSveVecRegUpperPart()

template<typename Elem >
static void gem5::ArmISA::ISA::zeroSveVecRegUpperPart ( Elem * v,
unsigned eCount )
inlinestatic

Definition at line 375 of file isa.hh.

References gem5::ArmISA::i, and gem5::ArmISA::v.

Member Data Documentation

◆ _decoderFlavor

const enums::DecoderFlavor gem5::ArmISA::ISA::_decoderFlavor
protected

Definition at line 77 of file isa.hh.

Referenced by decoderFlavor().

◆ dummyDevice

DummyISADevice gem5::ArmISA::ISA::dummyDevice
protected

Dummy device for to handle non-existing ISA devices.

Definition at line 80 of file isa.hh.

Referenced by ISA().

◆ gicv3CpuInterface

std::unique_ptr<BaseISADevice> gem5::ArmISA::ISA::gicv3CpuInterface
protected

Definition at line 89 of file isa.hh.

Referenced by getGICv3CPUInterface(), and setMiscReg().

◆ haveLargeAsid64

bool gem5::ArmISA::ISA::haveLargeAsid64
protected

Definition at line 94 of file isa.hh.

Referenced by ISA().

◆ highestEL

ExceptionLevel gem5::ArmISA::ISA::highestEL
protected

Definition at line 93 of file isa.hh.

Referenced by ISA(), and readMiscReg().

◆ highestELIs64

bool gem5::ArmISA::ISA::highestELIs64
protected

Definition at line 92 of file isa.hh.

Referenced by flattenMiscIndex(), getMiscIndices(), initializeMiscRegMetadata(), ISA(), and setMiscReg().

◆ impdefAsNop

bool gem5::ArmISA::ISA::impdefAsNop
protected

If true, accesses to IMPLEMENTATION DEFINED registers are treated as NOP hence not causing UNDEFINED INSTRUCTION.

Definition at line 110 of file isa.hh.

◆ intRegMap

const RegId* gem5::ArmISA::ISA::intRegMap
protected

Definition at line 127 of file isa.hh.

Referenced by mapIntRegId(), and updateRegMap().

◆ miscRegs

◆ physAddrRange

uint8_t gem5::ArmISA::ISA::physAddrRange
protected

Definition at line 95 of file isa.hh.

Referenced by ISA().

◆ pmu

BaseISADevice* gem5::ArmISA::ISA::pmu
protected

Definition at line 83 of file isa.hh.

Referenced by ISA(), readMiscReg(), setMiscReg(), and setupThreadContext().

◆ release

const ArmRelease* gem5::ArmISA::ISA::release
protected

◆ selfDebug

SelfDebug* gem5::ArmISA::ISA::selfDebug
protected

Definition at line 112 of file isa.hh.

Referenced by getSelfDebug(), ISA(), setMiscReg(), and setupThreadContext().

◆ smeVL

unsigned gem5::ArmISA::ISA::smeVL
protected

SME vector length in quadwords.

Definition at line 101 of file isa.hh.

Referenced by getCurSmeVecLenInBits(), getCurSmeVecLenInBitsAtReset(), and ISA().

◆ sveVL

unsigned gem5::ArmISA::ISA::sveVL
protected

SVE vector length in quadwords.

Definition at line 98 of file isa.hh.

Referenced by getCurSveVecLenInBits(), getCurSveVecLenInBitsAtReset(), getVectorLengthInBytes(), and ISA().

◆ system

ArmSystem* gem5::ArmISA::ISA::system
protected

◆ timer

std::unique_ptr<BaseISADevice> gem5::ArmISA::ISA::timer
protected

Definition at line 86 of file isa.hh.

Referenced by getGenericTimer().


The documentation for this class was generated from the following files:

Generated on Tue Jun 18 2024 16:24:16 for gem5 by doxygen 1.11.0