Change the return value of drain. False means the object wasn't able to drain yet.

src/python/m5/config.py:
    Invert the return value.
src/sim/sim_object.cc:
    Invert the return value of drain.
src/sim/sim_object.hh:
    Change the return value of drain.

--HG--
extra : convert_revision : 41bb122c6f29302d8b3815d7bd6a2ea8fba64df9
This commit is contained in:
Kevin Lim
2006-07-06 13:57:21 -04:00
parent eceba1405a
commit 8c547d80b1
3 changed files with 3 additions and 3 deletions

View 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():