summaryrefslogtreecommitdiff
path: root/src/cpu/simple_thread.cc
diff options
context:
space:
mode:
authorBrad Beckmann <Brad.Beckmann@amd.com>2009-10-15 15:15:24 -0700
committerBrad Beckmann <Brad.Beckmann@amd.com>2009-10-15 15:15:24 -0700
commit28204b2a964983738726428269e61833f4e1dce9 (patch)
tree5ee8b08fb193d39e02c71b2e73fd7b56db04124b /src/cpu/simple_thread.cc
parent30a185dcd04cc7797609398219482d03a68509f9 (diff)
downloadgem5-28204b2a964983738726428269e61833f4e1dce9.tar.xz
fixed MC146818 checkpointing bug and added isa serialization calls to simple_thread
Diffstat (limited to 'src/cpu/simple_thread.cc')
-rw-r--r--src/cpu/simple_thread.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cpu/simple_thread.cc b/src/cpu/simple_thread.cc
index 92c6ad69b..f18634198 100644
--- a/src/cpu/simple_thread.cc
+++ b/src/cpu/simple_thread.cc
@@ -199,6 +199,11 @@ SimpleThread::serialize(ostream &os)
SERIALIZE_SCALAR(nextPC);
SERIALIZE_SCALAR(nextNPC);
// thread_num and cpu_id are deterministic from the config
+
+ //
+ // Now must serialize all the ISA dependent state
+ //
+ isa.serialize(os);
}
@@ -214,6 +219,11 @@ SimpleThread::unserialize(Checkpoint *cp, const std::string &section)
UNSERIALIZE_SCALAR(nextPC);
UNSERIALIZE_SCALAR(nextNPC);
// thread_num and cpu_id are deterministic from the config
+
+ //
+ // Now must unserialize all the ISA dependent state
+ //
+ isa.unserialize(cp, section);
}
#if FULL_SYSTEM