python: Move native wrappers to the _m5 namespace
authorAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 27 Jan 2017 12:40:01 +0000 (12:40 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 27 Jan 2017 12:40:01 +0000 (12:40 +0000)
commit2974dc7a3771e34542ed5bd1baf88e4ced8cf139
treec60e4620b2ac61d0790c07fabdd802b1107a8976
parente3875215270220e5142a93848f74ccde9d61b244
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>
27 files changed:
src/SConscript
src/python/SConscript
src/python/_m5/__init__.py [new file with mode: 0644]
src/python/m5/SimObject.py
src/python/m5/__init__.py
src/python/m5/core.py
src/python/m5/debug.py
src/python/m5/event.py
src/python/m5/internal/params.py
src/python/m5/params.py
src/python/m5/simulate.py
src/python/m5/stats/__init__.py
src/python/m5/ticks.py
src/python/m5/trace.py
src/python/swig/core.i
src/python/swig/debug.i
src/python/swig/drain.i
src/python/swig/event.i
src/python/swig/pyobject.i
src/python/swig/range.i
src/python/swig/serialize.i
src/python/swig/stats.i
src/python/swig/trace.i
src/unittest/SConscript
src/unittest/stattest.i
src/unittest/stattestmain.py
tests/configs/switcheroo.py