gem5
v21.1.0.0
|
#include <pcstate.hh>
Public Member Functions | |
void | set (Addr val) |
PCState () | |
PCState (Addr val) | |
void | setNPC (Addr val) |
uint8_t | size () const |
void | size (uint8_t newSize) |
bool | branching () const |
void | advance () |
void | uEnd () |
void | serialize (CheckpointOut &cp) const |
Serialize an object. More... | |
void | unserialize (CheckpointIn &cp) |
Unserialize an object. More... | |
![]() | |
MicroPC | upc () const |
void | upc (MicroPC val) |
MicroPC | nupc () const |
void | nupc (MicroPC val) |
MicroPC | microPC () const |
void | set (Addr val) |
UPCState () | |
UPCState (Addr val) | |
bool | branching () const |
void | uAdvance () |
void | uEnd () |
void | uReset () |
bool | operator== (const UPCState< InstWidth > &opc) const |
bool | operator!= (const UPCState< InstWidth > &opc) const |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. More... | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. More... | |
![]() | |
Addr | pc () const |
void | pc (Addr val) |
Addr | npc () const |
void | npc (Addr val) |
void | set (Addr val) |
void | setNPC (Addr val) |
SimplePCState () | |
SimplePCState (Addr val) | |
bool | branching () const |
void | advance () |
![]() | |
Addr | instAddr () const |
Returns the memory address the bytes of this instruction came from. More... | |
Addr | nextInstAddr () const |
Returns the memory address the bytes of the next instruction came from. More... | |
MicroPC | microPC () const |
Returns the current micropc. More... | |
void | set (Addr val) |
Force this PC to reflect a particular value, resetting all its other fields around it. More... | |
bool | operator== (const PCStateBase &opc) const |
bool | operator!= (const PCStateBase &opc) const |
![]() | |
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) |
Protected Types | |
typedef GenericISA::UPCState< 8 > | Base |
![]() | |
typedef SimplePCState< InstWidth > | Base |
![]() | |
typedef PCStateBase | Base |
Protected Attributes | |
uint8_t | _size |
![]() | |
MicroPC | _upc |
MicroPC | _nupc |
![]() | |
Addr | _pc |
Addr | _npc |
Additional Inherited Members | |
![]() | |
static const std::string & | currentSection () |
Gets the fully-qualified name of the active section. More... | |
static void | generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream) |
Generate a checkpoint file so that the serialization can be routed to it. More... | |
![]() | |
PCStateBase () | |
PCStateBase (Addr val) | |
Definition at line 50 of file pcstate.hh.
|
protected |
Definition at line 53 of file pcstate.hh.
|
inline |
Definition at line 65 of file pcstate.hh.
|
inline |
Definition at line 66 of file pcstate.hh.
References set(), and gem5::X86ISA::val.
|
inline |
Definition at line 86 of file pcstate.hh.
References gem5::GenericISA::SimplePCState< InstWidth >::advance().
Referenced by gem5::X86ISA::X86StaticInst::advancePC().
|
inline |
Definition at line 79 of file pcstate.hh.
References gem5::GenericISA::SimplePCState< InstWidth >::npc(), gem5::GenericISA::UPCState< 8 >::nupc(), gem5::GenericISA::SimplePCState< InstWidth >::pc(), size(), and gem5::GenericISA::UPCState< 8 >::upc().
|
inlinevirtual |
Serialize an object.
Output an object's state into the current checkpoint section.
cp | Checkpoint state |
Reimplemented from gem5::GenericISA::PCStateBase.
Definition at line 100 of file pcstate.hh.
References _size, gem5::GenericISA::PCStateBase::serialize(), and SERIALIZE_SCALAR.
|
inline |
Definition at line 59 of file pcstate.hh.
References _size, gem5::GenericISA::SimplePCState< InstWidth >::set(), and gem5::X86ISA::val.
Referenced by PCState().
|
inline |
Definition at line 69 of file pcstate.hh.
References _size, gem5::GenericISA::SimplePCState< InstWidth >::setNPC(), and gem5::X86ISA::val.
|
inline |
Definition at line 75 of file pcstate.hh.
References _size.
Referenced by branching(), and gem5::X86ISA::Decoder::updateNPC().
|
inline |
Definition at line 76 of file pcstate.hh.
References _size.
|
inline |
Definition at line 93 of file pcstate.hh.
References _size.
Referenced by gem5::X86ISA::X86MicroopBase::advancePC(), gem5::X86ISA::X86MicroopBase::branchTarget(), and gem5::X86ISA::X86StaticInst::buildRetPC().
|
inlinevirtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
cp | Checkpoint state |
Reimplemented from gem5::GenericISA::PCStateBase.
Definition at line 107 of file pcstate.hh.
References _size, gem5::GenericISA::PCStateBase::unserialize(), and UNSERIALIZE_SCALAR.
|
protected |
Definition at line 55 of file pcstate.hh.
Referenced by serialize(), set(), setNPC(), size(), uEnd(), and unserialize().