summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2015-11-06 03:26:44 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2015-11-06 03:26:44 -0500
commit337774e192cb9268244d05e828b395060ba1cefb (patch)
tree27c30faf8622d4d38821c7bf569ac92a578b45a4
parent7433d77fcf74ddcd6052a60e0251a1d5d1a46e44 (diff)
downloadgem5-337774e192cb9268244d05e828b395060ba1cefb.tar.xz
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.
-rw-r--r--configs/example/memtest.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/configs/example/memtest.py b/configs/example/memtest.py
index 354451a61..f8328c582 100644
--- a/configs/example/memtest.py
+++ b/configs/example/memtest.py
@@ -177,7 +177,8 @@ else:
# 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 @@ for scale in cachespec[:-1]:
# 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: