x86: minor checkpointing bug fixes
authorSteve Reinhardt <steve.reinhardt@amd.com>
Tue, 17 Aug 2010 12:20:39 +0000 (05:20 -0700)
committerSteve Reinhardt <steve.reinhardt@amd.com>
Tue, 17 Aug 2010 12:20:39 +0000 (05:20 -0700)
src/arch/x86/interrupts.hh
src/arch/x86/isa.cc

index bc67cdcff8fb21c133118468e483edd32e09563d..6b5215135698063e3c040f92046a1daaf015a30d 100644 (file)
@@ -260,13 +260,13 @@ class Interrupts : public BasicPioDevice, IntDev
     void
     serialize(std::ostream &os)
     {
-        panic("Interrupts::serialize unimplemented!\n");
+        warn("Interrupts::serialize unimplemented!\n");
     }
 
     void
     unserialize(Checkpoint *cp, const std::string &section)
     {
-        panic("Interrupts::unserialize unimplemented!\n");
+        warn("Interrupts::unserialize unimplemented!\n");
     }
 
     /*
index 47d24ed1e6ccf9eb386f2db643587ae562a56340..0b5523864593b388663ebf12fcc2a581dd821de4 100644 (file)
@@ -352,6 +352,11 @@ ISA::unserialize(EventManager *em, Checkpoint * cp,
                  const std::string & section)
 {
     UNSERIALIZE_ARRAY(regVal, NumMiscRegs);
+    updateHandyM5Reg(regVal[MISCREG_EFER],
+                     regVal[MISCREG_CR0],
+                     regVal[MISCREG_CS_ATTR],
+                     regVal[MISCREG_SS_ATTR],
+                     regVal[MISCREG_RFLAGS]);
 }
 
 }