summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2010-08-17 05:06:22 -0700
committerSteve Reinhardt <steve.reinhardt@amd.com>2010-08-17 05:06:22 -0700
commitc2cce96a0bb4878a9e6a4ae635096b5ce62e41c3 (patch)
treee4e9a5b2f49de0209dd9f5bf871266a8432d7248 /tests
parent1fbe466345b43caabece9730c1f0456f1b57b82f (diff)
downloadgem5-c2cce96a0bb4878a9e6a4ae635096b5ce62e41c3.tar.xz
sim: fail on implicit creation of orphans via ports
Orphan SimObjects (not in the config hierarchy) could get created implicitly if they have a port connection to a SimObject that is in the hierarchy. This means that there are objects on the C++ SimObject list (created via the C++ SimObject constructor call) that are unknown to Python and will get skipped if we walk the hierarchy from the Python side (as we are about to do). This patch detects this situation and prints an error message. Also fix the rubytester config script which happened to rely on this behavior.
Diffstat (limited to 'tests')
-rw-r--r--tests/configs/rubytest-ruby.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/configs/rubytest-ruby.py b/tests/configs/rubytest-ruby.py
index 5bdfe39dd..ad217a140 100644
--- a/tests/configs/rubytest-ruby.py
+++ b/tests/configs/rubytest-ruby.py
@@ -70,7 +70,7 @@ execfile(os.path.join(config_root, "configs/common", "Options.py"))
#
tester = RubyTester(checks_to_complete = 100, wakeup_frequency = 10)
-system = System(physmem = PhysicalMemory())
+system = System(tester = tester, physmem = PhysicalMemory())
system.ruby = Ruby.create_system(options, system.physmem)