eventq: convert all usage of events to use the new API.
For now, there is still a single global event queue, but this is necessary for making the steps towards a parallelized m5.
This commit is contained in:
@@ -695,7 +695,8 @@ Base::cpuIntrPost(Tick when)
|
||||
|
||||
if (intrEvent)
|
||||
intrEvent->squash();
|
||||
intrEvent = new IntrEvent(this, intrTick, true);
|
||||
intrEvent = new IntrEvent(this, true);
|
||||
schedule(intrEvent, intrTick);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -1315,7 +1316,7 @@ Device::transferDone()
|
||||
|
||||
DPRINTF(Ethernet, "transfer complete: data in txFifo...schedule xmit\n");
|
||||
|
||||
txEvent.reschedule(curTick + ticks(1), true);
|
||||
reschedule(txEvent, curTick + ticks(1), true);
|
||||
}
|
||||
|
||||
bool
|
||||
@@ -1455,7 +1456,8 @@ Base::unserialize(Checkpoint *cp, const std::string §ion)
|
||||
Tick intrEventTick;
|
||||
UNSERIALIZE_SCALAR(intrEventTick);
|
||||
if (intrEventTick) {
|
||||
intrEvent = new IntrEvent(this, intrEventTick, true);
|
||||
intrEvent = new IntrEvent(this, true);
|
||||
schedule(intrEvent, intrEventTick);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1705,7 +1707,7 @@ Device::unserialize(Checkpoint *cp, const std::string §ion)
|
||||
Tick transmitTick;
|
||||
UNSERIALIZE_SCALAR(transmitTick);
|
||||
if (transmitTick)
|
||||
txEvent.schedule(curTick + transmitTick);
|
||||
schedule(txEvent, curTick + transmitTick);
|
||||
|
||||
pioPort->sendStatusChange(Port::RangeChange);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user