diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/python/m5/proxy.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/python/m5/proxy.py b/src/python/m5/proxy.py index 8c1a46909..4582b8f09 100644 --- a/src/python/m5/proxy.py +++ b/src/python/m5/proxy.py @@ -151,6 +151,10 @@ class AttrProxy(BaseProxy): def find(self, obj): try: val = getattr(obj, self._attr) + # for any additional unproxying to be done, pass the + # current, rather than the original object so that proxy + # has the right context + obj = val except: return None, False while isproxy(val): |