diff options
author | Nathan Binkert <binkertn@umich.edu> | 2004-06-28 15:54:05 -0400 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2004-06-28 15:54:05 -0400 |
commit | 19d5789db1a58747daca88e5cd6580bb95db008e (patch) | |
tree | 1ed0e2a0d751b33eeea616b8dd120bd042b03989 /dev | |
parent | efd119881a3cf24902b8a073492a5ba57e5f3a83 (diff) | |
download | gem5-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 'dev')
-rw-r--r-- | dev/disk_image.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dev/disk_image.cc b/dev/disk_image.cc index d990d7078..f9e1c2fe3 100644 --- a/dev/disk_image.cc +++ b/dev/disk_image.cc @@ -425,7 +425,7 @@ CowDiskImage::write(const uint8_t *data, off_t offset) void CowDiskImage::serialize(ostream &os) { - string cowFilename = Checkpoint::dir() + name() + ".cow"; + string cowFilename = name() + ".cow"; SERIALIZE_SCALAR(cowFilename); save(cowFilename); } @@ -435,6 +435,7 @@ CowDiskImage::unserialize(Checkpoint *cp, const string §ion) { string cowFilename; UNSERIALIZE_SCALAR(cowFilename); + cowFilename = cp->cptDir + "/" + cowFilename; open(cowFilename); } |