summaryrefslogtreecommitdiff
path: root/src/sim/system.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/system.hh')
-rw-r--r--src/sim/system.hh9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/sim/system.hh b/src/sim/system.hh
index 9ec349a47..b8114d0ca 100644
--- a/src/sim/system.hh
+++ b/src/sim/system.hh
@@ -517,8 +517,8 @@ class System : public MemObject
int registerThreadContext(ThreadContext *tc, int assigned=-1);
void replaceThreadContext(ThreadContext *tc, int context_id);
- void serialize(std::ostream &os);
- void unserialize(Checkpoint *cp, const std::string &section);
+ void serialize(CheckpointOut &cp) const M5_ATTR_OVERRIDE;
+ void unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE;
unsigned int drain(DrainManager *dm);
void drainResume();
@@ -552,7 +552,7 @@ class System : public MemObject
*
* @param os stream to serialize to
*/
- virtual void serializeSymtab(std::ostream &os) {}
+ virtual void serializeSymtab(CheckpointOut &os) const {}
/**
* If needed, unserialize additional symbol table entries for a
@@ -561,8 +561,7 @@ class System : public MemObject
* @param cp checkpoint to unserialize from
* @param section relevant section in the checkpoint
*/
- virtual void unserializeSymtab(Checkpoint *cp,
- const std::string &section) {}
+ virtual void unserializeSymtab(CheckpointIn &cp) {}
};