config: Avoid generating a reference to myself for Parent.any
authorGeoffrey Blake <Geoffrey.Blake@arm.com>
Fri, 9 May 2014 22:58:47 +0000 (18:58 -0400)
committerGeoffrey Blake <Geoffrey.Blake@arm.com>
Fri, 9 May 2014 22:58:47 +0000 (18:58 -0400)
commit0c1913336af42b6d789fa7738690e64b7784d9df
treef59124a9ed0c0feb3f090324b1688ff8ae2e3641
parent85940fd53795bd4b7b2118f4fa2a59a03bf6a8b1
config: Avoid generating a reference to myself for Parent.any

The unproxy code for Parent.any can generate a circular reference
in certain situations with classes hierarchies like those in ClockDomain.py.
This patch solves this by marking ouself as visited to make sure the
search does not resolve to a self-reference.
src/python/m5/SimObject.py
src/python/m5/proxy.py