Add support to store less than the full packet in an etherdump
[gem5.git] / dev / disk_image.hh
index 2cfa1490afecab69ae9a8af76c77bbf21c5f56c7..b219780586bf5420cbe08a7316e444d150573d87 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003 The Regents of The University of Michigan
+ * Copyright (c) 2001-2003 The Regents of The University of Michigan
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -35,8 +35,8 @@
 
 #include <fstream>
 
-#include "hashmap.hh"
-#include "sim_object.hh"
+#include "base/hashmap.hh"
+#include "sim/sim_object.hh"
 
 #define SectorSize (512)
 
@@ -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;