From 7f3e8d056c00c2e3207c532859d32577c9655e66 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Mon, 8 May 2017 16:53:29 +0100 Subject: 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 Reviewed-by: Matteo Andreozzi Reviewed-on: https://gem5-review.googlesource.com/3140 Reviewed-by: Jason Lowe-Power --- src/python/m5/debug.py | 4 ++-- 1 file 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): -- cgit v1.2.3