gem5
v20.1.0.0
|
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 () |
Gets the fully-qualified name of the active section. More... | |
static void | serializeAll (const std::string &cpt_dir) |
Serializes all the SimObjects. More... | |
static void | unserializeGlobals (CheckpointIn &cp) |
Container for serializing global variables (not associated with any serialized object).
Definition at line 78 of file serialize.cc.
|
inline |
Definition at line 81 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 98 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 105 of file serialize.cc.
References arrayParamIn(), Serializable::currentSection(), ArmISA::err, paramIn(), ArmISA::t, version_tags, and warn.
Tick Globals::unserializedCurTick |
Definition at line 87 of file serialize.cc.
Referenced by Serializable::unserializeGlobals().