Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/4844
Change subject: sim: Add a NullSimObject.descendants function.
......................................................................
sim: Add a NullSimObject.descendants function.
Null simobjects don't have any descendants.
Change-Id: Ia43a99056709f422c9c817c017912d23d689fb1e
---
M src/python/m5/params.py
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/python/m5/params.py b/src/python/m5/params.py
index 6c3c47e..f9412d7 100644
--- a/src/python/m5/params.py
+++ b/src/python/m5/params.py
@@ -1716,6 +1716,10 @@
def clear_parent(self, old_parent):
pass
+ def descendants(self):
+ return
+ yield None
+
def __str__(self):
return 'Null'
--
To view, visit https://gem5-review.googlesource.com/4844
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia43a99056709f422c9c817c017912d23d689fb1e
Gerrit-Change-Number: 4844
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev