summaryrefslogtreecommitdiff
path: root/configs/ruby
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2013-05-21 11:32:08 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2013-05-21 11:32:08 -0500
commit9bc75e3c5872d44c70406382cf22a4da2804ee0c (patch)
tree3ee11c00f36930a8e6f194236b8475c5344e2178 /configs/ruby
parent59a7abff29aa5a687e1693f003c20d7e2000c40a (diff)
downloadgem5-9bc75e3c5872d44c70406382cf22a4da2804ee0c.tar.xz
configs: ruby: pass the option use_map to directory controller
The option was not being passed to directory controllers for the protocols MOESI_CMP_token and MOESI_CMP_directory. This was resulting in an error while instantiating the directory controller as it tries to access the wrong type of memory.
Diffstat (limited to 'configs/ruby')
-rw-r--r--configs/ruby/MOESI_CMP_directory.py3
-rw-r--r--configs/ruby/MOESI_CMP_token.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/configs/ruby/MOESI_CMP_directory.py b/configs/ruby/MOESI_CMP_directory.py
index bc8bcf8e7..ea11ee322 100644
--- a/configs/ruby/MOESI_CMP_directory.py
+++ b/configs/ruby/MOESI_CMP_directory.py
@@ -154,7 +154,8 @@ def create_system(options, system, piobus, dma_ports, ruby_system):
cntrl_id = cntrl_count,
directory = \
RubyDirectoryMemory(version = i,
- size = dir_size),
+ size = dir_size,
+ use_map = options.use_map),
memBuffer = mem_cntrl,
ruby_system = ruby_system)
diff --git a/configs/ruby/MOESI_CMP_token.py b/configs/ruby/MOESI_CMP_token.py
index d805e2e8d..d2ed42c51 100644
--- a/configs/ruby/MOESI_CMP_token.py
+++ b/configs/ruby/MOESI_CMP_token.py
@@ -175,7 +175,8 @@ def create_system(options, system, piobus, dma_ports, ruby_system):
cntrl_id = cntrl_count,
directory = \
RubyDirectoryMemory(version = i,
- size = dir_size),
+ use_map = options.use_map,
+ size = dir_size),
memBuffer = mem_cntrl,
l2_select_num_bits = l2_bits,
ruby_system = ruby_system)