summaryrefslogtreecommitdiff
path: root/src/dev/x86/speaker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/x86/speaker.cc')
-rw-r--r--src/dev/x86/speaker.cc15
1 files changed, 15 insertions, 0 deletions
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 &section)
+{
+ uint8_t controlValData;
+ UNSERIALIZE_SCALAR(controlValData);
+ controlVal.__data = controlValData;
+}
+
X86ISA::Speaker *
PcSpeakerParams::create()
{