gem5
|
#include <backdoor.hh>
Public Member Functions | |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. More... | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. More... | |
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) |
Additional Inherited Members | |
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) |
Public Attributes inherited from AlphaAccess | |
uint32_t | last_offset |
uint32_t | version |
uint32_t | numCPUs |
uint32_t | intrClockFrequency |
uint64_t | cpuClock |
uint64_t | mem_size |
uint64_t | kernStart |
uint64_t | kernEnd |
uint64_t | entryPoint |
uint64_t | diskUnit |
uint64_t | diskCount |
uint64_t | diskPAddr |
uint64_t | diskBlock |
uint64_t | diskOperation |
uint64_t | outputChar |
uint64_t | inputChar |
uint64_t | cpuStack [64] |
Static Public Attributes inherited from Serializable | |
static int | ckptCount = 0 |
static int | ckptMaxCount = 0 |
static int | ckptPrevCount = -1 |
Definition at line 77 of file backdoor.hh.
|
overridevirtual |
Serialize an object.
Output an object's state into the current checkpoint section.
cp | Checkpoint state |
Implements Serializable.
Definition at line 256 of file backdoor.cc.
References AlphaAccess::cpuClock, AlphaAccess::cpuStack, AlphaAccess::diskBlock, AlphaAccess::diskCount, AlphaAccess::diskOperation, AlphaAccess::diskPAddr, AlphaAccess::diskUnit, AlphaAccess::entryPoint, AlphaAccess::inputChar, AlphaAccess::intrClockFrequency, AlphaAccess::kernEnd, AlphaAccess::kernStart, AlphaAccess::last_offset, AlphaAccess::mem_size, AlphaAccess::numCPUs, AlphaAccess::outputChar, SERIALIZE_ARRAY, SERIALIZE_SCALAR, and AlphaAccess::version.
Referenced by AlphaBackdoor::serialize().
|
overridevirtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
cp | Checkpoint state |
Implements Serializable.
Definition at line 278 of file backdoor.cc.
References ArmISA::numCPUs, UNSERIALIZE_ARRAY, and UNSERIALIZE_SCALAR.
Referenced by AlphaBackdoor::unserialize().