python: Fix native module initialisation on Python 3
authorAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 28 Jan 2019 16:14:41 +0000 (16:14 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 12 Feb 2019 09:38:12 +0000 (09:38 +0000)
commit6ba4545b1f9553e68e992305c92cf46246a79dae
treee109a5ad3a32447725657200ce58e4f159c66750
parent15e497d3f11504f957406feee9797cbf6449fffd
python: Fix native module initialisation on Python 3

The approach we currently use to register our native modules doesn't
work on Python 3. Convert the code to use the Python inittab instead
of the old ad-hoc method.

Change-Id: I961f8a33993c621473732faeaab955a882769a4b
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/15979
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Gabe Black <gabeblack@google.com>
src/sim/init.cc
src/sim/init.hh
src/sim/main.cc