summaryrefslogtreecommitdiff
path: root/src/mem
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-04-19 03:54:11 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-04-19 03:54:11 -0700
commitbdda224d4110dd8ebb6224bfa9bc2641957a8c57 (patch)
tree50cc190f8f9de426b79d0bc4ae7c7a32ae96857f /src/mem
parent3031af21c7b0d73508f3b339e8166e744857c18f (diff)
downloadgem5-bdda224d4110dd8ebb6224bfa9bc2641957a8c57.tar.xz
X86: Add a function which gets called when an interrupt message has been delivered.
Diffstat (limited to 'src/mem')
-rw-r--r--src/mem/mport.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mem/mport.cc b/src/mem/mport.cc
index 72bcfc7fd..564c560c6 100644
--- a/src/mem/mport.cc
+++ b/src/mem/mport.cc
@@ -56,5 +56,8 @@ MessagePort::sendMessageTiming(PacketPtr pkt, Tick latency)
Tick
MessagePort::sendMessageAtomic(PacketPtr pkt)
{
- return sendAtomic(pkt);
+ Tick latency = sendAtomic(pkt);
+ assert(pkt->isResponse());
+ latency += recvResponse(pkt);
+ return latency;
}