summaryrefslogtreecommitdiff
path: root/src/dev/x86/i8254.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2008-10-11 15:15:34 -0700
committerGabe Black <gblack@eecs.umich.edu>2008-10-11 15:15:34 -0700
commita2599e4fc1272e4c1fdf5cff90da88653579b62f (patch)
tree6ed886dbd3ccd1608b3f6fdbc37db266511d5f47 /src/dev/x86/i8254.cc
parent526933e5d03f5d7963bc5a244294ddbb068c4770 (diff)
downloadgem5-a2599e4fc1272e4c1fdf5cff90da88653579b62f.tar.xz
X86: Set up a mechanism for the I8254 timer to cause interrupts.
Diffstat (limited to 'src/dev/x86/i8254.cc')
-rw-r--r--src/dev/x86/i8254.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dev/x86/i8254.cc b/src/dev/x86/i8254.cc
index cc7c48980..ac3847cd6 100644
--- a/src/dev/x86/i8254.cc
+++ b/src/dev/x86/i8254.cc
@@ -29,9 +29,18 @@
*/
#include "dev/x86/i8254.hh"
+#include "dev/x86/intdev.hh"
#include "mem/packet.hh"
#include "mem/packet_access.hh"
+void
+X86ISA::I8254::counterInterrupt(unsigned int num)
+{
+ DPRINTF(I8254, "Interrupt from counter %d.\n", num);
+ if (num == 0)
+ intPin->signalInterrupt();
+}
+
Tick
X86ISA::I8254::read(PacketPtr pkt)
{