gem5
|
#include <isa.hh>
Public Types | |
typedef SparcISAParams | Params |
Public Types inherited from SimObject | |
typedef SimObjectParams | Params |
Public Member Functions | |
void | clear () |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. More... | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. More... | |
void | startup (ThreadContext *tc) |
MiscReg | readMiscRegNoEffect (int miscReg) const |
MiscReg | readMiscReg (int miscReg, ThreadContext *tc) |
void | setMiscRegNoEffect (int miscReg, const MiscReg val) |
void | setMiscReg (int miscReg, const MiscReg val, ThreadContext *tc) |
int | flattenIntIndex (int reg) const |
int | flattenFloatIndex (int reg) const |
int | flattenCCIndex (int reg) const |
int | flattenMiscIndex (int reg) const |
const Params * | params () const |
ISA (Params *p) | |
Public Member Functions inherited from SimObject | |
const Params * | params () const |
SimObject (const Params *_params) | |
virtual | ~SimObject () |
virtual const std::string | name () const |
virtual void | init () |
init() is called after all C++ SimObjects have been created and all ports are connected. More... | |
virtual void | loadState (CheckpointIn &cp) |
loadState() is called on each SimObject when restoring from a checkpoint. More... | |
virtual void | initState () |
initState() is called on each SimObject when not restoring from a checkpoint. More... | |
virtual void | regStats () |
Register statistics for this object. More... | |
virtual void | resetStats () |
Reset statistics associated with this object. More... | |
virtual void | regProbePoints () |
Register probe points for this object. More... | |
virtual void | regProbeListeners () |
Register probe listeners for this object. More... | |
ProbeManager * | getProbeManager () |
Get the probe manager for this object. More... | |
virtual void | startup () |
startup() is the final initialization call before simulation. More... | |
DrainState | drain () override |
Provide a default implementation of the drain interface for objects that don't need draining. More... | |
virtual void | memWriteback () |
Write back dirty buffers to memory using functional writes. More... | |
virtual void | memInvalidate () |
Invalidate the contents of memory buffers. More... | |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. More... | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. More... | |
Public Member Functions inherited from EventManager | |
EventManager (EventManager &em) | |
EventManager (EventManager *em) | |
EventManager (EventQueue *eq) | |
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) |
void | setCurTick (Tick newVal) |
Public Member Functions inherited from Serializable | |
Serializable () | |
virtual | ~Serializable () |
void | serializeSection (CheckpointOut &cp, const char *name) const |
Serialize an object into a new section. More... | |
void | serializeSection (CheckpointOut &cp, const std::string &name) const |
void | unserializeSection (CheckpointIn &cp, const char *name) |
Unserialize an a child object. More... | |
void | unserializeSection (CheckpointIn &cp, const std::string &name) |
Public Member Functions inherited from Drainable | |
DrainState | drainState () const |
Return the current drain state of an object. More... | |
virtual void | notifyFork () |
Notify a child process of a fork. More... | |
Protected Member Functions | |
bool | isHyperPriv () |
bool | isPriv () |
bool | isNonPriv () |
Protected Member Functions inherited from Drainable | |
Drainable () | |
virtual | ~Drainable () |
virtual void | drainResume () |
Resume execution after a successful drain. More... | |
void | signalDrainDone () const |
Signal that an object is drained. More... | |
Private Types | |
enum | InstIntRegOffsets { CurrentGlobalsOffset = 0, CurrentWindowOffset = CurrentGlobalsOffset + NumGlobalRegs, MicroIntOffset = CurrentWindowOffset + NumWindowedRegs, NextGlobalsOffset = MicroIntOffset + NumMicroIntRegs, NextWindowOffset = NextGlobalsOffset + NumGlobalRegs, PreviousGlobalsOffset = NextWindowOffset + NumWindowedRegs, PreviousWindowOffset = PreviousGlobalsOffset + NumGlobalRegs, TotalInstIntRegs = PreviousWindowOffset + NumWindowedRegs } |
typedef CpuEventWrapper< ISA,&ISA::processTickCompare > | TickCompareEvent |
typedef CpuEventWrapper< ISA,&ISA::processSTickCompare > | STickCompareEvent |
typedef CpuEventWrapper< ISA,&ISA::processHSTickCompare > | HSTickCompareEvent |
Private Member Functions | |
void | setFSReg (int miscReg, const MiscReg &val, ThreadContext *tc) |
MiscReg | readFSReg (int miscReg, ThreadContext *tc) |
void | checkSoftInt (ThreadContext *tc) |
void | processTickCompare (ThreadContext *tc) |
Process a tick compare event and generate an interrupt on the cpu if appropriate. More... | |
void | processSTickCompare (ThreadContext *tc) |
void | processHSTickCompare (ThreadContext *tc) |
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. More... | |
uint64_t | htstate [MaxTL] |
uint64_t | hintp |
uint64_t | htba |
uint64_t | hstick_cmpr |
uint64_t | strandStatusReg |
uint64_t | fsr |
Floating point misc registers. More... | |
uint16_t | priContext |
MMU Internal Registers. More... | |
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 |
TickCompareEvent * | tickCompare |
STickCompareEvent * | sTickCompare |
HSTickCompareEvent * | hSTickCompare |
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 SimObject | |
static void | serializeAll (CheckpointOut &cp) |
Serialize all SimObjects in the system. More... | |
static SimObject * | find (const char *name) |
Find the SimObject with the given name and return a pointer to it. More... | |
Static Public Member Functions inherited from Serializable | |
static const std::string & | currentSection () |
Get the fully-qualified name of the active section. More... | |
static void | serializeAll (const std::string &cpt_dir) |
static void | unserializeGlobals (CheckpointIn &cp) |
Static Public Attributes inherited from Serializable | |
static int | ckptCount = 0 |
static int | ckptMaxCount = 0 |
static int | ckptPrevCount = -1 |
Protected Attributes inherited from SimObject | |
const SimObjectParams * | _params |
Cached copy of the object parameters. More... | |
Protected Attributes inherited from EventManager | |
EventQueue * | eventq |
A pointer to this object's event queue. More... | |
|
private |
typedef SparcISAParams SparcISA::ISA::Params |
|
private |
|
private |
|
private |
SparcISA::ISA::ISA | ( | Params * | p | ) |
Definition at line 63 of file isa.cc.
References clear(), hSTickCompare, sTickCompare, and tickCompare.
|
private |
Definition at line 46 of file ua2005.cc.
References ThreadContext::getCpuPtr(), and SparcISA::IT_SOFT_INT.
void SparcISA::ISA::clear | ( | ) |
Definition at line 114 of file isa.cc.
References asi, cpu_mondo_head, cpu_mondo_tail, cwp, dev_mondo_head, dev_mondo_tail, fprs, fsr, gl, gsr, hintp, hpstate, hstick_cmpr, hSTickCompare, htba, htstate, lsuCtrlReg, nres_error_head, nres_error_tail, panic, partId, pil, priContext, pstate, reloadRegMap(), res_error_head, res_error_tail, scratchPad, secContext, softint, stick, stick_cmpr, sTickCompare, strandStatusReg, tba, tick, tick_cmpr, tickCompare, tl, tnpc, tpc, tstate, tt, and ULL.
Referenced by ISA().
|
inline |
Definition at line 209 of file isa.hh.
References X86ISA::reg.
|
inline |
Definition at line 202 of file isa.hh.
References X86ISA::reg.
|
inline |
Definition at line 193 of file isa.hh.
References intRegMap, SparcISA::NumIntRegs, X86ISA::reg, and TotalInstIntRegs.
|
inline |
Definition at line 215 of file isa.hh.
References X86ISA::reg.
|
private |
Definition at line 104 of file isa.cc.
References ArmISA::i, intRegMap, NumGlobalRegs, SparcISA::NumIntRegs, and ArmISA::offset.
Referenced by reloadRegMap(), and setMiscReg().
|
private |
Definition at line 94 of file isa.cc.
References ArmISA::i, intRegMap, SparcISA::NumIntRegs, NumWindowedRegs, ArmISA::offset, RegsPerWindow, TotalGlobals, and TotalWindowed.
Referenced by reloadRegMap(), and setMiscReg().
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
const SparcISAParams * SparcISA::ISA::params | ( | ) | const |
Definition at line 74 of file isa.cc.
References SimObject::_params.
|
private |
Definition at line 349 of file ua2005.cc.
References DPRINTF, ThreadContext::getCpuPtr(), ThreadContext::Halted, ArmISA::mask, SparcISA::MISCREG_HINTP, SparcISA::MISCREG_HSTICK_CMPR, ThreadContext::readMiscRegNoEffect(), ThreadContext::status(), ThreadContext::Suspended, and ULL.
|
private |
Definition at line 325 of file ua2005.cc.
References DPRINTF, ThreadContext::getCpuPtr(), ArmISA::mask, SparcISA::MISCREG_SOFTINT, SparcISA::MISCREG_STICK_CMPR, ThreadContext::readMiscRegNoEffect(), ThreadContext::status(), ThreadContext::Suspended, and ULL.
|
private |
|
private |
Definition at line 245 of file ua2005.cc.
References ThreadContext::Active, ThreadContext::contextId(), ThreadContext::getSystemPtr(), ThreadContext::Halted, SparcISA::MaxTL, SparcISA::MISCREG_HINTP, SparcISA::MISCREG_HPSTATE, SparcISA::MISCREG_HSTICK_CMPR, SparcISA::MISCREG_HTBA, SparcISA::MISCREG_HTSTATE, SparcISA::MISCREG_HVER, SparcISA::MISCREG_PIL, SparcISA::MISCREG_QUEUE_CPU_MONDO_HEAD, SparcISA::MISCREG_QUEUE_CPU_MONDO_TAIL, SparcISA::MISCREG_QUEUE_DEV_MONDO_HEAD, SparcISA::MISCREG_QUEUE_DEV_MONDO_TAIL, SparcISA::MISCREG_QUEUE_NRES_ERROR_HEAD, SparcISA::MISCREG_QUEUE_NRES_ERROR_TAIL, SparcISA::MISCREG_QUEUE_RES_ERROR_HEAD, SparcISA::MISCREG_QUEUE_RES_ERROR_TAIL, SparcISA::MISCREG_SOFTINT, SparcISA::MISCREG_STICK_CMPR, SparcISA::MISCREG_STRAND_STS_REG, SparcISA::MISCREG_TICK_CMPR, System::numContexts(), SparcISA::NWindows, panic, ThreadContext::Suspended, System::threadContexts, ULL, and X86ISA::x.
Referenced by readMiscReg().
MiscReg SparcISA::ISA::readMiscReg | ( | int | miscReg, |
ThreadContext * | tc | ||
) |
Definition at line 338 of file isa.cc.
References DPRINTF, fprs, ThreadContext::getCpuPtr(), mbits(), SparcISA::MISCREG_FPRS, SparcISA::MISCREG_HINTP, SparcISA::MISCREG_HPSTATE, SparcISA::MISCREG_HSTICK_CMPR, SparcISA::MISCREG_HTBA, SparcISA::MISCREG_HTSTATE, SparcISA::MISCREG_HVER, SparcISA::MISCREG_PCR, SparcISA::MISCREG_PIC, SparcISA::MISCREG_PRIVTICK, SparcISA::MISCREG_QUEUE_CPU_MONDO_HEAD, SparcISA::MISCREG_QUEUE_CPU_MONDO_TAIL, SparcISA::MISCREG_QUEUE_DEV_MONDO_HEAD, SparcISA::MISCREG_QUEUE_DEV_MONDO_TAIL, SparcISA::MISCREG_QUEUE_NRES_ERROR_HEAD, SparcISA::MISCREG_QUEUE_NRES_ERROR_TAIL, SparcISA::MISCREG_QUEUE_RES_ERROR_HEAD, SparcISA::MISCREG_QUEUE_RES_ERROR_TAIL, SparcISA::MISCREG_SOFTINT, SparcISA::MISCREG_SOFTINT_CLR, SparcISA::MISCREG_SOFTINT_SET, SparcISA::MISCREG_STICK, SparcISA::MISCREG_STICK_CMPR, SparcISA::MISCREG_STRAND_STS_REG, SparcISA::MISCREG_TICK, SparcISA::MISCREG_TICK_CMPR, panic, readFSReg(), readMiscRegNoEffect(), stick, and tick.
MiscReg SparcISA::ISA::readMiscRegNoEffect | ( | int | miscReg | ) | const |
Privilged Registers
Hyper privileged registers
Floating Point Status Register
Definition at line 177 of file isa.cc.
References asi, 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, SparcISA::MISCREG_ASI, SparcISA::MISCREG_CWP, SparcISA::MISCREG_FPRS, SparcISA::MISCREG_FSR, SparcISA::MISCREG_GL, SparcISA::MISCREG_GSR, SparcISA::MISCREG_HINTP, SparcISA::MISCREG_HPSTATE, SparcISA::MISCREG_HSTICK_CMPR, SparcISA::MISCREG_HTBA, SparcISA::MISCREG_HTSTATE, SparcISA::MISCREG_MMU_LSU_CTRL, SparcISA::MISCREG_MMU_P_CONTEXT, SparcISA::MISCREG_MMU_PART_ID, SparcISA::MISCREG_MMU_S_CONTEXT, SparcISA::MISCREG_PCR, SparcISA::MISCREG_PIC, SparcISA::MISCREG_PIL, SparcISA::MISCREG_PRIVTICK, SparcISA::MISCREG_PSTATE, SparcISA::MISCREG_QUEUE_CPU_MONDO_HEAD, SparcISA::MISCREG_QUEUE_CPU_MONDO_TAIL, SparcISA::MISCREG_QUEUE_DEV_MONDO_HEAD, SparcISA::MISCREG_QUEUE_DEV_MONDO_TAIL, SparcISA::MISCREG_QUEUE_NRES_ERROR_HEAD, SparcISA::MISCREG_QUEUE_NRES_ERROR_TAIL, SparcISA::MISCREG_QUEUE_RES_ERROR_HEAD, SparcISA::MISCREG_QUEUE_RES_ERROR_TAIL, SparcISA::MISCREG_SCRATCHPAD_R0, SparcISA::MISCREG_SCRATCHPAD_R1, SparcISA::MISCREG_SCRATCHPAD_R2, SparcISA::MISCREG_SCRATCHPAD_R3, SparcISA::MISCREG_SCRATCHPAD_R4, SparcISA::MISCREG_SCRATCHPAD_R5, SparcISA::MISCREG_SCRATCHPAD_R6, SparcISA::MISCREG_SCRATCHPAD_R7, SparcISA::MISCREG_SOFTINT, SparcISA::MISCREG_STICK, SparcISA::MISCREG_STICK_CMPR, SparcISA::MISCREG_STRAND_STS_REG, SparcISA::MISCREG_TBA, SparcISA::MISCREG_TICK, SparcISA::MISCREG_TICK_CMPR, SparcISA::MISCREG_TL, SparcISA::MISCREG_TLB_DATA, SparcISA::MISCREG_TNPC, SparcISA::MISCREG_TPC, SparcISA::MISCREG_TSTATE, 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 readMiscReg().
|
private |
Definition at line 80 of file isa.cc.
References CurrentGlobalsOffset, CurrentWindowOffset, cwp, gl, ArmISA::i, installGlobals(), installWindow(), intRegMap, MicroIntOffset, NextGlobalsOffset, NextWindowOffset, SparcISA::NumMicroIntRegs, SparcISA::NWindows, PreviousGlobalsOffset, PreviousWindowOffset, and TotalGlobals.
Referenced by clear(), and unserialize().
|
overridevirtual |
Serialize an object.
Output an object's state into the current checkpoint section.
cp | Checkpoint state |
Implements Serializable.
Definition at line 642 of file isa.cc.
References asi, cpu_mondo_head, cpu_mondo_tail, cwp, dev_mondo_head, dev_mondo_tail, fprs, fsr, ThreadContext::getCpuPtr(), CpuEvent::getTC(), gl, gsr, hintp, hpstate, hstick_cmpr, hSTickCompare, htba, htstate, lsuCtrlReg, SparcISA::MaxTL, nres_error_head, nres_error_tail, partId, pil, priContext, pstate, res_error_head, res_error_tail, Event::scheduled(), scratchPad, secContext, SERIALIZE_ARRAY, SERIALIZE_OBJPTR, SERIALIZE_SCALAR, softint, stick, stick_cmpr, sTickCompare, strandStatusReg, tba, tick, tick_cmpr, tickCompare, tl, tnpc, tpc, tstate, tt, and Event::when().
|
private |
Definition at line 91 of file ua2005.cc.
References bits(), DPRINTF, FullSystem, ThreadContext::getCpuPtr(), ThreadContext::getKernelStats(), getMiscRegName(), SparcISA::IT_CPU_MONDO, SparcISA::IT_DEV_MONDO, SparcISA::IT_HINTP, SparcISA::IT_RES_ERROR, SparcISA::IT_TRAP_LEVEL_ZERO, ArmISA::mask, SparcISA::MISCREG_HINTP, SparcISA::MISCREG_HPSTATE, SparcISA::MISCREG_HSTICK_CMPR, SparcISA::MISCREG_HTBA, SparcISA::MISCREG_HTSTATE, SparcISA::MISCREG_HVER, SparcISA::MISCREG_PIL, SparcISA::MISCREG_PSTATE, SparcISA::MISCREG_QUEUE_CPU_MONDO_HEAD, SparcISA::MISCREG_QUEUE_CPU_MONDO_TAIL, SparcISA::MISCREG_QUEUE_DEV_MONDO_HEAD, SparcISA::MISCREG_QUEUE_DEV_MONDO_TAIL, SparcISA::MISCREG_QUEUE_NRES_ERROR_HEAD, SparcISA::MISCREG_QUEUE_NRES_ERROR_TAIL, SparcISA::MISCREG_QUEUE_RES_ERROR_HEAD, SparcISA::MISCREG_QUEUE_RES_ERROR_TAIL, SparcISA::MISCREG_SOFTINT, SparcISA::MISCREG_SOFTINT_CLR, SparcISA::MISCREG_SOFTINT_SET, SparcISA::MISCREG_STICK_CMPR, SparcISA::MISCREG_STRAND_STS_REG, SparcISA::MISCREG_TICK_CMPR, panic, ThreadContext::suspend(), MipsISA::tl, ULL, and X86ISA::val.
Referenced by setMiscReg().
void SparcISA::ISA::setMiscReg | ( | int | miscReg, |
const MiscReg | val, | ||
ThreadContext * | tc | ||
) |
Definition at line 566 of file isa.cc.
References CurrentGlobalsOffset, CurrentWindowOffset, DPRINTF, ThreadContext::getCpuPtr(), ThreadContext::getDecoderPtr(), hpstate, installGlobals(), installWindow(), SparcISA::IT_TRAP_LEVEL_ZERO, mbits(), SparcISA::MISCREG_ASI, SparcISA::MISCREG_CWP, SparcISA::MISCREG_FPRS, SparcISA::MISCREG_GL, SparcISA::MISCREG_HINTP, SparcISA::MISCREG_HPSTATE, SparcISA::MISCREG_HSTICK_CMPR, SparcISA::MISCREG_HTBA, SparcISA::MISCREG_HTSTATE, SparcISA::MISCREG_HVER, SparcISA::MISCREG_PCR, SparcISA::MISCREG_PIL, SparcISA::MISCREG_PSTATE, SparcISA::MISCREG_QUEUE_CPU_MONDO_HEAD, SparcISA::MISCREG_QUEUE_CPU_MONDO_TAIL, SparcISA::MISCREG_QUEUE_DEV_MONDO_HEAD, SparcISA::MISCREG_QUEUE_DEV_MONDO_TAIL, SparcISA::MISCREG_QUEUE_NRES_ERROR_HEAD, SparcISA::MISCREG_QUEUE_NRES_ERROR_TAIL, SparcISA::MISCREG_QUEUE_RES_ERROR_HEAD, SparcISA::MISCREG_QUEUE_RES_ERROR_TAIL, SparcISA::MISCREG_SOFTINT, SparcISA::MISCREG_SOFTINT_CLR, SparcISA::MISCREG_SOFTINT_SET, SparcISA::MISCREG_STICK, SparcISA::MISCREG_STICK_CMPR, SparcISA::MISCREG_STRAND_STS_REG, SparcISA::MISCREG_TICK, SparcISA::MISCREG_TICK_CMPR, SparcISA::MISCREG_TL, NextGlobalsOffset, NextWindowOffset, SparcISA::NWindows, PreviousGlobalsOffset, PreviousWindowOffset, pstate, SparcISA::PstateMask, setFSReg(), setMiscRegNoEffect(), stick, tick, tl, and X86ISA::val.
void SparcISA::ISA::setMiscRegNoEffect | ( | int | miscReg, |
const MiscReg | val | ||
) |
Privilged Registers
Hyper privileged registers
Floating Point Status Register
Definition at line 386 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, SparcISA::MISCREG_ASI, SparcISA::MISCREG_CWP, SparcISA::MISCREG_FPRS, SparcISA::MISCREG_FSR, SparcISA::MISCREG_GL, SparcISA::MISCREG_GSR, SparcISA::MISCREG_HINTP, SparcISA::MISCREG_HPSTATE, SparcISA::MISCREG_HSTICK_CMPR, SparcISA::MISCREG_HTBA, SparcISA::MISCREG_HTSTATE, SparcISA::MISCREG_MMU_LSU_CTRL, SparcISA::MISCREG_MMU_P_CONTEXT, SparcISA::MISCREG_MMU_PART_ID, SparcISA::MISCREG_MMU_S_CONTEXT, SparcISA::MISCREG_PCR, SparcISA::MISCREG_PIC, SparcISA::MISCREG_PIL, SparcISA::MISCREG_PRIVTICK, SparcISA::MISCREG_PSTATE, SparcISA::MISCREG_QUEUE_CPU_MONDO_HEAD, SparcISA::MISCREG_QUEUE_CPU_MONDO_TAIL, SparcISA::MISCREG_QUEUE_DEV_MONDO_HEAD, SparcISA::MISCREG_QUEUE_DEV_MONDO_TAIL, SparcISA::MISCREG_QUEUE_NRES_ERROR_HEAD, SparcISA::MISCREG_QUEUE_NRES_ERROR_TAIL, SparcISA::MISCREG_QUEUE_RES_ERROR_HEAD, SparcISA::MISCREG_QUEUE_RES_ERROR_TAIL, SparcISA::MISCREG_SCRATCHPAD_R0, SparcISA::MISCREG_SCRATCHPAD_R1, SparcISA::MISCREG_SCRATCHPAD_R2, SparcISA::MISCREG_SCRATCHPAD_R3, SparcISA::MISCREG_SCRATCHPAD_R4, SparcISA::MISCREG_SCRATCHPAD_R5, SparcISA::MISCREG_SCRATCHPAD_R6, SparcISA::MISCREG_SCRATCHPAD_R7, SparcISA::MISCREG_SOFTINT, SparcISA::MISCREG_STICK, SparcISA::MISCREG_STICK_CMPR, SparcISA::MISCREG_STRAND_STS_REG, SparcISA::MISCREG_TBA, SparcISA::MISCREG_TICK, SparcISA::MISCREG_TICK_CMPR, SparcISA::MISCREG_TL, SparcISA::MISCREG_TNPC, SparcISA::MISCREG_TPC, SparcISA::MISCREG_TSTATE, SparcISA::MISCREG_TT, nres_error_head, nres_error_tail, panic, partId, pil, priContext, pstate, SparcISA::PstateMask, res_error_head, res_error_tail, scratchPad, secContext, softint, stick, stick_cmpr, strandStatusReg, tba, tick, tick_cmpr, tl, tnpc, tpc, tstate, tt, ULL, and X86ISA::val.
Referenced by setMiscReg().
|
inline |
|
overridevirtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
cp | Checkpoint state |
Implements Serializable.
Definition at line 718 of file isa.cc.
References asi, cpu_mondo_head, cpu_mondo_tail, cwp, dev_mondo_head, dev_mondo_tail, fprs, fsr, gl, gsr, hintp, hpstate, hstick_cmpr, hSTickCompare, htba, htstate, lsuCtrlReg, SparcISA::MaxTL, nres_error_head, nres_error_tail, partId, pil, priContext, pstate, reloadRegMap(), res_error_head, res_error_tail, EventManager::schedule(), scratchPad, secContext, softint, stick, stick_cmpr, sTickCompare, strandStatusReg, tba, tick, tick_cmpr, tickCompare, tl, tnpc, tpc, tstate, tt, UNSERIALIZE_ARRAY, UNSERIALIZE_OBJPTR, and UNSERIALIZE_SCALAR.
|
private |
Definition at line 56 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 107 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 108 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 79 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), reloadRegMap(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 109 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 110 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 58 of file isa.hh.
Referenced by clear(), readMiscReg(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Floating point misc registers.
Definition at line 97 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 85 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), reloadRegMap(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 59 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 90 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Hyperprivileged Registers.
Definition at line 88 of file isa.hh.
Referenced by clear(), isHyperPriv(), isPriv(), readMiscRegNoEffect(), serialize(), setMiscReg(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 92 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 140 of file isa.hh.
Referenced by clear(), ISA(), serialize(), and unserialize().
|
private |
Definition at line 91 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 89 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 161 of file isa.hh.
Referenced by flattenIntIndex(), installGlobals(), installWindow(), and reloadRegMap().
|
private |
Definition at line 103 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 113 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 114 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
staticprivate |
Definition at line 142 of file isa.hh.
Referenced by installGlobals().
|
staticprivate |
Definition at line 143 of file isa.hh.
Referenced by installWindow().
|
private |
Definition at line 102 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 78 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
MMU Internal Registers.
Definition at line 100 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 76 of file isa.hh.
Referenced by clear(), isPriv(), readMiscRegNoEffect(), serialize(), setMiscReg(), setMiscRegNoEffect(), and unserialize().
|
staticprivate |
Definition at line 147 of file isa.hh.
Referenced by installWindow().
|
private |
Definition at line 111 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 112 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 105 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 101 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 60 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 62 of file isa.hh.
Referenced by clear(), readMiscReg(), readMiscRegNoEffect(), serialize(), setMiscReg(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 63 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 136 of file isa.hh.
Referenced by clear(), ISA(), serialize(), and unserialize().
|
private |
Definition at line 94 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 74 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 57 of file isa.hh.
Referenced by clear(), readMiscReg(), readMiscRegNoEffect(), serialize(), setMiscReg(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 61 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 132 of file isa.hh.
Referenced by clear(), ISA(), serialize(), and unserialize().
|
private |
Definition at line 77 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscReg(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 69 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
staticprivate |
Definition at line 146 of file isa.hh.
Referenced by installWindow(), and reloadRegMap().
|
staticprivate |
Definition at line 148 of file isa.hh.
Referenced by installWindow().
|
private |
Definition at line 67 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 71 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().
|
private |
Definition at line 72 of file isa.hh.
Referenced by clear(), readMiscRegNoEffect(), serialize(), setMiscRegNoEffect(), and unserialize().