summaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2006-07-06 13:57:21 -0400
committerKevin Lim <ktlim@umich.edu>2006-07-06 13:57:21 -0400
commit8c547d80b1a091f41f5516f58ad7368181fe4041 (patch)
tree36f571d3a1ff2698edc4c09fb03180699425f1a5 /src/python
parenteceba1405a70db1a1bc5538af99baca8fef422b6 (diff)
downloadgem5-8c547d80b1a091f41f5516f58ad7368181fe4041.tar.xz
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
Diffstat (limited to 'src/python')
-rw-r--r--src/python/m5/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/m5/config.py b/src/python/m5/config.py
index cffe06984..8291e1e1b 100644
--- a/src/python/m5/config.py
+++ b/src/python/m5/config.py
@@ -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():