gem5
|
Container for serializing global variables (not associated with any serialized object). More...
Public Member Functions | |
Globals () | |
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) |
Public Attributes | |
Tick | unserializedCurTick |
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) |
Static Public Attributes inherited from Serializable | |
static int | ckptCount = 0 |
static int | ckptMaxCount = 0 |
static int | ckptPrevCount = -1 |
Container for serializing global variables (not associated with any serialized object).
Definition at line 485 of file serialize.cc.
|
inline |
Definition at line 488 of file serialize.cc.
|
overridevirtual |
Serialize an object.
Output an object's state into the current checkpoint section.
cp | Checkpoint state |
Implements Serializable.
Definition at line 505 of file serialize.cc.
References curTick(), paramOut(), SERIALIZE_CONTAINER, and version_tags.
|
overridevirtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
cp | Checkpoint state |
Implements Serializable.
Definition at line 512 of file serialize.cc.
References arrayParamIn(), Serializable::currentSection(), CheckpointIn::find(), paramIn(), ArmISA::t, version_tags, and warn.
Tick Globals::unserializedCurTick |
Definition at line 494 of file serialize.cc.
Referenced by Serializable::unserializeGlobals().