summaryrefslogtreecommitdiff
path: root/src/dev/x86/cmos.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/x86/cmos.cc')
-rw-r--r--src/dev/x86/cmos.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/dev/x86/cmos.cc b/src/dev/x86/cmos.cc
index 122b531ca..aa92521dc 100644
--- a/src/dev/x86/cmos.cc
+++ b/src/dev/x86/cmos.cc
@@ -111,6 +111,26 @@ X86ISA::Cmos::writeRegister(uint8_t reg, uint8_t val)
}
}
+void
+X86ISA::Cmos::serialize(std::ostream &os)
+{
+ SERIALIZE_SCALAR(address);
+ SERIALIZE_ARRAY(regs, numRegs);
+
+ // Serialize the timer
+ rtc.serialize("rtc", os);
+}
+
+void
+X86ISA::Cmos::unserialize(Checkpoint *cp, const std::string &section)
+{
+ UNSERIALIZE_SCALAR(address);
+ UNSERIALIZE_ARRAY(regs, numRegs);
+
+ // Serialize the timer
+ rtc.unserialize("rtc", cp, section);
+}
+
X86ISA::Cmos *
CmosParams::create()
{