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.
This commit is contained in:
Andreas Hansson
2015-09-04 13:14:03 -04:00
parent 2c50a83ba2
commit 419d437385

View File

@@ -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;
}
}