diff options
author | Ron Dreslinski <rdreslin@umich.edu> | 2006-10-08 19:05:48 -0400 |
---|---|---|
committer | Ron Dreslinski <rdreslin@umich.edu> | 2006-10-08 19:05:48 -0400 |
commit | e65f0cef3ca70edf37ff74920def4ac899f6c7e3 (patch) | |
tree | 975e458e2e1c5e566810abdfb27375679ff95867 /src/mem/tport.cc | |
parent | 8a539a774ff3ae701e2aa4daae96b5d988c74409 (diff) | |
download | gem5-e65f0cef3ca70edf37ff74920def4ac899f6c7e3.tar.xz |
Only respond if the pkt needs a response.
Fix an issue with memory handling writebacks.
src/mem/cache/base_cache.hh:
src/mem/tport.cc:
Only respond if the pkt needs a response.
src/mem/physical.cc:
Make physical memory respond to writebacks, set satisfied for invalidates/upgrades.
--HG--
extra : convert_revision : 7601987a7923e54a6d1a168def4f8133d8de19fd
Diffstat (limited to 'src/mem/tport.cc')
-rw-r--r-- | src/mem/tport.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mem/tport.cc b/src/mem/tport.cc index 55c301c87..cef7a2a5b 100644 --- a/src/mem/tport.cc +++ b/src/mem/tport.cc @@ -47,9 +47,11 @@ SimpleTimingPort::recvTiming(Packet *pkt) // if we ever added it back. assert(pkt->result != Packet::Nacked); Tick latency = recvAtomic(pkt); - // turn packet around to go back to requester - pkt->makeTimingResponse(); - sendTimingLater(pkt, latency); + // turn packet around to go back to requester if response expected + if (pkt->needsResponse()) { + pkt->makeTimingResponse(); + sendTimingLater(pkt, latency); + } return true; } |