summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2008-10-14 09:34:11 -0700
committerNathan Binkert <nate@binkert.org>2008-10-14 09:34:11 -0700
commit5b07448cf12460090af588b332e813af3419d645 (patch)
tree7aa05e13b5da19c82ab3260a5640edf1ae026bfa /src
parentff2eea1ba3b8716f259075654c7463f9395264d7 (diff)
downloadgem5-5b07448cf12460090af588b332e813af3419d645.tar.xz
eventq: make python events actually work
Diffstat (limited to 'src')
-rw-r--r--src/python/m5/event.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/python/m5/event.py b/src/python/m5/event.py
index 5d50448e7..2b43e578e 100644
--- a/src/python/m5/event.py
+++ b/src/python/m5/event.py
@@ -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):