summaryrefslogtreecommitdiff
path: root/src/mem/mport.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/mport.cc')
-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;
}