Gabe Black has submitted this change and it was merged. (
https://gem5-review.googlesource.com/4840 )
Change subject: sim: Add a set_parent to NullSimObject which does nothing.
......................................................................
sim: Add a set_parent to NullSimObject which does nothing.
This lets attempts to set_parent on NullSimObject fall away harmlessly
without having to add a bunch of checks whenever set_parent is called.
Change-Id: I6d3510772ba71e765c4739e486e9f3d2460c4e11
Reviewed-on: https://gem5-review.googlesource.com/4840
Reviewed-by: Jason Lowe-Power <[email protected]>
Maintainer: Gabe Black <[email protected]>
---
M src/python/m5/params.py
1 file changed, 3 insertions(+), 0 deletions(-)
Approvals:
Jason Lowe-Power: Looks good to me, approved
Gabe Black: Looks good to me, approved
diff --git a/src/python/m5/params.py b/src/python/m5/params.py
index 776fbe2..b49f811 100644
--- a/src/python/m5/params.py
+++ b/src/python/m5/params.py
@@ -1710,6 +1710,9 @@
def set_path(self, parent, name):
pass
+ def set_parent(self, parent, name):
+ pass
+
def __str__(self):
return 'Null'
--
To view, visit https://gem5-review.googlesource.com/4840
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I6d3510772ba71e765c4739e486e9f3d2460c4e11
Gerrit-Change-Number: 4840
Gerrit-PatchSet: 2
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev