summaryrefslogtreecommitdiff
path: root/configs/ruby
diff options
context:
space:
mode:
authorBrad Beckmann <Brad.Beckmann@amd.com>2010-08-20 11:46:11 -0700
committerBrad Beckmann <Brad.Beckmann@amd.com>2010-08-20 11:46:11 -0700
commitc7bd896448f43df797ae4bb74c27cbea051df25d (patch)
treee748e54fefd2575d04f734439718ab116a992d4f /configs/ruby
parent5c801090a3e7961fe71c308a629c4529d2dc0de2 (diff)
downloadgem5-c7bd896448f43df797ae4bb74c27cbea051df25d.tar.xz
ruby: added token broadcast config params to cmd options
Diffstat (limited to 'configs/ruby')
-rw-r--r--configs/ruby/MOESI_CMP_token.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/configs/ruby/MOESI_CMP_token.py b/configs/ruby/MOESI_CMP_token.py
index 5d3ddf190..f5777732f 100644
--- a/configs/ruby/MOESI_CMP_token.py
+++ b/configs/ruby/MOESI_CMP_token.py
@@ -45,7 +45,12 @@ class L2Cache(RubyCache):
latency = 15
def define_options(parser):
- return
+ parser.add_option("--l1-retries", type="int", default=1,
+ help="Token_CMP: # of l1 retries before going persistent")
+ parser.add_option("--timeout-latency", type="int", default=300,
+ help="Token_CMP: cycles until issuing again");
+ parser.add_option("--disable-dyn-timeouts", action="store_true",
+ help="Token_CMP: disable dyanimc timeouts, use fixed latency instead")
def create_system(options, phys_mem, piobus, dma_devices):
@@ -99,7 +104,13 @@ def create_system(options, phys_mem, piobus, dma_devices):
L1DcacheMemory = l1d_cache,
l2_select_num_bits = \
math.log(options.num_l2caches, 2),
- N_tokens = n_tokens)
+ N_tokens = n_tokens,
+ retry_threshold = options.l1_retries,
+ fixed_timeout_latency = \
+ options.timeout_latency,
+ dynamic_timeout_enabled = \
+ not options.disable_dyn_timeouts)
+
#
# Add controllers and sequencers to the appropriate lists
#