summaryrefslogtreecommitdiff
path: root/src/dev/x86/speaker.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-02-25 10:16:43 -0800
committerGabe Black <gblack@eecs.umich.edu>2009-02-25 10:16:43 -0800
commit82288e7c3eea0fc62746d746e325c888a13c0a22 (patch)
treee9cfc318aa62981e344a45158ad00865e7404b0f /src/dev/x86/speaker.cc
parent7462cb0842b9963d137cb578be6a0f7c619712d1 (diff)
downloadgem5-82288e7c3eea0fc62746d746e325c888a13c0a22.tar.xz
X86: Add makeAtomicResponse to the read/write functions of x86 devices.
Diffstat (limited to 'src/dev/x86/speaker.cc')
-rw-r--r--src/dev/x86/speaker.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dev/x86/speaker.cc b/src/dev/x86/speaker.cc
index 25014d0c6..c6eb9db9e 100644
--- a/src/dev/x86/speaker.cc
+++ b/src/dev/x86/speaker.cc
@@ -47,6 +47,7 @@ X86ISA::Speaker::read(PacketPtr pkt)
controlVal.speaker ? "on" : "off",
controlVal.timer ? "on" : "off");
pkt->set((uint8_t)controlVal);
+ pkt->makeAtomicResponse();
return latency;
}
@@ -67,6 +68,7 @@ X86ISA::Speaker::write(PacketPtr pkt)
controlVal.speaker = val.speaker;
DPRINTF(PcSpeaker, "Writing to speaker device: gate %s, speaker %s.\n",
controlVal.gate ? "on" : "off", controlVal.speaker ? "on" : "off");
+ pkt->makeAtomicResponse();
return latency;
}