From 9bc75e3c5872d44c70406382cf22a4da2804ee0c Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Tue, 21 May 2013 11:32:08 -0500 Subject: [PATCH] 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. --- configs/ruby/MOESI_CMP_directory.py | 3 ++- configs/ruby/MOESI_CMP_token.py | 3 ++- 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)