Change the return value of drain. False means the object wasn't able to drain yet.
[gem5.git] / src / python / m5 / config.py
index cffe06984858afc7d916a6177e25777e2cf0253a..8291e1e1bd91b6a005ec3328887edad0aed5b727 100644 (file)
@@ -547,7 +547,7 @@ class SimObject(object):
         count = 0
         # ParamContexts don't serialize
         if isinstance(self, SimObject) and not isinstance(self, ParamContext):
-            if self._ccObject.drain(drain_event):
+            if not self._ccObject.drain(drain_event):
                 count = 1
         if recursive:
             for child in self._children.itervalues():