projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e5a1fa
)
sim: Add a NullSimObject.descendants function.
author
Gabe Black
<gabeblack@google.com>
Mon, 25 Sep 2017 22:53:38 +0000
(15:53 -0700)
committer
Gabe Black
<gabeblack@google.com>
Tue, 26 Sep 2017 21:17:34 +0000
(21:17 +0000)
Null simobjects don't have any descendants.
Change-Id: Ia43a99056709f422c9c817c017912d23d689fb1e
Reviewed-on: https://gem5-review.googlesource.com/4844
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/python/m5/params.py
patch
|
blob
|
history
diff --git
a/src/python/m5/params.py
b/src/python/m5/params.py
index 6c3c47e95ae2e263933f83125bab82628fb9c270..f9412d70ea01ea8af44c7a7b028964e3a68acb5a 100644
(file)
--- a/
src/python/m5/params.py
+++ b/
src/python/m5/params.py
@@
-1716,6
+1716,10
@@
class NullSimObject(object):
def clear_parent(self, old_parent):
pass
+ def descendants(self):
+ return
+ yield None
+
def __str__(self):
return 'Null'