configs: ruby: pass the option use_map to directory controller
authorNilay Vaish <nilay@cs.wisc.edu>
Tue, 21 May 2013 16:32:08 +0000 (11:32 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Tue, 21 May 2013 16:32:08 +0000 (11:32 -0500)
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.

configs/ruby/MOESI_CMP_directory.py
configs/ruby/MOESI_CMP_token.py

index bc8bcf8e7f35610a778b52a5b1e066cfefb14abc..ea11ee32237c6e349e62865f3baf8a2103ee1529 100644 (file)
@@ -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)
 
index d805e2e8d75c18295009e75226b09415ecfc7a02..d2ed42c51880fdb9eb818ff8083bece4a10a3f43 100644 (file)
@@ -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)