summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2019-05-07 16:45:42 +0800
committerIru Cai <mytbk920423@gmail.com>2019-05-07 16:45:42 +0800
commit3b26d5f86c9a427e6ab9b9fa688b76ab2034a0d2 (patch)
tree81c0db89fc3dbdf4fde90bb3571de5d3c6402ad4
parent470c013495c95af03d70998540d9d2e282a6ba18 (diff)
downloadgem5-3b26d5f86c9a427e6ab9b9fa688b76ab2034a0d2.tar.xz
set cache latency
Change-Id: I4ab87792f2caa93a4553c094b35b1454191a1c44
-rw-r--r--configs/ruby/MESI_Two_Level.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/configs/ruby/MESI_Two_Level.py b/configs/ruby/MESI_Two_Level.py
index 65d711e5e..44118be2d 100644
--- a/configs/ruby/MESI_Two_Level.py
+++ b/configs/ruby/MESI_Two_Level.py
@@ -37,8 +37,13 @@ from Ruby import send_evicts
#
# Declare caches used by the protocol
#
-class L1Cache(RubyCache): pass
-class L2Cache(RubyCache): pass
+class L1Cache(RubyCache):
+ tagAccessLatency = 1
+ dataAccessLatency = 1
+
+class L2Cache(RubyCache):
+ tagAccessLatency = 8
+ dataAccessLatency = 8
def define_options(parser):
return