summaryrefslogtreecommitdiff
path: root/src/sim
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/clocked_object.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/clocked_object.cc b/src/sim/clocked_object.cc
index f0b176509..ddf9e0f4d 100644
--- a/src/sim/clocked_object.cc
+++ b/src/sim/clocked_object.cc
@@ -90,7 +90,7 @@ ClockedObject::pwrState(Enums::PwrState p)
// same tick if other conditions are not met elsewhere.
// Any state change related stats would have been recorded on previous call
// to the pwrState() function.
- if (prvEvalTick == curTick()) {
+ if (prvEvalTick == curTick() && curTick() != 0) {
warn("ClockedObject: More than one power state change request "\
"encountered within the same simulation tick");
_currPwrState = p;