summaryrefslogtreecommitdiff
path: root/src/mem/cache
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2015-09-04 13:14:03 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2015-09-04 13:14:03 -0400
commit419d437385f65d031769136851232550e5b1ba5e (patch)
tree46900dcc57b8e736211ccc46363bd327ed866893 /src/mem/cache
parent2c50a83ba2482ed8fe69de008b0135056b14e10b (diff)
downloadgem5-419d437385f65d031769136851232550e5b1ba5e.tar.xz
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.
Diffstat (limited to 'src/mem/cache')
-rw-r--r--src/mem/cache/mshr.cc3
1 files changed, 3 insertions, 0 deletions
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;
}
}