77c77,79
< if (_started)
---
> if (_started) {
> if (starved() && !runToTime)
> scheduleStarvationEvent();
78a81
> }
173,175c176,180
< panic_if(!eq, "Need to schedule starvation event, "
< "but no event manager.\n");
< eq->schedule(&starvationEvent, eq->getCurTick());
---
> Tick now = getCurTick();
> if (initDone)
> eq->schedule(&starvationEvent, now);
> else
> eventsToSchedule[&starvationEvent] = now;
252,254d256
< if (starved() && !runToTime)
< return;
<
255a258,259
> if (starved() && !runToTime)
> scheduleStarvationEvent();