|
gem5
v21.1.0.2
|
#include <types.hh>
Public Member Functions | |
| 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 |
| void | serialize (CheckpointOut &cp) const override |
| Serialize an object. More... | |
| void | unserialize (CheckpointIn &cp) override |
| Unserialize an object. More... | |
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. 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 Member Functions | |
| PCStateBase () | |
| PCStateBase (Addr val) | |
Protected Attributes | |
| Addr | _pc |
| Addr | _npc |
Additional Inherited Members | |
Static Public Member Functions inherited from gem5::Serializable | |
| 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... | |
|
inlineprotected |
|
inlineprotected |
Definition at line 64 of file types.hh.
References set(), and gem5::X86ISA::val.
|
inline |
Returns the memory address the bytes of this instruction came from.
Definition at line 73 of file types.hh.
References _pc.
Referenced by gem5::RiscvISA::Decoder::decode(), gem5::PowerISA::Decoder::decode(), gem5::MipsISA::Decoder::decode(), gem5::SparcISA::Decoder::decode(), and gem5::DecoderFaultInst::execute().
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Serialize an object.
Output an object's state into the current checkpoint section.
| cp | Checkpoint state |
Implements gem5::Serializable.
Reimplemented in gem5::GenericISA::DelaySlotUPCState< InstWidth >, gem5::GenericISA::DelaySlotPCState< InstWidth >, gem5::GenericISA::DelaySlotPCState< 4 >, gem5::GenericISA::UPCState< InstWidth >, gem5::GenericISA::UPCState< 4 >, gem5::GenericISA::UPCState< 8 >, and gem5::X86ISA::PCState.
Definition at line 121 of file types.hh.
References _npc, _pc, and SERIALIZE_SCALAR.
Referenced by gem5::X86ISA::PCState::serialize(), gem5::GenericISA::UPCState< 8 >::serialize(), and gem5::GenericISA::DelaySlotPCState< 4 >::serialize().
| void gem5::GenericISA::PCStateBase::set | ( | Addr | val | ) |
Force this PC to reflect a particular value, resetting all its other fields around it.
This is useful for in place (re)initialization.
| val | The value to set the PC to. |
Referenced by PCStateBase().
|
inlineoverridevirtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
| cp | Checkpoint state |
Implements gem5::Serializable.
Reimplemented in gem5::GenericISA::DelaySlotUPCState< InstWidth >, gem5::GenericISA::DelaySlotPCState< InstWidth >, gem5::GenericISA::DelaySlotPCState< 4 >, gem5::GenericISA::UPCState< InstWidth >, gem5::GenericISA::UPCState< 4 >, gem5::GenericISA::UPCState< 8 >, and gem5::X86ISA::PCState.
Definition at line 128 of file types.hh.
References _npc, _pc, and UNSERIALIZE_SCALAR.
Referenced by gem5::X86ISA::PCState::unserialize(), gem5::GenericISA::UPCState< 8 >::unserialize(), and gem5::GenericISA::DelaySlotPCState< 4 >::unserialize().
|
protected |
Definition at line 61 of file types.hh.
Referenced by gem5::GenericISA::SimplePCState< 4 >::advance(), gem5::GenericISA::DelaySlotPCState< 4 >::advance(), nextInstAddr(), gem5::GenericISA::SimplePCState< 4 >::npc(), operator==(), gem5::GenericISA::UPCState< 8 >::operator==(), gem5::GenericISA::DelaySlotPCState< 4 >::operator==(), gem5::GenericISA::DelaySlotUPCState< InstWidth >::operator==(), serialize(), and unserialize().
|
protected |
Definition at line 60 of file types.hh.
Referenced by gem5::GenericISA::SimplePCState< 4 >::advance(), gem5::GenericISA::DelaySlotPCState< 4 >::advance(), instAddr(), operator==(), gem5::GenericISA::UPCState< 8 >::operator==(), gem5::GenericISA::DelaySlotPCState< 4 >::operator==(), gem5::GenericISA::DelaySlotUPCState< InstWidth >::operator==(), gem5::GenericISA::SimplePCState< 4 >::pc(), serialize(), and unserialize().