python: Fix debug flag listing regression
authorAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 8 May 2017 15:53:29 +0000 (16:53 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 9 May 2017 15:26:47 +0000 (15:26 +0000)
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>
src/python/m5/debug.py

index 75566decdb5fa5b8e2c8e0d766abedf39ae7d413..839c32d9892e12b8509e58231e84e55e3e1100d8 100644 (file)
@@ -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):