Python: Make the All proxy traverse SimObject children as well
authorAndreas Hansson <andreas.hansson@arm.com>
Thu, 5 Apr 2012 14:44:35 +0000 (10:44 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Thu, 5 Apr 2012 14:44:35 +0000 (10:44 -0400)
commitaab2001ab7a8196eb01be1a05977400fed8d8d79
treef6767b7fb540f1e3f45fc0a28f68955381ff8c48
parenta8e6adb0b1284e89a63bcb14fe1fdace2b89e0c8
Python: Make the All proxy traverse SimObject children as well

This patch changes the behaviour of the All proxy parameter to not
only consider the direct children, but also do a pre-order depth-first
traversal of the object tree and append all results from the
children.

This is used in a later patch to find all the memories in the system,
independent of where they are located in the hierarchy.
src/python/m5/SimObject.py
src/python/m5/proxy.py