Merge ktlim@zizzer.eecs.umich.edu:/bk/m5
[gem5.git] / kern / kernel_stats.cc
index c08ee08f787f080180dde94800e65a51a78e87af..ed0b613ffbd1d4743686ff682da73a4d4e34162f 100644 (file)
@@ -39,6 +39,7 @@
 #include "cpu/static_inst.hh"
 #include "kern/kernel_stats.hh"
 #include "kern/linux/linux_syscalls.hh"
+#include "kern/tru64/tru64_syscalls.hh"
 
 using namespace std;
 using namespace Stats;
@@ -294,6 +295,10 @@ Statistics::serialize(ostream &os)
 {
     int exemode = themode;
     SERIALIZE_SCALAR(exemode);
+    SERIALIZE_SCALAR(idleProcess);
+    SERIALIZE_SCALAR(iplLast);
+    SERIALIZE_SCALAR(iplLastTick);
+    SERIALIZE_SCALAR(lastModeTick);
 }
 
 void
@@ -301,6 +306,10 @@ Statistics::unserialize(Checkpoint *cp, const string &section)
 {
     int exemode;
     UNSERIALIZE_SCALAR(exemode);
+    UNSERIALIZE_SCALAR(idleProcess);
+    UNSERIALIZE_SCALAR(iplLast);
+    UNSERIALIZE_SCALAR(iplLastTick);
+    UNSERIALIZE_SCALAR(lastModeTick);
     themode = (cpu_mode)exemode;
 }