summaryrefslogtreecommitdiff
path: root/src/sim
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/sim
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/sim')
-rw-r--r--src/sim/sim_object.cc2
-rw-r--r--src/sim/sim_object.hh2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/sim/sim_object.cc b/src/sim/sim_object.cc
index 655bdcf4e..a0278dba0 100644
--- a/src/sim/sim_object.cc
+++ b/src/sim/sim_object.cc
@@ -277,7 +277,7 @@ SimObject::drain(Event *drain_event)
"in timing mode!");
}
state = DrainedAtomic;
- return false;
+ return true;
}
void
diff --git a/src/sim/sim_object.hh b/src/sim/sim_object.hh
index 4833192d6..7ecc00958 100644
--- a/src/sim/sim_object.hh
+++ b/src/sim/sim_object.hh
@@ -116,7 +116,7 @@ class SimObject : public Serializable, protected StartupCallback
// Methods to drain objects in order to take checkpoints
// Or switch from timing -> atomic memory model
- // Quiesce returns true if the SimObject cannot quiesce immediately.
+ // Drain returns false if the SimObject cannot drain immediately.
virtual bool drain(Event *drain_event);
virtual void resume();
virtual void setMemoryMode(State new_mode);