summaryrefslogtreecommitdiff
path: root/tests/configs/rubytest-ruby.py
diff options
context:
space:
mode:
authorBrad Beckmann <Brad.Beckmann@amd.com>2012-04-06 16:16:24 -0700
committerBrad Beckmann <Brad.Beckmann@amd.com>2012-04-06 16:16:24 -0700
commit697fd8987b77fb7bfe1ee88fa4591d5c6215d7bc (patch)
tree85106808ca28583db4ae6266b376649d62e5e5af /tests/configs/rubytest-ruby.py
parent8c1494112f7b0a2f8c92373da70c2daf880c56b1 (diff)
downloadgem5-697fd8987b77fb7bfe1ee88fa4591d5c6215d7bc.tar.xz
regress: ruby random tester and hammer stats updates
Diffstat (limited to 'tests/configs/rubytest-ruby.py')
-rw-r--r--tests/configs/rubytest-ruby.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/configs/rubytest-ruby.py b/tests/configs/rubytest-ruby.py
index 979295cf5..7af206af8 100644
--- a/tests/configs/rubytest-ruby.py
+++ b/tests/configs/rubytest-ruby.py
@@ -74,7 +74,7 @@ if buildEnv['PROTOCOL'] == 'MOESI_hammer':
# create the tester and system, including ruby
#
tester = RubyTester(check_flush = check_flush, checks_to_complete = 100,
- wakeup_frequency = 10)
+ wakeup_frequency = 10, num_cpus = options.num_cpus)
system = System(tester = tester, physmem = SimpleMemory())
@@ -90,9 +90,12 @@ system.ruby.randomization = True
for ruby_port in system.ruby._cpu_ruby_ports:
#
- # Tie the ruby tester ports to the ruby cpu ports
+ # Tie the ruby tester ports to the ruby cpu read and write ports
#
- tester.cpuPort = ruby_port.slave
+ if ruby_port.support_data_reqs:
+ tester.cpuDataPort = ruby_port.slave
+ if ruby_port.support_inst_reqs:
+ tester.cpuInstPort = ruby_port.slave
#
# Tell the sequencer this is the ruby tester so that it