summaryrefslogtreecommitdiff
path: root/src/dev/x86/south_bridge/speaker.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2008-10-11 01:49:39 -0700
committerGabe Black <gblack@eecs.umich.edu>2008-10-11 01:49:39 -0700
commita6600fdd8885f9765c859935a5c97d9017653745 (patch)
tree9cbb4d0ff97259066774b67f5e9a353eaed45a4e /src/dev/x86/south_bridge/speaker.cc
parent539563e04b4925e88c28cb44f5180915c3b3a5be (diff)
downloadgem5-a6600fdd8885f9765c859935a5c97d9017653745.tar.xz
Devices: Make the Intel8254Timer device only use pointers to its counters.
Diffstat (limited to 'src/dev/x86/south_bridge/speaker.cc')
-rw-r--r--src/dev/x86/south_bridge/speaker.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dev/x86/south_bridge/speaker.cc b/src/dev/x86/south_bridge/speaker.cc
index 784c9504b..59a86c634 100644
--- a/src/dev/x86/south_bridge/speaker.cc
+++ b/src/dev/x86/south_bridge/speaker.cc
@@ -39,7 +39,7 @@ X86ISA::Speaker::read(PacketPtr pkt)
{
assert(pkt->getAddr() == addrRange.start);
assert(pkt->getSize() == 1);
- controlVal.timer = timer->pit.counter2.outputHigh() ? 1 : 0;
+ controlVal.timer = timer->pit.outputHigh(2) ? 1 : 0;
DPRINTF(PCSpeaker,
"Reading from speaker device: gate %s, speaker %s, output %s.\n",
controlVal.gate ? "on" : "off",