From e937b38e2ccf0bf75794178f29c8482d76bec9c8 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Wed, 16 Jun 2004 18:20:10 -0400 Subject: 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 --- dev/tsunami_io.hh | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) (limited to 'dev/tsunami_io.hh') 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 §ion); + }; /** * 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 §ion); + }; /** 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 -- cgit v1.2.3