summaryrefslogtreecommitdiff
path: root/cpu/base_cpu.hh
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2004-06-17 15:36:59 -0400
committerAli Saidi <saidi@eecs.umich.edu>2004-06-17 15:36:59 -0400
commit074969f8f16110680de05fca64a6be48aedcdfd8 (patch)
tree45d662f5e97c48cc8651988c0fe5429f4ecf22cc /cpu/base_cpu.hh
parentf3a7930fa63475df4d519e95e3fa183d6c2a6699 (diff)
downloadgem5-074969f8f16110680de05fca64a6be48aedcdfd8.tar.xz
Serialized cpu interrupts
cpu/simple_cpu/simple_cpu.cc: called basecpu serialization --HG-- extra : convert_revision : 1a639b5e3c08e47a5d581c18b2b53fe87bd05b73
Diffstat (limited to 'cpu/base_cpu.hh')
-rw-r--r--cpu/base_cpu.hh15
1 files changed, 15 insertions, 0 deletions
diff --git a/cpu/base_cpu.hh b/cpu/base_cpu.hh
index 3e1518cf3..f75f00409 100644
--- a/cpu/base_cpu.hh
+++ b/cpu/base_cpu.hh
@@ -139,6 +139,21 @@ class BaseCPU : public SimObject
#ifdef FULL_SYSTEM
System *system;
+
+
+ /**
+ * 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);
+
#endif
/**