From: Andreas Hansson Date: Fri, 4 Sep 2015 17:14:03 +0000 (-0400) Subject: mem: Avoid setting markPending if not needed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=419d437385f65d031769136851232550e5b1ba5e;p=gem5.git mem: Avoid setting markPending if not needed In cases where a newly added target does not have any upstream MSHR to mark as downstreamPending, remember that nothing is marked. This allows us to avoid attempting to find the MSHR as part of the clearing of downstreamPending. --- diff --git a/src/mem/cache/mshr.cc b/src/mem/cache/mshr.cc index 5b7eb0c06..085b8dae0 100644 --- a/src/mem/cache/mshr.cc +++ b/src/mem/cache/mshr.cc @@ -101,6 +101,9 @@ MSHR::TargetList::add(PacketPtr pkt, Tick readyTime, if (mshr != NULL) { assert(!mshr->downstreamPending); mshr->downstreamPending = true; + } else { + // No need to clear downstreamPending later + markPending = false; } }