summaryrefslogtreecommitdiff
path: root/configs/example
diff options
context:
space:
mode:
authorBrad Beckmann <Brad.Beckmann@amd.com>2012-04-06 13:47:06 -0700
committerBrad Beckmann <Brad.Beckmann@amd.com>2012-04-06 13:47:06 -0700
commit0a9f4b950fb52db3951ad1f7aafc674b505d2679 (patch)
tree033bfd48877875c00201058f1a60e679696c9cdf /configs/example
parentb00949d88bb3185dfa2e27799de7f90e5a449be8 (diff)
downloadgem5-0a9f4b950fb52db3951ad1f7aafc674b505d2679.tar.xz
rubytest: seperated read and write ports.
This patch allows the ruby tester to support protocols where the i-cache and d-cache are managed by seperate controllers.
Diffstat (limited to 'configs/example')
-rw-r--r--configs/example/ruby_random_test.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/configs/example/ruby_random_test.py b/configs/example/ruby_random_test.py
index cb6a74776..b4d32b72c 100644
--- a/configs/example/ruby_random_test.py
+++ b/configs/example/ruby_random_test.py
@@ -89,7 +89,8 @@ if buildEnv['PROTOCOL'] == 'MOESI_hammer':
tester = RubyTester(check_flush = check_flush,
checks_to_complete = options.checks,
- wakeup_frequency = options.wakeup_freq)
+ wakeup_frequency = options.wakeup_freq,
+ num_cpus = options.num_cpus)
#
# Create the M5 system. Note that the Memory Object isn't
@@ -110,9 +111,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 each sequencer this is the ruby tester so that it