changeset ad76a669e9d9 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=ad76a669e9d9
description:
ruby: remove the cpu assumptions for the random tester
diffstat:
configs/example/ruby_random_test.py | 5 +++--
src/cpu/testers/rubytest/CheckTable.cc | 1 +
2 files changed, 4 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r 66b2e1ce53da -r ad76a669e9d9 configs/example/ruby_random_test.py
--- a/configs/example/ruby_random_test.py Tue Jul 10 22:51:54 2012 -0700
+++ b/configs/example/ruby_random_test.py Tue Jul 10 22:51:54 2012 -0700
@@ -90,8 +90,7 @@
tester = RubyTester(check_flush = check_flush,
checks_to_complete = options.checks,
- wakeup_frequency = options.wakeup_freq,
- num_cpus = options.num_cpus)
+ wakeup_frequency = options.wakeup_freq)
#
# Create the M5 system. Note that the Memory Object isn't
@@ -104,6 +103,8 @@
assert(options.num_cpus == len(system.ruby._cpu_ruby_ports))
+tester.num_cpus = len(system.ruby._cpu_ruby_ports)
+
#
# The tester is most effective when randomization is turned on and
# artifical delay is randomly inserted on messages
diff -r 66b2e1ce53da -r ad76a669e9d9 src/cpu/testers/rubytest/CheckTable.cc
--- a/src/cpu/testers/rubytest/CheckTable.cc Tue Jul 10 22:51:54 2012 -0700
+++ b/src/cpu/testers/rubytest/CheckTable.cc Tue Jul 10 22:51:54 2012 -0700
@@ -106,6 +106,7 @@
Check*
CheckTable::getRandomCheck()
{
+ assert(m_check_vector.size() > 0);
return m_check_vector[random() % m_check_vector.size()];
}
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev