From 62e05ed78a0f24982e4066adb45dc220c9e200ea Mon Sep 17 00:00:00 2001 From: Joel Hestness Date: Sun, 6 Feb 2011 22:14:18 -0800 Subject: x86: Add checkpointing capability to devices Add checkpointing capability to the Intel 8254 timer, CMOS, I8042, PS2 Keyboard and Mouse, I82094AA, I8237, I8254, I8259, and speaker devices --- src/dev/x86/speaker.cc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/dev/x86/speaker.cc') diff --git a/src/dev/x86/speaker.cc b/src/dev/x86/speaker.cc index c6eb9db9e..b0f4dcd8b 100644 --- a/src/dev/x86/speaker.cc +++ b/src/dev/x86/speaker.cc @@ -72,6 +72,21 @@ X86ISA::Speaker::write(PacketPtr pkt) return latency; } +void +X86ISA::Speaker::serialize(std::ostream &os) +{ + uint8_t controlValData = controlVal.__data; + SERIALIZE_SCALAR(controlValData); +} + +void +X86ISA::Speaker::unserialize(Checkpoint *cp, const std::string §ion) +{ + uint8_t controlValData; + UNSERIALIZE_SCALAR(controlValData); + controlVal.__data = controlValData; +} + X86ISA::Speaker * PcSpeakerParams::create() { -- cgit v1.2.3