prvEvalTick(0)
{
// Register the power_model with the object
- if (p->power_model)
- p->power_model->setClockedObject(this);
+ for (auto & power_model: p->power_model)
+ power_model->setClockedObject(this);
}
void
// 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()) {
- warn("ClockedObject: More than one power state change request "\
- "encountered within the same simulation tick");
+ if (prvEvalTick == curTick() && curTick() != 0) {
+ warn("ClockedObject %s: More than one power state change request "\
+ "encountered within the same simulation tick %d",
+ name(), prvEvalTick);
_currPwrState = p;
return;
}