diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-04-19 03:54:11 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-04-19 03:54:11 -0700 |
commit | bdda224d4110dd8ebb6224bfa9bc2641957a8c57 (patch) | |
tree | 50cc190f8f9de426b79d0bc4ae7c7a32ae96857f /src/dev/x86 | |
parent | 3031af21c7b0d73508f3b339e8166e744857c18f (diff) | |
download | gem5-bdda224d4110dd8ebb6224bfa9bc2641957a8c57.tar.xz |
X86: Add a function which gets called when an interrupt message has been delivered.
Diffstat (limited to 'src/dev/x86')
-rw-r--r-- | src/dev/x86/intdev.cc | 5 | ||||
-rw-r--r-- | src/dev/x86/intdev.hh | 13 |
2 files changed, 16 insertions, 2 deletions
diff --git a/src/dev/x86/intdev.cc b/src/dev/x86/intdev.cc index 3b29eb7bf..10e50c13e 100644 --- a/src/dev/x86/intdev.cc +++ b/src/dev/x86/intdev.cc @@ -45,10 +45,11 @@ X86ISA::IntDev::IntPort::sendMessage(TriggerIntMessage message, bool timing) DPRINTF(IntDev, "Sending interrupt to APIC ID %d.\n", message.destination); PacketPtr pkt = buildIntRequest(message.destination, message); - if (timing) + if (timing) { sendMessageTiming(pkt, latency); - else + } else { sendMessageAtomic(pkt); + } } else { DPRINTF(IntDev, "Sending interrupts to APIC IDs:" "%s%s%s%s%s%s%s%s\n", diff --git a/src/dev/x86/intdev.hh b/src/dev/x86/intdev.hh index e95c72058..3a99783f7 100644 --- a/src/dev/x86/intdev.hh +++ b/src/dev/x86/intdev.hh @@ -71,6 +71,11 @@ class IntDev return device->recvMessage(pkt); } + Tick recvResponse(PacketPtr pkt) + { + return device->recvResponse(pkt); + } + // This is x86 focused, so if this class becomes generic, this would // need to be moved into a subclass. void sendMessage(TriggerIntMessage message, bool timing); @@ -125,6 +130,14 @@ class IntDev return 0; } + virtual Tick + recvResponse(PacketPtr pkt) + { + delete pkt->req; + delete pkt; + return 0; + } + virtual void getIntAddrRange(AddrRangeList &range_list) { |