eventq: make python events actually work
authorNathan Binkert <nate@binkert.org>
Tue, 14 Oct 2008 16:34:11 +0000 (09:34 -0700)
committerNathan Binkert <nate@binkert.org>
Tue, 14 Oct 2008 16:34:11 +0000 (09:34 -0700)
src/python/m5/event.py

index 5d50448e75f91f3ab38a11026c8aab1bae02aeeb..2b43e578ec04329110b338e511d4c0721b0283c8 100644 (file)
@@ -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):