summaryrefslogtreecommitdiff
path: root/cpu/exec_context.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/exec_context.cc')
-rw-r--r--cpu/exec_context.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/cpu/exec_context.cc b/cpu/exec_context.cc
index a4670f291..8cfd0a0ea 100644
--- a/cpu/exec_context.cc
+++ b/cpu/exec_context.cc
@@ -98,6 +98,22 @@ ExecContext::takeOverFrom(ExecContext *oldContext)
void
+ExecContext::serialize(ostream &os)
+{
+ SERIALIZE_ARRAY(regs.intRegFile, NumIntRegs);
+ SERIALIZE_ARRAY(regs.floatRegFile.q, NumFloatRegs);
+}
+
+
+void
+ExecContext::unserialize(IniFile &db, const std::string &section)
+{
+ UNSERIALIZE_ARRAY(regs.intRegFile, NumIntRegs);
+ UNSERIALIZE_ARRAY(regs.floatRegFile.q, NumFloatRegs);
+}
+
+
+void
ExecContext::setStatus(Status new_status)
{
#ifdef FULL_SYSTEM