summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2010-11-09 10:45:02 -0800
committerGabe Black <gblack@eecs.umich.edu>2010-11-09 10:45:02 -0800
commit2fd9dc19cd3ee50341aa6327afa9a098addfda5c (patch)
tree3bba1499792551602fad01c8be09f37bf76c2096 /src
parent388124492ee0c846b545d47c0e9e6a2603c6f92d (diff)
downloadgem5-2fd9dc19cd3ee50341aa6327afa9a098addfda5c.tar.xz
SimObject: Use "self" when calling the clear_child method.
Diffstat (limited to 'src')
-rw-r--r--src/python/m5/SimObject.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/m5/SimObject.py b/src/python/m5/SimObject.py
index 471647776..61af57fb8 100644
--- 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