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

#include <isa.hh>

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

Public Types

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

Public Member Functions

const RegIndexmapIntRegId (RegIndex idx) const
 
void clear () override
 
PCStateBasenewPCState (Addr new_inst_addr=0) const override
 
void serialize (CheckpointOut &cp) const override
 Serialize an object.
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object.
 
RegVal readMiscRegNoEffect (RegIndex idx) const override
 
RegVal readMiscReg (RegIndex idx) override
 
void setMiscRegNoEffect (RegIndex idx, RegVal val) override
 
void setMiscReg (RegIndex idx, RegVal val) override
 
uint64_t getExecutingAsid () const override
 
bool inUserMode () const override
 
void copyRegsFrom (ThreadContext *src) override
 
 ISA (const Params &p)
 
- Public Member Functions inherited from gem5::BaseISA
virtual void takeOverFrom (ThreadContext *new_tc, ThreadContext *old_tc)
 
virtual void setThreadContext (ThreadContext *_tc)
 
virtual void resetThread ()
 
const RegClassesregClasses () const
 
const std::string getIsaName () const
 
virtual void handleLockedRead (const RequestPtr &req)
 
virtual void handleLockedRead (ExecContext *xc, const RequestPtr &req)
 
virtual bool handleLockedWrite (const RequestPtr &req, Addr cacheBlockMask)
 
virtual bool handleLockedWrite (ExecContext *xc, const RequestPtr &req, Addr cacheBlockMask)
 
virtual void handleLockedSnoop (PacketPtr pkt, Addr cacheBlockMask)
 
virtual void handleLockedSnoop (ExecContext *xc, PacketPtr pkt, Addr cacheBlockMask)
 
virtual void handleLockedSnoopHit ()
 
virtual void handleLockedSnoopHit (ExecContext *xc)
 
virtual void globalClearExclusive ()
 
virtual void globalClearExclusive (ExecContext *xc)
 
virtual int64_t getVectorLengthInBytes () const
 This function returns the vector length of the Vector Length Agnostic extension of the ISA.
 
- 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.
 
virtual void startup ()
 startup() is the final initialization call before simulation.
 
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
 

Protected Member Functions

bool isHyperPriv ()
 
bool isPriv ()
 
bool isNonPriv ()
 
- 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.
 

Private Types

enum  InstIntRegOffsets {
  CurrentGlobalsOffset = 0 , CurrentWindowOffset = CurrentGlobalsOffset + NumGlobalRegs , MicroIntOffset = CurrentWindowOffset + NumWindowedRegs , NextGlobalsOffset = MicroIntOffset + int_reg::NumMicroRegs ,
  NextWindowOffset = NextGlobalsOffset + NumGlobalRegs , PreviousGlobalsOffset = NextWindowOffset + NumWindowedRegs , PreviousWindowOffset = PreviousGlobalsOffset + NumGlobalRegs , TotalInstIntRegs = PreviousWindowOffset + NumWindowedRegs
}
 
typedef MemberEventWrapper<&ISA::processTickCompareTickCompareEvent
 
typedef MemberEventWrapper<&ISA::processSTickCompareSTickCompareEvent
 
typedef MemberEventWrapper<&ISA::processHSTickCompareHSTickCompareEvent
 

Private Member Functions

void setFSReg (int miscReg, RegVal val)
 
RegVal readFSReg (int miscReg)
 
void checkSoftInt ()
 
void processTickCompare ()
 Process a tick compare event and generate an interrupt on the cpu if appropriate.
 
void processSTickCompare ()
 
void processHSTickCompare ()
 
void installWindow (int cwp, int offset)
 
void installGlobals (int gl, int offset)
 
void reloadRegMap ()
 

Private Attributes

uint8_t asi
 
uint64_t tick
 
uint8_t fprs
 
uint64_t gsr
 
uint64_t softint
 
uint64_t tick_cmpr
 
uint64_t stick
 
uint64_t stick_cmpr
 
uint64_t tpc [MaxTL]
 
uint64_t tnpc [MaxTL]
 
uint64_t tstate [MaxTL]
 
uint16_t tt [MaxTL]
 
uint64_t tba
 
PSTATE pstate
 
uint8_t tl
 
uint8_t pil
 
uint8_t cwp
 
uint8_t gl
 
HPSTATE hpstate
 Hyperprivileged Registers.
 
uint64_t htstate [MaxTL]
 
uint64_t hintp
 
uint64_t htba
 
uint64_t hstick_cmpr
 
uint64_t strandStatusReg
 
uint64_t fsr
 Floating point misc registers.
 
uint16_t priContext
 MMU Internal Registers.
 
uint16_t secContext
 
uint16_t partId
 
uint64_t lsuCtrlReg
 
uint64_t scratchPad [8]
 
uint64_t cpu_mondo_head
 
uint64_t cpu_mondo_tail
 
uint64_t dev_mondo_head
 
uint64_t dev_mondo_tail
 
uint64_t res_error_head
 
uint64_t res_error_tail
 
uint64_t nres_error_head
 
uint64_t nres_error_tail
 
TickCompareEventtickCompare = nullptr
 
STickCompareEventsTickCompare = nullptr
 
HSTickCompareEventhSTickCompare = nullptr
 
RegIndex intRegMap [TotalInstIntRegs]
 

Static Private Attributes

static const int NumGlobalRegs = 8
 
static const int NumWindowedRegs = 24
 
static const int WindowOverlap = 8
 
static const int TotalGlobals = (MaxGL + 1) * NumGlobalRegs
 
static const int RegsPerWindow = NumWindowedRegs - WindowOverlap
 
static const int TotalWindowed = NWindows * RegsPerWindow
 

Additional Inherited Members

- 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 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.
 

Detailed Description

Definition at line 55 of file isa.hh.

Member Typedef Documentation

◆ HSTickCompareEvent

◆ Params

using gem5::SparcISA::ISA::Params = SparcISAParams

Definition at line 203 of file isa.hh.

◆ STickCompareEvent

◆ TickCompareEvent

Member Enumeration Documentation

◆ InstIntRegOffsets

Enumerator
CurrentGlobalsOffset 
CurrentWindowOffset 
MicroIntOffset 
NextGlobalsOffset 
NextWindowOffset 
PreviousGlobalsOffset 
PreviousWindowOffset 
TotalInstIntRegs 

Definition at line 153 of file isa.hh.

Constructor & Destructor Documentation

◆ ISA()

Member Function Documentation

◆ checkSoftInt()

◆ clear()

◆ copyRegsFrom()

◆ getExecutingAsid()

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

Reimplemented from gem5::BaseISA.

Definition at line 198 of file isa.hh.

References gem5::SparcISA::MISCREG_MMU_P_CONTEXT, and readMiscRegNoEffect().

◆ installGlobals()

void gem5::SparcISA::ISA::installGlobals ( int gl,
int offset )
private

◆ installWindow()

void gem5::SparcISA::ISA::installWindow ( int cwp,
int offset )
private

◆ inUserMode()

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

◆ isHyperPriv()

bool gem5::SparcISA::ISA::isHyperPriv ( )
inlineprotected

Definition at line 185 of file isa.hh.

References hpstate.

◆ isNonPriv()

bool gem5::SparcISA::ISA::isNonPriv ( )
inlineprotected

Definition at line 187 of file isa.hh.

References isPriv().

◆ isPriv()

bool gem5::SparcISA::ISA::isPriv ( )
inlineprotected

Definition at line 186 of file isa.hh.

References hpstate, and pstate.

Referenced by isNonPriv().

◆ mapIntRegId()

const RegIndex & gem5::SparcISA::ISA::mapIntRegId ( RegIndex idx) const
inline

Definition at line 171 of file isa.hh.

References intRegMap.

◆ newPCState()

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

Implements gem5::BaseISA.

Definition at line 176 of file isa.hh.

◆ processHSTickCompare()

◆ processSTickCompare()

◆ processTickCompare()

void gem5::ISA::processTickCompare ( )
private

Process a tick compare event and generate an interrupt on the cpu if appropriate.

Definition at line 322 of file ua2005.cc.

References panic.

◆ readFSReg()

◆ readMiscReg()

◆ readMiscRegNoEffect()

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

Privilged Registers

Hyper privileged registers

Floating Point Status Register

Implements gem5::BaseISA.

Definition at line 379 of file isa.cc.

References asi, gem5::bits(), cpu_mondo_head, cpu_mondo_tail, cwp, dev_mondo_head, dev_mondo_tail, DPRINTF, fprs, fsr, gl, gsr, hintp, hpstate, hstick_cmpr, htba, htstate, lsuCtrlReg, gem5::SparcISA::MISCREG_ASI, gem5::SparcISA::MISCREG_CWP, gem5::SparcISA::MISCREG_FPRS, gem5::SparcISA::MISCREG_FSR, gem5::SparcISA::MISCREG_GL, gem5::SparcISA::MISCREG_GSR, gem5::SparcISA::MISCREG_HINTP, gem5::SparcISA::MISCREG_HPSTATE, gem5::SparcISA::MISCREG_HSTICK_CMPR, gem5::SparcISA::MISCREG_HTBA, gem5::SparcISA::MISCREG_HTSTATE, gem5::SparcISA::MISCREG_MMU_LSU_CTRL, gem5::SparcISA::MISCREG_MMU_P_CONTEXT, gem5::SparcISA::MISCREG_MMU_PART_ID, gem5::SparcISA::MISCREG_MMU_S_CONTEXT, gem5::SparcISA::MISCREG_PCR, gem5::SparcISA::MISCREG_PIC, gem5::SparcISA::MISCREG_PIL, gem5::SparcISA::MISCREG_PRIVTICK, gem5::SparcISA::MISCREG_PSTATE, gem5::SparcISA::MISCREG_QUEUE_CPU_MONDO_HEAD, gem5::SparcISA::MISCREG_QUEUE_CPU_MONDO_TAIL, gem5::SparcISA::MISCREG_QUEUE_DEV_MONDO_HEAD, gem5::SparcISA::MISCREG_QUEUE_DEV_MONDO_TAIL, gem5::SparcISA::MISCREG_QUEUE_NRES_ERROR_HEAD, gem5::SparcISA::MISCREG_QUEUE_NRES_ERROR_TAIL, gem5::SparcISA::MISCREG_QUEUE_RES_ERROR_HEAD, gem5::SparcISA::MISCREG_QUEUE_RES_ERROR_TAIL, gem5::SparcISA::MISCREG_SCRATCHPAD_R0, gem5::SparcISA::MISCREG_SCRATCHPAD_R1, gem5::SparcISA::MISCREG_SCRATCHPAD_R2, gem5::SparcISA::MISCREG_SCRATCHPAD_R3, gem5::SparcISA::MISCREG_SCRATCHPAD_R4, gem5::SparcISA::MISCREG_SCRATCHPAD_R5, gem5::SparcISA::MISCREG_SCRATCHPAD_R6, gem5::SparcISA::MISCREG_SCRATCHPAD_R7, gem5::SparcISA::MISCREG_SOFTINT, gem5::SparcISA::MISCREG_STICK, gem5::SparcISA::MISCREG_STICK_CMPR, gem5::SparcISA::MISCREG_STRAND_STS_REG, gem5::SparcISA::MISCREG_TBA, gem5::SparcISA::MISCREG_TICK, gem5::SparcISA::MISCREG_TICK_CMPR, gem5::SparcISA::MISCREG_TL, gem5::SparcISA::MISCREG_TLB_DATA, gem5::SparcISA::MISCREG_TNPC, gem5::SparcISA::MISCREG_TPC, gem5::SparcISA::MISCREG_TSTATE, gem5::SparcISA::MISCREG_TT, nres_error_head, nres_error_tail, panic, partId, pil, priContext, pstate, res_error_head, res_error_tail, scratchPad, secContext, softint, stick, stick_cmpr, strandStatusReg, tba, tick, tick_cmpr, tl, tnpc, tpc, tstate, and tt.

Referenced by getExecutingAsid(), inUserMode(), and readMiscReg().

◆ reloadRegMap()

◆ serialize()

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

◆ setFSReg()

void gem5::ISA::setFSReg ( int miscReg,
RegVal val )
private

Definition at line 92 of file ua2005.cc.

References gem5::bits(), gem5::BaseCPU::clearInterrupt(), gem5::Clocked::clockEdge(), gem5::EventManager::deschedule(), DPRINTF, gem5::ThreadContext::getCpuPtr(), gem5::getMiscRegName(), gem5::ThreadContext::getSystemPtr(), gem5::BaseCPU::instCount(), gem5::SparcISA::IT_CPU_MONDO, gem5::SparcISA::IT_DEV_MONDO, gem5::SparcISA::IT_HINTP, gem5::SparcISA::IT_RES_ERROR, gem5::SparcISA::IT_TRAP_LEVEL_ZERO, gem5::ArmISA::mask, gem5::SparcISA::MISCREG_HINTP, gem5::SparcISA::MISCREG_HPSTATE, gem5::SparcISA::MISCREG_HSTICK_CMPR, gem5::SparcISA::MISCREG_HTBA, gem5::SparcISA::MISCREG_HTSTATE, gem5::SparcISA::MISCREG_HVER, gem5::SparcISA::MISCREG_PIL, gem5::SparcISA::MISCREG_PSTATE, gem5::SparcISA::MISCREG_QUEUE_CPU_MONDO_HEAD, gem5::SparcISA::MISCREG_QUEUE_CPU_MONDO_TAIL, gem5::SparcISA::MISCREG_QUEUE_DEV_MONDO_HEAD, gem5::SparcISA::MISCREG_QUEUE_DEV_MONDO_TAIL, gem5::SparcISA::MISCREG_QUEUE_NRES_ERROR_HEAD, gem5::SparcISA::MISCREG_QUEUE_NRES_ERROR_TAIL, gem5::SparcISA::MISCREG_QUEUE_RES_ERROR_HEAD, gem5::SparcISA::MISCREG_QUEUE_RES_ERROR_TAIL, gem5::SparcISA::MISCREG_SOFTINT, gem5::SparcISA::MISCREG_SOFTINT_CLR, gem5::SparcISA::MISCREG_SOFTINT_SET, gem5::SparcISA::MISCREG_STICK_CMPR, gem5::SparcISA::MISCREG_STRAND_STS_REG, gem5::SparcISA::MISCREG_TICK_CMPR, panic, gem5::BaseCPU::postInterrupt(), gem5::Workload::recordQuiesce(), gem5::EventManager::schedule(), gem5::ArmISA::ISA::setMiscReg(), gem5::ArmISA::ISA::setMiscRegNoEffect(), gem5::ThreadContext::suspend(), gem5::BaseISA::tc, gem5::MipsISA::tl, gem5::X86ISA::val, and gem5::System::workload.

Referenced by setMiscReg().

◆ setMiscReg()

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

Implements gem5::BaseISA.

Definition at line 769 of file isa.cc.

References gem5::InstDecoder::as(), gem5::BaseCPU::clearInterrupt(), CurrentGlobalsOffset, CurrentWindowOffset, DPRINTF, gem5::ThreadContext::getCpuPtr(), gem5::ThreadContext::getDecoderPtr(), hpstate, installGlobals(), installWindow(), gem5::BaseCPU::instCount(), gem5::SparcISA::IT_TRAP_LEVEL_ZERO, gem5::mbits(), gem5::SparcISA::MISCREG_ASI, gem5::SparcISA::MISCREG_CWP, gem5::SparcISA::MISCREG_FPRS, gem5::SparcISA::MISCREG_GL, gem5::SparcISA::MISCREG_HINTP, gem5::SparcISA::MISCREG_HPSTATE, gem5::SparcISA::MISCREG_HSTICK_CMPR, gem5::SparcISA::MISCREG_HTBA, gem5::SparcISA::MISCREG_HTSTATE, gem5::SparcISA::MISCREG_HVER, gem5::SparcISA::MISCREG_PCR, gem5::SparcISA::MISCREG_PIL, gem5::SparcISA::MISCREG_PSTATE, gem5::SparcISA::MISCREG_QUEUE_CPU_MONDO_HEAD, gem5::SparcISA::MISCREG_QUEUE_CPU_MONDO_TAIL, gem5::SparcISA::MISCREG_QUEUE_DEV_MONDO_HEAD, gem5::SparcISA::MISCREG_QUEUE_DEV_MONDO_TAIL, gem5::SparcISA::MISCREG_QUEUE_NRES_ERROR_HEAD, gem5::SparcISA::MISCREG_QUEUE_NRES_ERROR_TAIL, gem5::SparcISA::MISCREG_QUEUE_RES_ERROR_HEAD, gem5::SparcISA::MISCREG_QUEUE_RES_ERROR_TAIL, gem5::SparcISA::MISCREG_SOFTINT, gem5::SparcISA::MISCREG_SOFTINT_CLR, gem5::SparcISA::MISCREG_SOFTINT_SET, gem5::SparcISA::MISCREG_STICK, gem5::SparcISA::MISCREG_STICK_CMPR, gem5::SparcISA::MISCREG_STRAND_STS_REG, gem5::SparcISA::MISCREG_TICK, gem5::SparcISA::MISCREG_TICK_CMPR, gem5::SparcISA::MISCREG_TL, NextGlobalsOffset, NextWindowOffset, gem5::SparcISA::NWindows, gem5::BaseCPU::postInterrupt(), PreviousGlobalsOffset, PreviousWindowOffset, pstate, gem5::SparcISA::PstateMask, setFSReg(), setMiscRegNoEffect(), stick, gem5::BaseISA::tc, tick, tl, and gem5::X86ISA::val.

◆ setMiscRegNoEffect()

void gem5::SparcISA::ISA::setMiscRegNoEffect ( RegIndex idx,
RegVal val )
overridevirtual

Privilged Registers

Hyper privileged registers

Floating Point Status Register

Implements gem5::BaseISA.

Definition at line 588 of file isa.cc.

References asi, cpu_mondo_head, cpu_mondo_tail, cwp, dev_mondo_head, dev_mondo_tail, DPRINTF, fprs, fsr, gl, gsr, hintp, hpstate, hstick_cmpr, htba, htstate, lsuCtrlReg, gem5::SparcISA::MISCREG_ASI, gem5::SparcISA::MISCREG_CWP, gem5::SparcISA::MISCREG_FPRS, gem5::SparcISA::MISCREG_FSR, gem5::SparcISA::MISCREG_GL, gem5::SparcISA::MISCREG_GSR, gem5::SparcISA::MISCREG_HINTP, gem5::SparcISA::MISCREG_HPSTATE, gem5::SparcISA::MISCREG_HSTICK_CMPR, gem5::SparcISA::MISCREG_HTBA, gem5::SparcISA::MISCREG_HTSTATE, gem5::SparcISA::MISCREG_MMU_LSU_CTRL, gem5::SparcISA::MISCREG_MMU_P_CONTEXT, gem5::SparcISA::MISCREG_MMU_PART_ID, gem5::SparcISA::MISCREG_MMU_S_CONTEXT, gem5::SparcISA::MISCREG_PCR, gem5::SparcISA::MISCREG_PIC, gem5::SparcISA::MISCREG_PIL, gem5::SparcISA::MISCREG_PRIVTICK, gem5::SparcISA::MISCREG_PSTATE, gem5::SparcISA::MISCREG_QUEUE_CPU_MONDO_HEAD, gem5::SparcISA::MISCREG_QUEUE_CPU_MONDO_TAIL, gem5::SparcISA::MISCREG_QUEUE_DEV_MONDO_HEAD, gem5::SparcISA::MISCREG_QUEUE_DEV_MONDO_TAIL, gem5::SparcISA::MISCREG_QUEUE_NRES_ERROR_HEAD, gem5::SparcISA::MISCREG_QUEUE_NRES_ERROR_TAIL, gem5::SparcISA::MISCREG_QUEUE_RES_ERROR_HEAD, gem5::SparcISA::MISCREG_QUEUE_RES_ERROR_TAIL, gem5::SparcISA::MISCREG_SCRATCHPAD_R0, gem5::SparcISA::MISCREG_SCRATCHPAD_R1, gem5::SparcISA::MISCREG_SCRATCHPAD_R2, gem5::SparcISA::MISCREG_SCRATCHPAD_R3, gem5::SparcISA::MISCREG_SCRATCHPAD_R4, gem5::SparcISA::MISCREG_SCRATCHPAD_R5, gem5::SparcISA::MISCREG_SCRATCHPAD_R6, gem5::SparcISA::MISCREG_SCRATCHPAD_R7, gem5::SparcISA::MISCREG_SOFTINT, gem5::SparcISA::MISCREG_STICK, gem5::SparcISA::MISCREG_STICK_CMPR, gem5::SparcISA::MISCREG_STRAND_STS_REG, gem5::SparcISA::MISCREG_TBA, gem5::SparcISA::MISCREG_TICK, gem5::SparcISA::MISCREG_TICK_CMPR, gem5::SparcISA::MISCREG_TL, gem5::SparcISA::MISCREG_TNPC, gem5::SparcISA::MISCREG_TPC, gem5::SparcISA::MISCREG_TSTATE, gem5::SparcISA::MISCREG_TT, nres_error_head, nres_error_tail, panic, partId, pil, priContext, pstate, gem5::SparcISA::PstateMask, res_error_head, res_error_tail, scratchPad, secContext, softint, stick, stick_cmpr, strandStatusReg, tba, tick, tick_cmpr, tl, tnpc, tpc, tstate, tt, and gem5::X86ISA::val.

Referenced by setMiscReg().

◆ unserialize()

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

Member Data Documentation

◆ asi

uint8_t gem5::SparcISA::ISA::asi
private

Definition at line 62 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ cpu_mondo_head

uint64_t gem5::SparcISA::ISA::cpu_mondo_head
private

Definition at line 113 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ cpu_mondo_tail

uint64_t gem5::SparcISA::ISA::cpu_mondo_tail
private

Definition at line 114 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ cwp

uint8_t gem5::SparcISA::ISA::cwp
private

◆ dev_mondo_head

uint64_t gem5::SparcISA::ISA::dev_mondo_head
private

Definition at line 115 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ dev_mondo_tail

uint64_t gem5::SparcISA::ISA::dev_mondo_tail
private

Definition at line 116 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ fprs

uint8_t gem5::SparcISA::ISA::fprs
private

◆ fsr

uint64_t gem5::SparcISA::ISA::fsr
private

Floating point misc registers.

Definition at line 103 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ gl

uint8_t gem5::SparcISA::ISA::gl
private

◆ gsr

uint64_t gem5::SparcISA::ISA::gsr
private

Definition at line 65 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ hintp

uint64_t gem5::SparcISA::ISA::hintp
private

Definition at line 96 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ hpstate

HPSTATE gem5::SparcISA::ISA::hpstate
private

Hyperprivileged Registers.

Definition at line 94 of file isa.hh.

Referenced by clear(), inUserMode(), isHyperPriv(), isPriv(), readMiscRegNoEffect(), serialize(), setMiscReg(), setMiscRegNoEffect(), and unserialize().

◆ hstick_cmpr

uint64_t gem5::SparcISA::ISA::hstick_cmpr
private

Definition at line 98 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ hSTickCompare

HSTickCompareEvent* gem5::SparcISA::ISA::hSTickCompare = nullptr
private

Definition at line 143 of file isa.hh.

Referenced by clear(), serialize(), and unserialize().

◆ htba

uint64_t gem5::SparcISA::ISA::htba
private

Definition at line 97 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ htstate

uint64_t gem5::SparcISA::ISA::htstate[MaxTL]
private

Definition at line 95 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ intRegMap

RegIndex gem5::SparcISA::ISA::intRegMap[TotalInstIntRegs]
private

Definition at line 165 of file isa.hh.

Referenced by installGlobals(), installWindow(), mapIntRegId(), and reloadRegMap().

◆ lsuCtrlReg

uint64_t gem5::SparcISA::ISA::lsuCtrlReg
private

Definition at line 109 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ nres_error_head

uint64_t gem5::SparcISA::ISA::nres_error_head
private

Definition at line 119 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ nres_error_tail

uint64_t gem5::SparcISA::ISA::nres_error_tail
private

Definition at line 120 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ NumGlobalRegs

const int gem5::SparcISA::ISA::NumGlobalRegs = 8
staticprivate

Definition at line 145 of file isa.hh.

Referenced by installGlobals().

◆ NumWindowedRegs

const int gem5::SparcISA::ISA::NumWindowedRegs = 24
staticprivate

Definition at line 146 of file isa.hh.

Referenced by installWindow().

◆ partId

uint16_t gem5::SparcISA::ISA::partId
private

Definition at line 108 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ pil

uint8_t gem5::SparcISA::ISA::pil
private

Definition at line 84 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ priContext

uint16_t gem5::SparcISA::ISA::priContext
private

MMU Internal Registers.

Definition at line 106 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ pstate

PSTATE gem5::SparcISA::ISA::pstate
private

◆ RegsPerWindow

const int gem5::SparcISA::ISA::RegsPerWindow = NumWindowedRegs - WindowOverlap
staticprivate

Definition at line 150 of file isa.hh.

Referenced by installWindow().

◆ res_error_head

uint64_t gem5::SparcISA::ISA::res_error_head
private

Definition at line 117 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ res_error_tail

uint64_t gem5::SparcISA::ISA::res_error_tail
private

Definition at line 118 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ scratchPad

uint64_t gem5::SparcISA::ISA::scratchPad[8]
private

Definition at line 111 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ secContext

uint16_t gem5::SparcISA::ISA::secContext
private

Definition at line 107 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ softint

uint64_t gem5::SparcISA::ISA::softint
private

Definition at line 66 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ stick

uint64_t gem5::SparcISA::ISA::stick
private

◆ stick_cmpr

uint64_t gem5::SparcISA::ISA::stick_cmpr
private

Definition at line 69 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ sTickCompare

STickCompareEvent* gem5::SparcISA::ISA::sTickCompare = nullptr
private

Definition at line 140 of file isa.hh.

Referenced by clear(), serialize(), and unserialize().

◆ strandStatusReg

uint64_t gem5::SparcISA::ISA::strandStatusReg
private

Definition at line 100 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ tba

uint64_t gem5::SparcISA::ISA::tba
private

Definition at line 80 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ tick

uint64_t gem5::SparcISA::ISA::tick
private

◆ tick_cmpr

uint64_t gem5::SparcISA::ISA::tick_cmpr
private

Definition at line 67 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ tickCompare

TickCompareEvent* gem5::SparcISA::ISA::tickCompare = nullptr
private

Definition at line 137 of file isa.hh.

Referenced by clear(), serialize(), and unserialize().

◆ tl

uint8_t gem5::SparcISA::ISA::tl
private

◆ tnpc

uint64_t gem5::SparcISA::ISA::tnpc[MaxTL]
private

Definition at line 75 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ TotalGlobals

const int gem5::SparcISA::ISA::TotalGlobals = (MaxGL + 1) * NumGlobalRegs
staticprivate

Definition at line 149 of file isa.hh.

Referenced by installWindow(), and reloadRegMap().

◆ TotalWindowed

const int gem5::SparcISA::ISA::TotalWindowed = NWindows * RegsPerWindow
staticprivate

Definition at line 151 of file isa.hh.

Referenced by installWindow().

◆ tpc

uint64_t gem5::SparcISA::ISA::tpc[MaxTL]
private

Definition at line 73 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ tstate

uint64_t gem5::SparcISA::ISA::tstate[MaxTL]
private

Definition at line 77 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ tt

uint16_t gem5::SparcISA::ISA::tt[MaxTL]
private

Definition at line 78 of file isa.hh.

Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().

◆ WindowOverlap

const int gem5::SparcISA::ISA::WindowOverlap = 8
staticprivate

Definition at line 147 of file isa.hh.


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

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