projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3881244
)
SimObject: Use "self" when calling the clear_child method.
author
Gabe Black
<gblack@eecs.umich.edu>
Tue, 9 Nov 2010 18:45:02 +0000
(10:45 -0800)
committer
Gabe Black
<gblack@eecs.umich.edu>
Tue, 9 Nov 2010 18:45:02 +0000
(10:45 -0800)
src/python/m5/SimObject.py
patch
|
blob
|
history
diff --git
a/src/python/m5/SimObject.py
b/src/python/m5/SimObject.py
index 4716477760b80221c2f6c26234dc4de2d6134216..61af57fb81c2fc83eb341cb5b53e90bce1ebc259 100644
(file)
--- a/
src/python/m5/SimObject.py
+++ b/
src/python/m5/SimObject.py
@@
-666,7
+666,7
@@
class SimObject(object):
"add_child('%s'): child '%s' already has parent '%s'" % \
(name, child._name, child._parent)
if self._children.has_key(name):
- clear_child(name)
+
self.
clear_child(name)
child.set_parent(self, name)
self._children[name] = child