diff options
Diffstat (limited to 'src/python/m5/SimObject.py')
-rw-r--r-- | src/python/m5/SimObject.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/python/m5/SimObject.py b/src/python/m5/SimObject.py index 8aa7260e7..14499759c 100644 --- a/src/python/m5/SimObject.py +++ b/src/python/m5/SimObject.py @@ -784,6 +784,11 @@ class SimObject(object): self._parent = parent self._name = name + # Return parent object of this SimObject, not implemented by SimObjectVector + # because the elements in a SimObjectVector may not share the same parent + def get_parent(self): + return self._parent + # Also implemented by SimObjectVector def get_name(self): return self._name |