gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AlphaISA::ISA Class Reference

#include <isa.hh>

Inheritance diagram for AlphaISA::ISA:
SimObject EventManager Serializable Drainable

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 Paramsparams () const
 
 ISA (Params *p)
 
void startup (ThreadContext *tc)
 
- Public Member Functions inherited from SimObject
const Paramsparams () 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...
 
ProbeManagergetProbeManager ()
 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)
 
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)
 
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

Systemsystem
 
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
EventQueueeventq
 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 SimObjectfind (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
 

Detailed Description

Definition at line 52 of file isa.hh.

Member Typedef Documentation

Definition at line 55 of file isa.hh.

typedef AlphaISAParams AlphaISA::ISA::Params

Definition at line 56 of file isa.hh.

Constructor & Destructor Documentation

AlphaISA::ISA::ISA ( Params p)

Definition at line 43 of file isa.cc.

References clear(), and AlphaISA::initializeIprTable().

Member Function Documentation

void AlphaISA::ISA::clear ( )
inline

Definition at line 85 of file isa.hh.

References fpcr, intr_flag, ipr, lock_addr, lock_flag, and uniq.

Referenced by ISA().

int AlphaISA::ISA::flattenCCIndex ( int  reg) const
inline

Definition at line 112 of file isa.hh.

References X86ISA::reg.

int AlphaISA::ISA::flattenFloatIndex ( int  reg) const
inline

Definition at line 105 of file isa.hh.

References X86ISA::reg.

int AlphaISA::ISA::flattenIntIndex ( int  reg) const
inline

Definition at line 99 of file isa.hh.

References X86ISA::reg.

int AlphaISA::ISA::flattenMiscIndex ( int  reg) const
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.

MiscReg AlphaISA::ISA::readIpr ( int  idx,
ThreadContext tc 
)
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 
)
MiscReg AlphaISA::ISA::readMiscRegNoEffect ( int  misc_reg,
ThreadID  tid = 0 
) const
void AlphaISA::ISA::serialize ( CheckpointOut cp) const
overridevirtual

Serialize an object.

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

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

void AlphaISA::ISA::setIpr ( int  idx,
InternalProcReg  val,
ThreadContext tc 
)
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 
)
void AlphaISA::ISA::setMiscRegNoEffect ( int  misc_reg,
const MiscReg val,
ThreadID  tid = 0 
)
void AlphaISA::ISA::startup ( ThreadContext tc)
inline

Definition at line 127 of file isa.hh.

void AlphaISA::ISA::unserialize ( CheckpointIn cp)
overridevirtual

Unserialize an object.

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

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

Member Data Documentation

uint64_t AlphaISA::ISA::fpcr
protected
int AlphaISA::ISA::intr_flag
protected

Definition at line 66 of file isa.hh.

Referenced by clear(), readMiscReg(), readMiscRegNoEffect(), setMiscReg(), and setMiscRegNoEffect().

InternalProcReg AlphaISA::ISA::ipr[NumInternalProcRegs]
protected
Addr AlphaISA::ISA::lock_addr
protected
bool AlphaISA::ISA::lock_flag
protected
System* AlphaISA::ISA::system
protected

Definition at line 60 of file isa.hh.

uint64_t AlphaISA::ISA::uniq
protected

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

Generated on Fri Jun 9 2017 13:04:24 for gem5 by doxygen 1.8.6