From: Andreas Hansson Date: Tue, 20 Jan 2015 13:12:01 +0000 (-0500) Subject: mem: Fix bug in cache request retry mechanism X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6096e2f9c11afbb57b78f985f8b8fe7e059821b0;p=gem5.git mem: Fix bug in cache request retry mechanism This patch ensures that inhibited packets that are about to be turned into express snoops do not update the retry flag in the cache. --- diff --git a/src/mem/cache/cache_impl.hh b/src/mem/cache/cache_impl.hh index cb02f7558..62b65fc42 100644 --- a/src/mem/cache/cache_impl.hh +++ b/src/mem/cache/cache_impl.hh @@ -2029,11 +2029,14 @@ Cache::CpuSidePort::recvTimingReq(PacketPtr pkt) bool success = false; - // always let inhibited requests through, even if blocked + // always let inhibited requests through, even if blocked, + // ultimately we should check if this is an express snoop, but at + // the moment that flag is only set in the cache itself if (pkt->memInhibitAsserted()) { - // this should always succeed - success = cache->recvTimingReq(pkt); - assert(success); + // do not change the current retry state + bool M5_VAR_USED bypass_success = cache->recvTimingReq(pkt); + assert(bypass_success); + return true; } else if (blocked || mustSendRetry) { // either already committed to send a retry, or blocked success = false;