summaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2003-11-14 01:19:16 -0500
committerNathan Binkert <binkertn@umich.edu>2003-11-14 01:19:16 -0500
commit123d0294b5e95953866cdc79ea8018cce30132f9 (patch)
tree516051471a3bf3714ba73afba6c6dd07cd050ec3 /dev
parent0bd909277d1619d5e40444e5b7a9d59bbae9bc19 (diff)
downloadgem5-123d0294b5e95953866cdc79ea8018cce30132f9.tar.xz
Make it so that we create a directory for each checkpoint so that
there aren't so many files littering your directory dev/disk_image.cc: Checkpoints now in a directory sim/serialize.hh: Make it so that we create a directory for each checkpoint so that there aren't so many files littering your directory. Remove unused variable --HG-- extra : convert_revision : 261824eee62f7b68f6ae6e3dbd49ad5128ced148
Diffstat (limited to 'dev')
-rw-r--r--dev/disk_image.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/disk_image.cc b/dev/disk_image.cc
index a1a220de1..cbcd16a25 100644
--- a/dev/disk_image.cc
+++ b/dev/disk_image.cc
@@ -405,7 +405,7 @@ CowDiskImage::write(const uint8_t *data, off_t offset)
void
CowDiskImage::serialize(ostream &os)
{
- string cowFilename = CheckpointFile() + "." + name() + ".cow";
+ string cowFilename = CheckpointDir() + name() + ".cow";
SERIALIZE_SCALAR(cowFilename);
save(cowFilename);
}