gem5 v24.0.0.0
|
#include <isa.hh>
Public Member Functions | |
const RegId & | mapIntRegId (RegIndex idx) const |
void | clear () override |
SelfDebug * | getSelfDebug () const |
const ArmRelease * | getRelease () 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 () |
PCStateBase * | newPCState (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 RegClasses & | regClasses () const |
const std::string | getIsaName () const |
Public Member Functions inherited from gem5::SimObject | |
const Params & | params () 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. | |
ProbeManager * | getProbeManager () |
Get the probe manager for this object. | |
virtual Port & | getPort (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 | |
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. | |
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 Info * | resolveStat (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 | |
Group & | operator= (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 SelfDebug * | getSelfDebug (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 SimObject * | find (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 SimObjectResolver * | getSimObjectResolver () |
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 () |
BaseISADevice & | getGenericTimer () |
BaseISADevice & | getGICv3CPUInterface () |
BaseISADevice * | getGICv3CPUInterface (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 | |
ArmSystem * | system |
const enums::DecoderFlavor | _decoderFlavor |
DummyISADevice | dummyDevice |
Dummy device for to handle non-existing ISA devices. | |
BaseISADevice * | pmu |
std::unique_ptr< BaseISADevice > | timer |
std::unique_ptr< BaseISADevice > | gicv3CpuInterface |
bool | highestELIs64 |
ExceptionLevel | highestEL |
bool | haveLargeAsid64 |
uint8_t | physAddrRange |
unsigned | sveVL |
SVE vector length in quadwords. | |
unsigned | smeVL |
SME vector length in quadwords. | |
const ArmRelease * | release |
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. | |
SelfDebug * | selfDebug |
RegVal | miscRegs [NUM_MISCREGS] |
const RegId * | intRegMap |
Protected Attributes inherited from gem5::BaseISA | |
ThreadContext * | tc = 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 | |
EventQueue * | eventq |
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 |
gem5::ArmISA::ISA::ISA | ( | const Params & | p | ) |
Definition at line 86 of file isa.cc.
References gem5::BaseISA::_regClasses, gem5::ArmISA::ccRegClass, clear(), dummyDevice, gem5::ArmISA::EL1, gem5::ArmISA::flatIntRegClass, gem5::X86ISA::floatRegClass, gem5::FullSystem, haveLargeAsid64, gem5::ArmSystem::haveLargeAsid64(), highestEL, gem5::ArmSystem::highestEL(), highestELIs64, gem5::ArmSystem::highestELIs64(), initializeMiscRegMetadata(), gem5::ArmISA::matRegClass, gem5::ArmISA::miscRegClass, gem5::MipsISA::p, physAddrRange, gem5::ArmSystem::physAddrRange(), pmu, gem5::ArmISA::preUnflattenMiscReg(), release, gem5::ArmSystem::releaseFS(), selfDebug, gem5::ArmISA::BaseISADevice::setISA(), smeVL, gem5::ArmSystem::smeVL(), sveVL, gem5::ArmSystem::sveVL(), system, gem5::ArmISA::vecElemClass, gem5::ArmISA::vecPredRegClass, and gem5::ArmISA::vecRegClass.
|
protected |
Definition at line 1649 of file isa.cc.
References gem5::ThreadContext::contextId(), DPRINTF, flags, gem5::Request::funcRequestorId, gem5::ArmISA::MMU::getAttr(), gem5::ArmISA::ArmFault::getFsr(), gem5::ArmISA::getMMUPtr(), gem5::ArmRelease::has(), gem5::ArmISA::MMU::HypMode, gem5::PCStateBase::instAddr(), gem5::ArmISA::ArmFault::iss(), gem5::ArmISA::ArmFault::isStage2(), gem5::ArmISA::mask, gem5::ArmISA::MISCREG_HCR_EL2, gem5::ArmISA::MISCREG_PAR, gem5::ArmISA::MISCREG_TTBCR, gem5::ArmISA::mode, gem5::NoFault, gem5::ThreadContext::pcState(), readMiscRegNoEffect(), release, gem5::ArmISA::MMU::S1S2NsTran, setMiscRegNoEffect(), gem5::BaseISA::tc, gem5::ArmISA::MMU::translateFunctional(), gem5::ArmISA::ArmFault::update(), gem5::X86ISA::val, and warn_once.
Referenced by setMiscReg().
|
protected |
Definition at line 1598 of file isa.cc.
References gem5::ArmISA::attr, gem5::ThreadContext::contextId(), DPRINTF, flags, gem5::Request::funcRequestorId, gem5::ArmISA::MMU::getAttr(), gem5::ArmISA::ArmFault::getFsr(), gem5::ArmISA::getMMUPtr(), gem5::PCStateBase::instAddr(), gem5::ArmISA::ArmFault::iss(), gem5::ArmISA::ArmFault::isStage2(), gem5::ArmISA::mask, gem5::ArmISA::MISCREG_PAR_EL1, gem5::ArmISA::mode, gem5::NoFault, gem5::ThreadContext::pcState(), setMiscRegNoEffect(), gem5::BaseISA::tc, gem5::ArmISA::MMU::translateFunctional(), gem5::ArmISA::ArmFault::update(), gem5::X86ISA::val, and warn_once.
Referenced by setMiscReg().
|
overridevirtual |
Reimplemented from gem5::BaseISA.
Definition at line 138 of file isa.cc.
References gem5::ArmISA::getMMUPtr(), gem5::ArmISA::MMU::invalidateMiscReg(), gem5::ArmISA::lookUpMiscReg, gem5::ArmISA::MISCREG_CPSR, miscRegs, gem5::ArmISA::NUM_MISCREGS, gem5::BaseISA::tc, and updateRegMap().
Referenced by ISA().
|
overridevirtual |
Implements gem5::BaseISA.
Definition at line 191 of file isa.cc.
References gem5::ArmISA::ccRegClass, gem5::ArmISA::flatIntRegClass, gem5::ThreadContext::getMMUPtr(), gem5::ThreadContext::getReg(), gem5::ArmISA::i, gem5::ArmISA::matRegClass, gem5::ArmISA::MISCREG_CPSR, gem5::ArmISA::NUM_MISCREGS, gem5::ThreadContext::pcState(), gem5::ThreadContext::readMiscRegNoEffect(), gem5::ThreadContext::setMiscReg(), gem5::ThreadContext::setMiscRegNoEffect(), gem5::ThreadContext::setReg(), gem5::BaseISA::tc, gem5::ArmISA::vecElemClass, and gem5::ArmISA::vecRegClass.
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().
|
inline |
Definition at line 401 of file isa.hh.
References _decoderFlavor.
|
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().
unsigned gem5::ArmISA::ISA::getCurSmeVecLenInBits | ( | ) | const |
Definition at line 1518 of file isa.cc.
References gem5::ArmISA::el, gem5::ArmISA::EL0, gem5::ArmISA::EL1, gem5::ArmISA::EL2, gem5::ArmISA::EL3, gem5::ArmISA::ELIsInHost(), gem5::FullSystem, gem5::ArmRelease::has(), gem5::ArmISA::isSecure(), gem5::ArmISA::len, gem5::ArmISA::MISCREG_CPSR, gem5::ArmISA::MISCREG_SMCR_EL1, gem5::ArmISA::MISCREG_SMCR_EL2, gem5::ArmISA::MISCREG_SMCR_EL3, miscRegs, panic_if, release, smeVL, and gem5::BaseISA::tc.
Referenced by gem5::ArmISA::ArmStaticInst::getCurSmeVecLenInBits(), getCurSveVecLenInBits(), and setMiscReg().
|
inline |
unsigned gem5::ArmISA::ISA::getCurSveVecLenInBits | ( | ) | const |
Definition at line 1467 of file isa.cc.
References gem5::ArmISA::el, gem5::ArmISA::EL0, gem5::ArmISA::EL1, gem5::ArmISA::EL2, gem5::ArmISA::EL3, gem5::ArmISA::ELIsInHost(), gem5::FullSystem, getCurSmeVecLenInBits(), gem5::ArmRelease::has(), gem5::ArmISA::isSecure(), gem5::ArmISA::len, gem5::ArmISA::MISCREG_CPSR, gem5::ArmISA::MISCREG_SVCR, gem5::ArmISA::MISCREG_ZCR_EL1, gem5::ArmISA::MISCREG_ZCR_EL2, gem5::ArmISA::MISCREG_ZCR_EL3, miscRegs, panic_if, release, sveVL, and gem5::BaseISA::tc.
Referenced by gem5::ArmISA::ArmStaticInst::getCurSveVecLenInBits(), and setMiscReg().
|
inline |
|
inlineoverridevirtual |
Reimplemented from gem5::BaseISA.
Definition at line 408 of file isa.hh.
References gem5::ArmISA::MISCREG_CONTEXTIDR, and readMiscRegNoEffect().
|
protected |
Definition at line 1389 of file isa.cc.
References gem5::ThreadContext::contextId(), gem5::ArmSystem::getGenericTimer(), panic, system, gem5::BaseISA::tc, and timer.
Referenced by readMiscReg(), and setMiscReg().
|
protected |
Definition at line 1410 of file isa.cc.
References getGICv3CPUInterface(), gicv3CpuInterface, panic_if, and gem5::BaseISA::tc.
Referenced by getGICv3CPUInterface(), readMiscReg(), setMiscReg(), and setupThreadContext().
|
protected |
Definition at line 1423 of file isa.cc.
References gem5::ThreadContext::contextId(), gem5::Gicv3::getCPUInterface(), gem5::ArmSystem::getGIC(), system, and gem5::BaseISA::tc.
|
inline |
Definition at line 337 of file isa.hh.
References flattenMiscIndex(), highestELIs64, inSecureState(), gem5::ArmISA::lookUpMiscReg, and gem5::ArmISA::MISCREG_BANKED_CHILD.
Referenced by readMiscRegNoEffect(), and setMiscRegNoEffect().
|
inline |
Definition at line 193 of file isa.hh.
References release.
Referenced by gem5::ArmISA::HaveExt(), gem5::TlbiOp::performTlbi(), gem5::TlbiOp64::tlbiIpaS2(), and gem5::TlbiOp64::tlbiRipaS2().
|
inline |
Definition at line 181 of file isa.hh.
References selfDebug.
Referenced by gem5::ArmISA::ArmStaticInst::activateBreakpoint(), gem5::DebugStep::execute(), gem5::ArmISA::ArmStaticInst::getPSTATEFromPSR(), getSelfDebug(), and gem5::ArmISA::MMU::translateFs().
|
inlinestatic |
Definition at line 187 of file isa.hh.
References gem5::ThreadContext::getIsaPtr(), getSelfDebug(), and gem5::BaseISA::tc.
|
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.
|
overridevirtual |
Reimplemented from gem5::BaseISA.
Definition at line 1849 of file isa.cc.
References DPRINTF, gem5::ArmISA::MISCREG_LOCKFLAG, gem5::ArmISA::MISCREG_SEV_MAILBOX, gem5::ArmISA::sendEvent(), gem5::ThreadContext::setMiscReg(), and gem5::BaseISA::tc.
|
overridevirtual |
Reimplemented from gem5::BaseISA.
Definition at line 1863 of file isa.cc.
References DPRINTF, gem5::ArmISA::MISCREG_LOCKFLAG, gem5::ArmISA::MISCREG_SEV_MAILBOX, gem5::ArmISA::sendEvent(), gem5::ExecContext::setMiscReg(), and gem5::ExecContext::tcBase().
|
overridevirtual |
Reimplemented from gem5::BaseISA.
Definition at line 1759 of file isa.cc.
References DPRINTF, gem5::ThreadContext::getCpuPtr(), gem5::ArmISA::MISCREG_LOCKADDR, gem5::ArmISA::MISCREG_LOCKFLAG, gem5::Named::name(), gem5::ThreadContext::setMiscReg(), and gem5::BaseISA::tc.
|
overridevirtual |
Reimplemented from gem5::BaseISA.
Definition at line 1768 of file isa.cc.
References DPRINTF, gem5::ThreadContext::getCpuPtr(), gem5::ArmISA::MISCREG_LOCKADDR, gem5::ArmISA::MISCREG_LOCKFLAG, gem5::Named::name(), gem5::ExecContext::setMiscReg(), and gem5::ExecContext::tcBase().
|
overridevirtual |
Reimplemented from gem5::BaseISA.
Definition at line 1753 of file isa.cc.
References gem5::ArmISA::lockedSnoopHandler(), and gem5::ExecContext::tcBase().
Reimplemented from gem5::BaseISA.
Definition at line 1747 of file isa.cc.
References gem5::ArmISA::lockedSnoopHandler(), and gem5::BaseISA::tc.
|
overridevirtual |
Reimplemented from gem5::BaseISA.
Definition at line 1777 of file isa.cc.
References DPRINTF, gem5::ThreadContext::getCpuPtr(), gem5::ArmISA::MISCREG_LOCKADDR, gem5::ArmISA::MISCREG_LOCKFLAG, gem5::ArmISA::MISCREG_SEV_MAILBOX, gem5::Named::name(), gem5::ThreadContext::readMiscReg(), gem5::ThreadContext::setMiscReg(), and gem5::BaseISA::tc.
|
overridevirtual |
Reimplemented from gem5::BaseISA.
Definition at line 1786 of file isa.cc.
References DPRINTF, gem5::ThreadContext::getCpuPtr(), gem5::ArmISA::MISCREG_LOCKADDR, gem5::ArmISA::MISCREG_LOCKFLAG, gem5::ArmISA::MISCREG_SEV_MAILBOX, gem5::Named::name(), gem5::ExecContext::readMiscReg(), gem5::ExecContext::setMiscReg(), and gem5::ExecContext::tcBase().
|
overridevirtual |
Reimplemented from gem5::BaseISA.
Definition at line 1836 of file isa.cc.
References gem5::ArmISA::lockedWriteHandler(), and gem5::BaseISA::tc.
|
overridevirtual |
Reimplemented from gem5::BaseISA.
Definition at line 1842 of file isa.cc.
References gem5::ArmISA::lockedWriteHandler(), and gem5::ExecContext::tcBase().
|
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().
|
inlineprotected |
Definition at line 115 of file isa.hh.
References gem5::ArmISA::lookUpMiscReg, and gem5::X86ISA::reg.
Referenced by initializeMiscRegMetadata(), and setMiscRegReset().
bool gem5::ArmISA::ISA::inSecureState | ( | ) | const |
Return true if the PE is in Secure state.
Definition at line 1435 of file isa.cc.
References gem5::ArmRelease::has(), gem5::ArmISA::MISCREG_CPSR, gem5::ArmISA::MISCREG_SCR, miscRegs, gem5::ArmISA::MODE_EL2H, gem5::ArmISA::MODE_EL2T, gem5::ArmISA::MODE_EL3H, gem5::ArmISA::MODE_EL3T, gem5::ArmISA::MODE_HYP, gem5::ArmISA::MODE_MON, and release.
Referenced by flattenMiscIndex(), and getMiscIndices().
|
inlineoverridevirtual |
Implements gem5::BaseISA.
Definition at line 414 of file isa.hh.
References gem5::ArmISA::inUserMode(), gem5::ArmISA::MISCREG_CPSR, and miscRegs.
|
inlineoverridevirtual |
Implements gem5::BaseISA.
gem5::ArmISA::ISA::PARAMS | ( | ArmISA | ) |
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.
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().
Definition at line 1375 of file isa.cc.
References flattenMiscIndex(), and gem5::ArmISA::lookUpMiscReg.
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().
|
overridevirtual |
Serialize an object.
Output an object's state into the current checkpoint section.
cp | Checkpoint 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.
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().
Implements gem5::BaseISA.
Definition at line 662 of file isa.cc.
References gem5::bits(), DPRINTF, getMiscIndices(), gem5::ArmISA::lookUpMiscReg, gem5::ArmISA::miscRegName, miscRegs, gem5::ArmISA::NUM_MISCREGS, gem5::X86ISA::reg, gem5::ArmISA::v, and gem5::X86ISA::val.
Referenced by addressTranslation(), addressTranslation64(), gem5::Gicv3CPUInterface::dropPriority(), gem5::Clint::raiseInterruptPin(), gem5::Gicv3CPUInterface::readMiscReg(), gem5::Gicv3CPUInterface::setBankedMiscReg(), gem5::SparcISA::ISA::setFSReg(), setMiscReg(), gem5::Gicv3CPUInterface::setMiscReg(), gem5::Gicv3CPUInterface::virtualActivateIRQ(), gem5::Gicv3CPUInterface::virtualDeactivateIRQ(), gem5::Gicv3CPUInterface::virtualDropPriority(), and gem5::Gicv3CPUInterface::virtualIncrementEOICount().
Definition at line 1382 of file isa.cc.
References flattenMiscIndex(), InitReg(), gem5::ArmISA::MiscRegLUTEntryInitializer::reset(), and gem5::X86ISA::val.
void gem5::ArmISA::ISA::setupThreadContext | ( | ) |
Definition at line 168 of file isa.cc.
References getGICv3CPUInterface(), gem5::ArmISA::SelfDebug::init(), pmu, selfDebug, gem5::ArmISA::BaseISADevice::setThreadContext(), system, and gem5::BaseISA::tc.
Referenced by startup(), and takeOverFrom().
|
inline |
Definition at line 326 of file isa.hh.
References gem5::ArmRelease::has(), gem5::ArmISA::lookUpMiscReg, gem5::ArmISA::MISCREG_BANKED64, gem5::ArmISA::ns, gem5::X86ISA::reg, and release.
Referenced by flattenMiscIndex(), gem5::Gicv3CPUInterface::readBankedMiscReg(), and gem5::Gicv3CPUInterface::setBankedMiscReg().
|
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.
|
overridevirtual |
Reimplemented from gem5::BaseISA.
Definition at line 184 of file isa.cc.
References setupThreadContext(), and gem5::BaseISA::tc.
|
overridevirtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
cp | Checkpoint 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.
|
inlineprotected |
Definition at line 130 of file isa.hh.
References intRegMap, gem5::ArmISA::MODE_ABORT, gem5::ArmISA::MODE_FIQ, gem5::ArmISA::MODE_HYP, gem5::ArmISA::MODE_IRQ, gem5::ArmISA::MODE_MON, gem5::ArmISA::MODE_SVC, gem5::ArmISA::MODE_SYSTEM, gem5::ArmISA::MODE_UNDEFINED, gem5::ArmISA::MODE_USER, panic, gem5::ArmISA::int_reg::Reg64Map, gem5::ArmISA::int_reg::RegAbtMap, gem5::ArmISA::int_reg::RegFiqMap, gem5::ArmISA::int_reg::RegHypMap, gem5::ArmISA::int_reg::RegIrqMap, gem5::ArmISA::int_reg::RegMonMap, gem5::ArmISA::int_reg::RegSvcMap, gem5::ArmISA::int_reg::RegUndMap, and gem5::ArmISA::int_reg::RegUsrMap.
Referenced by clear(), setMiscReg(), and unserialize().
|
inlinestatic |
Definition at line 375 of file isa.hh.
References gem5::ArmISA::i, and gem5::ArmISA::v.
|
protected |
Definition at line 77 of file isa.hh.
Referenced by decoderFlavor().
|
protected |
|
protected |
Definition at line 89 of file isa.hh.
Referenced by getGICv3CPUInterface(), and setMiscReg().
|
protected |
|
protected |
Definition at line 93 of file isa.hh.
Referenced by ISA(), and readMiscReg().
|
protected |
Definition at line 92 of file isa.hh.
Referenced by flattenMiscIndex(), getMiscIndices(), initializeMiscRegMetadata(), ISA(), and setMiscReg().
|
protected |
|
protected |
Definition at line 127 of file isa.hh.
Referenced by mapIntRegId(), and updateRegMap().
|
protected |
Definition at line 126 of file isa.hh.
Referenced by clear(), flattenMiscIndex(), getCurSmeVecLenInBits(), getCurSveVecLenInBits(), inSecureState(), inUserMode(), readMiscReg(), readMiscRegNoEffect(), serialize(), setMiscReg(), setMiscRegNoEffect(), and unserialize().
|
protected |
|
protected |
Definition at line 83 of file isa.hh.
Referenced by ISA(), readMiscReg(), setMiscReg(), and setupThreadContext().
|
protected |
This could be either a FS or a SE release.
Definition at line 104 of file isa.hh.
Referenced by addressTranslation(), getCurSmeVecLenInBits(), getCurSveVecLenInBits(), getRelease(), initializeMiscRegMetadata(), inSecureState(), ISA(), readMiscReg(), redirectRegVHE(), setMiscReg(), snsBankedIndex64(), and startup().
|
protected |
Definition at line 112 of file isa.hh.
Referenced by getSelfDebug(), ISA(), setMiscReg(), and setupThreadContext().
|
protected |
SME vector length in quadwords.
Definition at line 101 of file isa.hh.
Referenced by getCurSmeVecLenInBits(), getCurSmeVecLenInBitsAtReset(), and ISA().
|
protected |
SVE vector length in quadwords.
Definition at line 98 of file isa.hh.
Referenced by getCurSveVecLenInBits(), getCurSveVecLenInBitsAtReset(), getVectorLengthInBytes(), and ISA().
|
protected |
Definition at line 74 of file isa.hh.
Referenced by getGenericTimer(), getGICv3CPUInterface(), initializeMiscRegMetadata(), ISA(), readMiscReg(), and setupThreadContext().
|
protected |
Definition at line 86 of file isa.hh.
Referenced by getGenericTimer().