python: Remove unnecessary exports from pybind enums
authorNikos Nikoleris <nikos.nikoleris@arm.com>
Mon, 24 Feb 2020 17:00:09 +0000 (19:00 +0200)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Mon, 2 Mar 2020 08:01:07 +0000 (08:01 +0000)
commit2dc6fc97e96995bbb16f5f2237c3b5c11de82dc4
treebf3ebe93bb0648faf30de9cca33ad12c8e37d228
parent522b0c6a20c762e913d0d87c6f7d1af7c25feb46
python: Remove unnecessary exports from pybind enums

According to pybind documentation [1], enum entries use
.export_values() to export the enum entries into the parent
scope. However, strongly typed C++11 class enums are in their own
scope and therefore do not need to be exported.

[1]: https://pybind11.readthedocs.io/en/stable/classes.html#enume
rations-and-internal-types

Change-Id: I6181306b530d59eaedcb3daf9cab0a03d01d56f4
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25709
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/python/m5/params.py