diff options
author | Ron Dreslinski <rdreslin@umich.edu> | 2003-10-30 16:48:23 -0500 |
---|---|---|
committer | Ron Dreslinski <rdreslin@umich.edu> | 2003-10-30 16:48:23 -0500 |
commit | 1044b29a1df6a9ac7de95f418931fb1973bf7a77 (patch) | |
tree | 904594a9af729ec676ded9a95dbe170f21ca01b5 /dev/disk_image.hh | |
parent | fd232ecb6ad4bc60933feb3bd5b838c5e0231506 (diff) | |
download | gem5-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.hh | 5 |
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 §ion); virtual off_t size() const; |