From: Gabe Black Date: Mon, 25 Sep 2017 22:35:14 +0000 (-0700) Subject: sim: Add a clear_parent function to NullSimObject. X-Git-Tag: v19.0.0.0~2624 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4e5a1fafb7dd5c5cbfa060c9543a498bc56e8a9e;p=gem5.git sim: Add a clear_parent function to NullSimObject. Change-Id: I3842176f147997105fcc62aaf9cb93b9896708be Reviewed-on: https://gem5-review.googlesource.com/4843 Reviewed-by: Jason Lowe-Power Maintainer: Gabe Black --- 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'