changeset 6ef7d715d583 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=6ef7d715d583
description:
        config: Update memtest to stress test clean writebacks

        This patch adds yet another twist to the memtest cache hierarchy, in 
that
        the writeback_clean option is toggled at every level to match the
        clusivity of the downstream cache.

diffstat:

 configs/example/memtest.py |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 929fd978ab4e -r 6ef7d715d583 configs/example/memtest.py
--- a/configs/example/memtest.py        Fri Nov 06 03:26:43 2015 -0500
+++ b/configs/example/memtest.py        Fri Nov 06 03:26:44 2015 -0500
@@ -177,7 +177,8 @@
 # Define a prototype L1 cache that we scale for all successive levels
 proto_l1 = Cache(size = '32kB', assoc = 4,
                  hit_latency = 1, response_latency = 1,
-                 tgts_per_mshr = 8, clusivity = 'mostly_incl')
+                 tgts_per_mshr = 8, clusivity = 'mostly_incl',
+                 writeback_clean = True)
 
 if options.blocking:
      proto_l1.mshrs = 1
@@ -201,6 +202,7 @@
      # Swap the inclusivity/exclusivity at each level. L2 is mostly
      # exclusive with respect to L1, L3 mostly inclusive, L4 mostly
      # exclusive etc.
+     next.writeback_clean = not prev.writeback_clean
      if (prev.clusivity.value == 'mostly_incl'):
           next.clusivity = 'mostly_excl'
      else:
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to