From: Nikos Nikoleris Date: Mon, 5 Feb 2018 17:44:51 +0000 (+0000) Subject: mem-cache: Remove unused return value from the recvTimingReq func X-Git-Tag: v19.0.0.0~2189 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=430bef385983db08bb1dd131f6b0ab5ca6d66fbe;p=gem5.git mem-cache: Remove unused return value from the recvTimingReq func The recvTimingReq function in the cache always returns true. This changeset removes the return value. Change-Id: I00dddca65ee7224ecfa579ea5195c841dac02972 Reviewed-on: https://gem5-review.googlesource.com/8289 Maintainer: Nikos Nikoleris Reviewed-by: Daniel Carvalho --- diff --git a/src/mem/cache/cache.cc b/src/mem/cache/cache.cc index cbc0ed90a..c03b5b2a8 100644 --- a/src/mem/cache/cache.cc +++ b/src/mem/cache/cache.cc @@ -648,7 +648,7 @@ Cache::promoteWholeLineWrites(PacketPtr pkt) } } -bool +void Cache::recvTimingReq(PacketPtr pkt) { DPRINTF(CacheTags, "%s tags:\n%s\n", __func__, tags->print()); @@ -660,7 +660,7 @@ Cache::recvTimingReq(PacketPtr pkt) // @todo This should really enqueue the packet rather bool M5_VAR_USED success = memSidePort->sendTimingReq(pkt); assert(success); - return true; + return; } promoteWholeLineWrites(pkt); @@ -730,7 +730,7 @@ Cache::recvTimingReq(PacketPtr pkt) // and we have already sent out any express snoops in the // section above to ensure all other copies in the system are // invalidated - return true; + return; } // anything that is merely forwarded pays for the forward latency and @@ -976,8 +976,6 @@ Cache::recvTimingReq(PacketPtr pkt) if (next_pf_time != MaxTick) schedMemSideSendEvent(next_pf_time); - - return true; } PacketPtr @@ -2770,13 +2768,11 @@ Cache::CpuSidePort::recvTimingReq(PacketPtr pkt) assert(!cache->system->bypassCaches()); // always let express snoop packets through if even if blocked - if (pkt->isExpressSnoop()) { - bool M5_VAR_USED bypass_success = cache->recvTimingReq(pkt); - assert(bypass_success); + if (pkt->isExpressSnoop() || tryTiming(pkt)) { + cache->recvTimingReq(pkt); return true; } - - return tryTiming(pkt) && cache->recvTimingReq(pkt); + return false; } Tick diff --git a/src/mem/cache/cache.hh b/src/mem/cache/cache.hh index 4d840be27..7d282790f 100644 --- a/src/mem/cache/cache.hh +++ b/src/mem/cache/cache.hh @@ -350,9 +350,8 @@ class Cache : public BaseCache /** * Performs the access specified by the request. * @param pkt The request to perform. - * @return The result of the access. */ - bool recvTimingReq(PacketPtr pkt); + void recvTimingReq(PacketPtr pkt); /** * Insert writebacks into the write buffer