x86: minor checkpointing bug fixes

This commit is contained in:
Steve Reinhardt 2010-08-17 05:20:39 -07:00
parent f064aa3060
commit 164a211f10
2 changed files with 7 additions and 2 deletions

View 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");
}
/*

View 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]);
}
}