python: Add support for scoped enums
authorNikos Nikoleris <nikos.nikoleris@arm.com>
Mon, 24 Dec 2018 08:59:53 +0000 (08:59 +0000)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Thu, 17 Jan 2019 11:09:08 +0000 (11:09 +0000)
commit8ddec57062bdde7935bb0472f2d993fb0c38c680
treef95f25b83bf565560ec25f51bba3f88661855a20
parentcf0f625b47a8e0334fc3fe8c0c2cdf5aaaf3389e
python: Add support for scoped enums

At the moment gem5 has support for enum params that either generate a
unscoped within the Enums namespace or a struct encapsulated enum. The
Enums namespace is getting quite big and some params have the same
names which results in collisions. This change adds support for the
scoped enums.

Change-Id: I930e1cc3b814081627b653939e75d6c43956a334
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/15395
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
src/python/m5/params.py