summaryrefslogtreecommitdiff
path: root/dev/disk_image.hh
diff options
context:
space:
mode:
authorRon Dreslinski <rdreslin@umich.edu>2003-10-30 16:48:23 -0500
committerRon Dreslinski <rdreslin@umich.edu>2003-10-30 16:48:23 -0500
commit1044b29a1df6a9ac7de95f418931fb1973bf7a77 (patch)
tree904594a9af729ec676ded9a95dbe170f21ca01b5 /dev/disk_image.hh
parentfd232ecb6ad4bc60933feb3bd5b838c5e0231506 (diff)
downloadgem5-1044b29a1df6a9ac7de95f418931fb1973bf7a77.tar.xz
Serialization support for cow images
dev/disk_image.cc: dev/disk_image.hh: Serialization of cow images --HG-- extra : convert_revision : 144179b8cad00b32df8c448a8556a465e24737aa
Diffstat (limited to 'dev/disk_image.hh')
-rw-r--r--dev/disk_image.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/dev/disk_image.hh b/dev/disk_image.hh
index 12048a042..7b2c12ef7 100644
--- a/dev/disk_image.hh
+++ b/dev/disk_image.hh
@@ -117,9 +117,12 @@ class CowDiskImage : public DiskImage
~CowDiskImage();
void init(int hash_size);
- bool open();
+ bool open(const std::string &file);
void save();
+ void save(const std::string &file);
void writeback();
+ void serialize(std::ostream &os);
+ void unserialize(Checkpoint *cp, const std::string &section);
virtual off_t size() const;