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>
This commit is contained in:
@@ -46,7 +46,7 @@ UnitTest('strnumtest', 'strnumtest.cc')
|
||||
UnitTest('trietest', 'trietest.cc')
|
||||
|
||||
stattest_py = PySource('m5', 'stattestmain.py', skip_lib=True)
|
||||
stattest_swig = SwigSource('m5.internal', 'stattest.i', skip_lib=True)
|
||||
stattest_swig = SwigSource('_m5', 'stattest.i', skip_lib=True)
|
||||
UnitTest('stattest', 'stattest.cc', stattest_py, stattest_swig, main=True)
|
||||
|
||||
UnitTest('symtest', 'symtest.cc')
|
||||
|
||||
Reference in New Issue
Block a user