summaryrefslogtreecommitdiff
path: root/tests/configs
diff options
context:
space:
mode:
authorBrad Beckmann <Brad.Beckmann@amd.com>2009-11-18 13:55:58 -0800
committerBrad Beckmann <Brad.Beckmann@amd.com>2009-11-18 13:55:58 -0800
commit90d6e2652fc8590116d436a1143700e11893cfa4 (patch)
tree47b58a565a62897fd9fd0d4184409ad1f4c0f713 /tests/configs
parentdce53610c374eba2a8dae236a13b3197cd42edc6 (diff)
downloadgem5-90d6e2652fc8590116d436a1143700e11893cfa4.tar.xz
ruby: included ruby config parameter ports per core
Slightly improved the major hack need to correctly assign the number of ports per core. CPUs have two ports: icache + dcache. MemTester has one port.
Diffstat (limited to 'tests/configs')
-rw-r--r--tests/configs/ruby_config.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/configs/ruby_config.py b/tests/configs/ruby_config.py
index 000b7d23f..fec7bd36c 100644
--- a/tests/configs/ruby_config.py
+++ b/tests/configs/ruby_config.py
@@ -8,7 +8,7 @@ from m5.params import *
def generate(config_file, cores=1, memories=1, memory_size=1024, \
cache_size=32768, cache_assoc=8, dmas=1,
- ruby_tick='1t'):
+ ruby_tick='1t', ports_per_cpu=2):
default = joinpath(dirname(__file__), '../../src/mem/ruby/config')
ruby_config = os.environ.get('RUBY_CONFIG', default)
args = [ "ruby", "-I", ruby_config, joinpath(ruby_config, "print_cfg.rb"),
@@ -25,4 +25,5 @@ def generate(config_file, cores=1, memories=1, memory_size=1024, \
config_file = temp_config,
num_cpus = cores,
range = AddrRange(str(memory_size)+"MB"),
- num_dmas = dmas)
+ num_dmas = dmas,
+ ports_per_core = ports_per_cpu)