summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2017-05-08 16:53:29 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2017-05-09 15:26:47 +0000
commit7f3e8d056c00c2e3207c532859d32577c9655e66 (patch)
treeb671f13d6b437a161c9c3961b173776cc386d748
parent212a71e99e113b0b8ddf2d92516fae362a2c7489 (diff)
downloadgem5-7f3e8d056c00c2e3207c532859d32577c9655e66.tar.xz
python: Fix debug flag listing regression
The PyBind11 changes slightly modified gem5's internal debug interfaces. The corresponding change to the public API went missing before the new bindings were merged. This change updates the Python glue to use the new interface. Change-Id: I3ecca5a3f6c35b99d55126d697371124f81a12dd Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Matteo Andreozzi <matteo.andreozzi@arm.com> Reviewed-on: https://gem5-review.googlesource.com/3140 Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
-rw-r--r--src/python/m5/debug.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/m5/debug.py b/src/python/m5/debug.py
index 75566decd..839c32d98 100644
--- a/src/python/m5/debug.py
+++ b/src/python/m5/debug.py
@@ -65,8 +65,8 @@ class AllFlags(DictMixin):
return
self._dict.clear()
- for flag in _m5.debug.getAllFlags():
- self._dict[flag.name()] = flag
+ for name, flag in _m5.debug.allFlags().items():
+ self._dict[name] = flag
self._version = current_version
def __contains__(self, item):