Automated merge with ssh://daystrom.m5sim.org//z/repo/m5
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#
|
||||
# Authors: Nathan Binkert
|
||||
|
||||
import m5
|
||||
import internal.event
|
||||
|
||||
from internal.event import PythonEvent, SimLoopExitEvent as SimExit
|
||||
@@ -41,7 +42,7 @@ class Event(PythonEvent):
|
||||
def __init__(self, priority=None):
|
||||
if priority is None:
|
||||
priority = internal.event.Event.Default_Pri
|
||||
super(PythonEvent, self).__init__(self, priority)
|
||||
super(Event, self).__init__(self, priority)
|
||||
|
||||
class ProgressEvent(Event):
|
||||
def __init__(self, eventq, period):
|
||||
|
||||
@@ -209,7 +209,8 @@ Event::serialize(std::ostream &os)
|
||||
void
|
||||
Event::unserialize(Checkpoint *cp, const string §ion)
|
||||
{
|
||||
assert(!scheduled() && "we used to deschedule these events");
|
||||
if (scheduled())
|
||||
mainEventQueue.deschedule(this);
|
||||
|
||||
UNSERIALIZE_SCALAR(_when);
|
||||
UNSERIALIZE_SCALAR(_priority);
|
||||
@@ -223,8 +224,7 @@ Event::unserialize(Checkpoint *cp, const string §ion)
|
||||
|
||||
if (wasScheduled) {
|
||||
DPRINTF(Config, "rescheduling at %d\n", _when);
|
||||
panic("need to figure out how to unserialize scheduled events");
|
||||
//schedule(_when);
|
||||
mainEventQueue.schedule(this, _when);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user