Searched hist:11548 (Results 1 - 3 of 3) sorted by relevance
/gem5/src/sim/ | ||
H A D | init.hh | diff 11548:91f58918a76a Tue Jun 28 03:50:00 EDT 2016 Andreas Hansson <andreas.hansson@arm.com> scons: Track swig packages when loading embedded swig code This patch changes how the embedded swig code is loaded to ensure that gem5 works with swig 3.0.9. For Python 2.7 and above, swig 3.0.9 now relies on importlib, and actually looks in the appropriate packages, even for the wrapped C code. However, the swig wrapper does not explicitly place the module in the right package (it just calls Py_InitModule), and we have to take explicit action to ensure that the swig code can be loaded. This patch adds the information to the generated wrappers and the appropriate calls to set the context as part of the swig initialisation. Previous versions of swig used to fall back on looking in the global namespace for the wrappers (and still do for Python 2.6), but technically things should not work without the functionality in this patch. |
H A D | init.cc | diff 11548:91f58918a76a Tue Jun 28 03:50:00 EDT 2016 Andreas Hansson <andreas.hansson@arm.com> scons: Track swig packages when loading embedded swig code This patch changes how the embedded swig code is loaded to ensure that gem5 works with swig 3.0.9. For Python 2.7 and above, swig 3.0.9 now relies on importlib, and actually looks in the appropriate packages, even for the wrapped C code. However, the swig wrapper does not explicitly place the module in the right package (it just calls Py_InitModule), and we have to take explicit action to ensure that the swig code can be loaded. This patch adds the information to the generated wrappers and the appropriate calls to set the context as part of the swig initialisation. Previous versions of swig used to fall back on looking in the global namespace for the wrappers (and still do for Python 2.6), but technically things should not work without the functionality in this patch. |
/gem5/src/ | ||
H A D | SConscript | diff 11548:91f58918a76a Tue Jun 28 03:50:00 EDT 2016 Andreas Hansson <andreas.hansson@arm.com> scons: Track swig packages when loading embedded swig code This patch changes how the embedded swig code is loaded to ensure that gem5 works with swig 3.0.9. For Python 2.7 and above, swig 3.0.9 now relies on importlib, and actually looks in the appropriate packages, even for the wrapped C code. However, the swig wrapper does not explicitly place the module in the right package (it just calls Py_InitModule), and we have to take explicit action to ensure that the swig code can be loaded. This patch adds the information to the generated wrappers and the appropriate calls to set the context as part of the swig initialisation. Previous versions of swig used to fall back on looking in the global namespace for the wrappers (and still do for Python 2.6), but technically things should not work without the functionality in this patch. |
Completed in 69 milliseconds