changeset 61b329833f74 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=61b329833f74
description:
        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:

 src/mem/cache/mshr.cc |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 8539728fd457 -r 61b329833f74 src/mem/cache/mshr.cc
--- a/src/mem/cache/mshr.cc     Fri Sep 04 13:14:01 2015 -0400
+++ b/src/mem/cache/mshr.cc     Fri Sep 04 13:14:03 2015 -0400
@@ -101,6 +101,9 @@
         if (mshr != NULL) {
             assert(!mshr->downstreamPending);
             mshr->downstreamPending = true;
+        } else {
+            // No need to clear downstreamPending later
+            markPending = false;
         }
     }
 
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to