sim: fail on implicit creation of orphans via ports
Review Request #75 - Created July 29, 2010 and submitted
Information | |
---|---|
Steve Reinhardt | |
gem5 | |
Reviewers | |
Default | |
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.