summaryrefslogtreecommitdiff
path: root/configs/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'configs/ruby')
-rw-r--r--configs/ruby/MESI_Two_Level.py2
-rw-r--r--configs/ruby/Ruby.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/configs/ruby/MESI_Two_Level.py b/configs/ruby/MESI_Two_Level.py
index 844c62af4..fa6d9ccd6 100644
--- a/configs/ruby/MESI_Two_Level.py
+++ b/configs/ruby/MESI_Two_Level.py
@@ -101,7 +101,7 @@ def create_system(options, full_system, system, dma_ports, ruby_system):
ruby_system = ruby_system,
clk_domain = clk_domain,
transitions_per_cycle = options.ports,
- enable_prefetch = False)
+ enable_prefetch = options.enable_prefetch)
cpu_seq = RubySequencer(version = i, icache = l1i_cache,
dcache = l1d_cache, clk_domain = clk_domain,
diff --git a/configs/ruby/Ruby.py b/configs/ruby/Ruby.py
index 04eda5a39..cd7fc567c 100644
--- a/configs/ruby/Ruby.py
+++ b/configs/ruby/Ruby.py
@@ -76,6 +76,9 @@ def define_options(parser):
parser.add_option("--recycle-latency", type="int", default=10,
help="Recycle latency for ruby controller input buffers")
+ parser.add_option("--enable-prefetch", action="store_true", default=False,
+ help="Enable Ruby HW Prefetcher")
+
protocol = buildEnv['PROTOCOL']
exec "import %s" % protocol
eval("%s.define_options(parser)" % protocol)