summaryrefslogtreecommitdiff
path: root/dev/tsunami_io.hh
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2004-06-16 18:20:10 -0400
committerAli Saidi <saidi@eecs.umich.edu>2004-06-16 18:20:10 -0400
commite937b38e2ccf0bf75794178f29c8482d76bec9c8 (patch)
tree296a9c7766f6f26746b2f72f5605d0b961fb5f58 /dev/tsunami_io.hh
parentbfcb0882813272bc8ef74b98ed53e28a36147bb8 (diff)
downloadgem5-e937b38e2ccf0bf75794178f29c8482d76bec9c8.tar.xz
Updated serialization code and added #if tracing so that make fast
builds dev/ide_ctrl.cc: added #if to remove variables that are optimized out. dev/tsunami_io.cc: dev/tsunami_io.hh: Updated serialization code --HG-- extra : convert_revision : b322a3299097cbd05b9b5bb8b0a80e9fa33bdc20
Diffstat (limited to 'dev/tsunami_io.hh')
-rw-r--r--dev/tsunami_io.hh30
1 files changed, 28 insertions, 2 deletions
diff --git a/dev/tsunami_io.hh b/dev/tsunami_io.hh
index c8c5fd412..e6a545689 100644
--- a/dev/tsunami_io.hh
+++ b/dev/tsunami_io.hh
@@ -110,7 +110,20 @@ class TsunamiIO : public PioDevice
*/
uint8_t Status();
- };
+ /**
+ * Serialize this object to the given output stream.
+ * @param os The stream to serialize to.
+ */
+ virtual void serialize(std::ostream &os);
+
+
+ /**
+ * Reconstruct the state of this object from a checkpoint.
+ * @param cp The checkpoint use.
+ * @param section The section name of this object
+ */
+ virtual void unserialize(Checkpoint *cp, const std::string &section);
+ };
/**
* Process RTC timer events and generate interrupts appropriately.
@@ -136,7 +149,20 @@ class TsunamiIO : public PioDevice
*/
virtual const char *description();
- };
+ /**
+ * Serialize this object to the given output stream.
+ * @param os The stream to serialize to.
+ */
+ virtual void serialize(std::ostream &os);
+
+
+ /**
+ * Reconstruct the state of this object from a checkpoint.
+ * @param cp The checkpoint use.
+ * @param section The section name of this object
+ */
+ virtual void unserialize(Checkpoint *cp, const std::string &section);
+ };
/** uip UpdateInProgess says that the rtc is updating, but we just fake it
* by alternating it on every read of the bit since we are going to