summaryrefslogtreecommitdiff
path: root/src/python/m5
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2017-09-25 15:35:14 -0700
committerGabe Black <gabeblack@google.com>2017-09-26 21:17:07 +0000
commit4e5a1fafb7dd5c5cbfa060c9543a498bc56e8a9e (patch)
treec29d8230dae118044fd9de2676e8f035b9ee8337 /src/python/m5
parentbe7ac177c57452ad3268a5d50ba4f7eb15e96279 (diff)
downloadgem5-4e5a1fafb7dd5c5cbfa060c9543a498bc56e8a9e.tar.xz
sim: Add a clear_parent function to NullSimObject.
Change-Id: I3842176f147997105fcc62aaf9cb93b9896708be Reviewed-on: https://gem5-review.googlesource.com/4843 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/python/m5')
-rw-r--r--src/python/m5/params.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/python/m5/params.py b/src/python/m5/params.py
index 7a28e63c7..6c3c47e95 100644
--- a/src/python/m5/params.py
+++ b/src/python/m5/params.py
@@ -1713,6 +1713,9 @@ class NullSimObject(object):
def set_parent(self, parent, name):
pass
+ def clear_parent(self, old_parent):
+ pass
+
def __str__(self):
return 'Null'