gem5
|
#include <isa.hh>
Public Types | |
typedef uint64_t | InternalProcReg |
typedef AlphaISAParams | Params |
Public Types inherited from SimObject | |
typedef SimObjectParams | Params |
Public Member Functions | |
MiscReg | readMiscRegNoEffect (int misc_reg, ThreadID tid=0) const |
MiscReg | readMiscReg (int misc_reg, ThreadContext *tc, ThreadID tid=0) |
void | setMiscRegNoEffect (int misc_reg, const MiscReg &val, ThreadID tid=0) |
void | setMiscReg (int misc_reg, const MiscReg &val, ThreadContext *tc, ThreadID tid=0) |
void | clear () |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. More... | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. More... | |
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) | |
void | startup (ThreadContext *tc) |
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 | |
InternalProcReg | readIpr (int idx, ThreadContext *tc) |
void | setIpr (int idx, InternalProcReg val, ThreadContext *tc) |
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... | |
Protected Attributes | |
System * | system |
uint64_t | fpcr |
uint64_t | uniq |
bool | lock_flag |
Addr | lock_addr |
int | intr_flag |
InternalProcReg | ipr [NumInternalProcRegs] |
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... | |
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 |
typedef uint64_t AlphaISA::ISA::InternalProcReg |
typedef AlphaISAParams AlphaISA::ISA::Params |
AlphaISA::ISA::ISA | ( | Params * | p | ) |
Definition at line 43 of file isa.cc.
References clear(), and AlphaISA::initializeIprTable().
|
inline |
|
inline |
Definition at line 112 of file isa.hh.
References X86ISA::reg.
|
inline |
Definition at line 105 of file isa.hh.
References X86ISA::reg.
|
inline |
Definition at line 99 of file isa.hh.
References X86ISA::reg.
|
inline |
Definition at line 118 of file isa.hh.
References X86ISA::reg.
const AlphaISAParams * AlphaISA::ISA::params | ( | ) | const |
Definition at line 51 of file isa.cc.
References SimObject::_params.
|
protected |
Definition at line 93 of file ev5.cc.
References AlphaISA::TlbEntry::asma, AlphaISA::TlbEntry::asn, AlphaISA::TlbEntry::fonr, AlphaISA::TlbEntry::fonw, ThreadContext::getCpuPtr(), ThreadContext::getDTBPtr(), ipr, AlphaISA::IPR_ALT_MODE, AlphaISA::IPR_ASTER, AlphaISA::IPR_ASTRR, AlphaISA::IPR_CC, AlphaISA::IPR_DC_FLUSH, AlphaISA::IPR_DC_MODE, AlphaISA::IPR_DC_PERR_STAT, AlphaISA::IPR_DTB_CM, AlphaISA::IPR_DTB_IA, AlphaISA::IPR_DTB_IAP, AlphaISA::IPR_DTB_PTE, AlphaISA::IPR_EXC_ADDR, AlphaISA::IPR_EXC_MASK, AlphaISA::IPR_EXC_SUM, AlphaISA::IPR_HWINT_CLR, AlphaISA::IPR_IC_FLUSH, AlphaISA::IPR_IC_PERR_STAT, AlphaISA::IPR_ICM, AlphaISA::IPR_ICSR, AlphaISA::IPR_IFAULT_VA_FORM, AlphaISA::IPR_INTID, AlphaISA::IPR_IPLR, AlphaISA::IPR_ISR, AlphaISA::IPR_ITB_IA, AlphaISA::IPR_ITB_IAP, AlphaISA::IPR_IVPTBR, AlphaISA::IPR_MAF_MODE, AlphaISA::IPR_MCSR, AlphaISA::IPR_MM_STAT, AlphaISA::IPR_PAL_BASE, AlphaISA::IPR_PALtemp0, AlphaISA::IPR_PALtemp1, AlphaISA::IPR_PALtemp10, AlphaISA::IPR_PALtemp11, AlphaISA::IPR_PALtemp12, AlphaISA::IPR_PALtemp13, AlphaISA::IPR_PALtemp14, AlphaISA::IPR_PALtemp15, AlphaISA::IPR_PALtemp16, AlphaISA::IPR_PALtemp17, AlphaISA::IPR_PALtemp18, AlphaISA::IPR_PALtemp19, AlphaISA::IPR_PALtemp2, AlphaISA::IPR_PALtemp20, AlphaISA::IPR_PALtemp21, AlphaISA::IPR_PALtemp22, AlphaISA::IPR_PALtemp23, AlphaISA::IPR_PALtemp3, AlphaISA::IPR_PALtemp4, AlphaISA::IPR_PALtemp5, AlphaISA::IPR_PALtemp6, AlphaISA::IPR_PALtemp7, AlphaISA::IPR_PALtemp8, AlphaISA::IPR_PALtemp9, AlphaISA::IPR_PMCTR, AlphaISA::IPR_SIRR, AlphaISA::IPR_SL_XMIT, AlphaISA::IPR_VA, AlphaISA::IPR_VA_FORM, panic, AlphaISA::TlbEntry::ppn, ULL, AlphaISA::TlbEntry::xre, and AlphaISA::TlbEntry::xwe.
Referenced by readMiscReg().
MiscReg AlphaISA::ISA::readMiscReg | ( | int | misc_reg, |
ThreadContext * | tc, | ||
ThreadID | tid = 0 |
||
) |
Definition at line 98 of file isa.cc.
References fpcr, intr_flag, lock_addr, lock_flag, AlphaISA::MISCREG_FPCR, AlphaISA::MISCREG_INTR, AlphaISA::MISCREG_LOCKADDR, AlphaISA::MISCREG_LOCKFLAG, AlphaISA::MISCREG_UNIQ, readIpr(), and uniq.
Definition at line 78 of file isa.cc.
References fpcr, intr_flag, ipr, lock_addr, lock_flag, AlphaISA::MISCREG_FPCR, AlphaISA::MISCREG_INTR, AlphaISA::MISCREG_LOCKADDR, AlphaISA::MISCREG_LOCKFLAG, AlphaISA::MISCREG_UNIQ, AlphaISA::NumInternalProcRegs, and uniq.
|
overridevirtual |
Serialize an object.
Output an object's state into the current checkpoint section.
cp | Checkpoint state |
Implements Serializable.
Definition at line 57 of file isa.cc.
References fpcr, ipr, lock_addr, lock_flag, AlphaISA::NumInternalProcRegs, SERIALIZE_ARRAY, SERIALIZE_SCALAR, and uniq.
|
protected |
Definition at line 202 of file ev5.cc.
References AlphaISA::TlbEntry::asma, AlphaISA::TlbEntry::asn, AlphaISA::DTB_ASN_ASN(), AlphaISA::DTB_PTE_ASMA(), AlphaISA::DTB_PTE_FONR(), AlphaISA::DTB_PTE_FONW(), AlphaISA::DTB_PTE_GH(), AlphaISA::DTB_PTE_PPN(), AlphaISA::DTB_PTE_XRE(), AlphaISA::DTB_PTE_XWE(), AlphaISA::TlbEntry::fonr, AlphaISA::TlbEntry::fonw, ThreadContext::getDTBPtr(), ThreadContext::getITBPtr(), ThreadContext::getKernelStats(), ipr, AlphaISA::IPR_ALT_MODE, AlphaISA::IPR_ASTER, AlphaISA::IPR_ASTRR, AlphaISA::IPR_CC, AlphaISA::IPR_CC_CTL, AlphaISA::IPR_DC_FLUSH, AlphaISA::IPR_DC_MODE, AlphaISA::IPR_DC_PERR_STAT, AlphaISA::IPR_DC_TEST_CTL, AlphaISA::IPR_DTB_ASN, AlphaISA::IPR_DTB_CM, AlphaISA::IPR_DTB_IA, AlphaISA::IPR_DTB_IAP, AlphaISA::IPR_DTB_IS, AlphaISA::IPR_DTB_PTE, AlphaISA::IPR_DTB_PTE_TEMP, AlphaISA::IPR_DTB_TAG, AlphaISA::IPR_EXC_ADDR, AlphaISA::IPR_EXC_MASK, AlphaISA::IPR_EXC_SUM, AlphaISA::IPR_HWINT_CLR, AlphaISA::IPR_IC_FLUSH, AlphaISA::IPR_IC_PERR_STAT, AlphaISA::IPR_ICM, AlphaISA::IPR_ICSR, AlphaISA::IPR_INTID, AlphaISA::IPR_IPLR, AlphaISA::IPR_ITB_ASN, AlphaISA::IPR_ITB_IA, AlphaISA::IPR_ITB_IAP, AlphaISA::IPR_ITB_IS, AlphaISA::IPR_ITB_PTE, AlphaISA::IPR_ITB_PTE_TEMP, AlphaISA::IPR_ITB_TAG, AlphaISA::IPR_IVPTBR, AlphaISA::IPR_MAF_MODE, AlphaISA::IPR_MCSR, AlphaISA::IPR_MM_STAT, AlphaISA::IPR_MVPTBR, AlphaISA::IPR_PAL_BASE, AlphaISA::IPR_PALtemp0, AlphaISA::IPR_PALtemp1, AlphaISA::IPR_PALtemp10, AlphaISA::IPR_PALtemp11, AlphaISA::IPR_PALtemp12, AlphaISA::IPR_PALtemp13, AlphaISA::IPR_PALtemp14, AlphaISA::IPR_PALtemp15, AlphaISA::IPR_PALtemp16, AlphaISA::IPR_PALtemp17, AlphaISA::IPR_PALtemp18, AlphaISA::IPR_PALtemp19, AlphaISA::IPR_PALtemp2, AlphaISA::IPR_PALtemp20, AlphaISA::IPR_PALtemp21, AlphaISA::IPR_PALtemp22, AlphaISA::IPR_PALtemp23, AlphaISA::IPR_PALtemp3, AlphaISA::IPR_PALtemp4, AlphaISA::IPR_PALtemp5, AlphaISA::IPR_PALtemp6, AlphaISA::IPR_PALtemp7, AlphaISA::IPR_PALtemp8, AlphaISA::IPR_PALtemp9, AlphaISA::IPR_PMCTR, AlphaISA::IPR_SIRR, AlphaISA::IPR_SL_RCV, AlphaISA::IPR_SL_XMIT, AlphaISA::ITB_ASN_ASN(), AlphaISA::ITB_PTE_ASMA(), AlphaISA::ITB_PTE_FONR(), AlphaISA::ITB_PTE_FONW(), AlphaISA::ITB_PTE_GH(), AlphaISA::ITB_PTE_PPN(), AlphaISA::ITB_PTE_XRE(), AlphaISA::Kernel::kernel, panic, AlphaISA::TlbEntry::ppn, ULL, AlphaISA::Kernel::user, X86ISA::val, AlphaISA::TlbEntry::xre, and AlphaISA::TlbEntry::xwe.
Referenced by setMiscReg().
void AlphaISA::ISA::setMiscReg | ( | int | misc_reg, |
const MiscReg & | val, | ||
ThreadContext * | tc, | ||
ThreadID | tid = 0 |
||
) |
Definition at line 143 of file isa.cc.
References fpcr, intr_flag, lock_addr, lock_flag, AlphaISA::MISCREG_FPCR, AlphaISA::MISCREG_INTR, AlphaISA::MISCREG_LOCKADDR, AlphaISA::MISCREG_LOCKFLAG, AlphaISA::MISCREG_UNIQ, setIpr(), uniq, and X86ISA::val.
Definition at line 117 of file isa.cc.
References fpcr, intr_flag, ipr, lock_addr, lock_flag, AlphaISA::MISCREG_FPCR, AlphaISA::MISCREG_INTR, AlphaISA::MISCREG_LOCKADDR, AlphaISA::MISCREG_LOCKFLAG, AlphaISA::MISCREG_UNIQ, AlphaISA::NumInternalProcRegs, uniq, and X86ISA::val.
|
inline |
|
overridevirtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
cp | Checkpoint state |
Implements Serializable.
Definition at line 67 of file isa.cc.
References fpcr, ipr, lock_addr, lock_flag, AlphaISA::NumInternalProcRegs, uniq, UNSERIALIZE_ARRAY, and UNSERIALIZE_SCALAR.
|
protected |
Definition at line 62 of file isa.hh.
Referenced by clear(), readMiscReg(), readMiscRegNoEffect(), serialize(), setMiscReg(), setMiscRegNoEffect(), and unserialize().
|
protected |
Definition at line 66 of file isa.hh.
Referenced by clear(), readMiscReg(), readMiscRegNoEffect(), setMiscReg(), and setMiscRegNoEffect().
|
protected |
Definition at line 68 of file isa.hh.
Referenced by clear(), readIpr(), readMiscRegNoEffect(), serialize(), setIpr(), setMiscRegNoEffect(), and unserialize().
|
protected |
Definition at line 65 of file isa.hh.
Referenced by clear(), readMiscReg(), readMiscRegNoEffect(), serialize(), setMiscReg(), setMiscRegNoEffect(), and unserialize().
|
protected |
Definition at line 64 of file isa.hh.
Referenced by clear(), readMiscReg(), readMiscRegNoEffect(), serialize(), setMiscReg(), setMiscRegNoEffect(), and unserialize().
|
protected |
Definition at line 63 of file isa.hh.
Referenced by clear(), readMiscReg(), readMiscRegNoEffect(), serialize(), setMiscReg(), setMiscRegNoEffect(), and unserialize().