diff options
-rw-r--r-- | src/python/m5/proxy.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/python/m5/proxy.py b/src/python/m5/proxy.py index 5128156df..d28954555 100644 --- a/src/python/m5/proxy.py +++ b/src/python/m5/proxy.py @@ -187,13 +187,15 @@ class AttrProxy(BaseProxy): if hasattr(val, '_visited'): visited = getattr(val, '_visited') - if not visited: + if visited: + return None, False + + if not isproxy(val): # for any additional unproxying to be done, pass the # current, rather than the original object so that proxy # has the right context obj = val - else: - return None, False + except: return None, False while isproxy(val): |