SimObject: Use "self" when calling the clear_child method.
authorGabe Black <gblack@eecs.umich.edu>
Tue, 9 Nov 2010 18:45:02 +0000 (10:45 -0800)
committerGabe Black <gblack@eecs.umich.edu>
Tue, 9 Nov 2010 18:45:02 +0000 (10:45 -0800)
src/python/m5/SimObject.py

index 4716477760b80221c2f6c26234dc4de2d6134216..61af57fb81c2fc83eb341cb5b53e90bce1ebc259 100644 (file)
@@ -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