diff options
Diffstat (limited to 'src/sim/process.cc')
-rw-r--r-- | src/sim/process.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sim/process.cc b/src/sim/process.cc index 343d2ad5a..957c3cc3e 100644 --- a/src/sim/process.cc +++ b/src/sim/process.cc @@ -507,6 +507,7 @@ Process::serialize(std::ostream &os) nameOut(os, csprintf("%s.FdMap%d", name(), x)); fd_map[x].serialize(os); } + SERIALIZE_SCALAR(M5_pid); } @@ -528,6 +529,11 @@ Process::unserialize(Checkpoint *cp, const std::string §ion) fd_map[x].unserialize(cp, csprintf("%s.FdMap%d", section, x)); } fix_file_offsets(); + UNSERIALIZE_OPT_SCALAR(M5_pid); + // The above returns a bool so that you could do something if you don't + // find the param in the checkpoint if you wanted to, like set a default + // but in this case we'll just stick with the instantianted value if not + // found. checkpointRestored = true; |