summaryrefslogtreecommitdiff
path: root/sim/serialize.cc
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2004-06-28 15:54:05 -0400
committerNathan Binkert <binkertn@umich.edu>2004-06-28 15:54:05 -0400
commit19d5789db1a58747daca88e5cd6580bb95db008e (patch)
tree1ed0e2a0d751b33eeea616b8dd120bd042b03989 /sim/serialize.cc
parentefd119881a3cf24902b8a073492a5ba57e5f3a83 (diff)
downloadgem5-19d5789db1a58747daca88e5cd6580bb95db008e.tar.xz
Don't serialize the absolute path so we can move checkpoints around.
sim/serialize.cc: sim/serialize.hh: export the checkpoint directory --HG-- extra : convert_revision : ba5b796fd930ab0487a502beefcf76bd6bb7c366
Diffstat (limited to 'sim/serialize.cc')
-rw-r--r--sim/serialize.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/serialize.cc b/sim/serialize.cc
index 945f97c06..91548f653 100644
--- a/sim/serialize.cc
+++ b/sim/serialize.cc
@@ -431,7 +431,7 @@ Serializable::create(Checkpoint *cp, const std::string &section)
Checkpoint::Checkpoint(const std::string &cpt_dir, const std::string &path,
const ConfigNode *_configNode)
- : db(new IniFile), basePath(path), configNode(_configNode)
+ : db(new IniFile), basePath(path), configNode(_configNode), cptDir(cpt_dir)
{
string filename = cpt_dir + "/" + Checkpoint::baseFilename;
if (!db->load(filename)) {