From 419d437385f65d031769136851232550e5b1ba5e Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Fri, 4 Sep 2015 13:14:03 -0400 Subject: 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. --- src/mem/cache/mshr.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; } } -- cgit v1.2.3