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:
3
src/mem/cache/mshr.cc
vendored
3
src/mem/cache/mshr.cc
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user