summaryrefslogtreecommitdiff
path: root/src/python/m5/event.py
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2017-01-27 12:40:01 +0000
committerAndreas Sandberg <andreas.sandberg@arm.com>2017-01-27 12:40:01 +0000
commit2974dc7a3771e34542ed5bd1baf88e4ced8cf139 (patch)
treec60e4620b2ac61d0790c07fabdd802b1107a8976 /src/python/m5/event.py
parente3875215270220e5142a93848f74ccde9d61b244 (diff)
downloadgem5-2974dc7a3771e34542ed5bd1baf88e4ced8cf139.tar.xz
python: Move native wrappers to the _m5 namespace
Swig wrappers for native objects currently share the _m5.internal name space with Python code. This is undesirable if we ever want to switch from Swig to some other framework for native binding (e.g., PyBind11 or Boost::Python). This changeset moves all of such wrappers to the _m5 namespace, which is now reserved for native code. Change-Id: I2d2bc12dbc05b57b7c5a75f072e08124413d77f3 Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Curtis Dunham <curtis.dunham@arm.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/python/m5/event.py')
-rw-r--r--src/python/m5/event.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/python/m5/event.py b/src/python/m5/event.py
index 76fc37042..41daa8d3e 100644
--- a/src/python/m5/event.py
+++ b/src/python/m5/event.py
@@ -29,9 +29,9 @@
# Authors: Nathan Binkert
import m5
-import internal.event
+import _m5.event
-from internal.event import PythonEvent, GlobalSimLoopExitEvent as SimExit
+from _m5.event import PythonEvent, GlobalSimLoopExitEvent as SimExit
mainq = None
@@ -61,9 +61,9 @@ class ProgressEvent(Event):
self.eventq.schedule(self, m5.curTick() + self.period)
def getEventQueue(index):
- return internal.event.getEventQueue(index)
+ return _m5.event.getEventQueue(index)
def setEventQueue(eventq):
- internal.event.curEventQueue(eventq)
+ _m5.event.curEventQueue(eventq)
__all__ = [ 'create', 'Event', 'ProgressEvent', 'SimExit', 'mainq' ]