From d95890d2a75b0832f5f93f0e098f39213f9da1c0 Mon Sep 17 00:00:00 2001 From: Richard Cooper Date: Thu, 16 Sep 2021 16:04:08 +0100 Subject: [PATCH] python: Fix broken call to m5.fatal in _check_tracing() The call to m5.fatal in _check_tracing() fails because it has not been imported at this point. Change-Id: I60b1de6128d0ffc29e03e9ed98a8f9f679ef0ff9 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/50447 Maintainer: Bobby Bruce Reviewed-by: Bobby Bruce Tested-by: kokoro --- src/python/m5/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python/m5/main.py b/src/python/m5/main.py index d8c9951f6d..b4a3472187 100644 --- a/src/python/m5/main.py +++ b/src/python/m5/main.py @@ -334,12 +334,13 @@ def interact(scope): def _check_tracing(): + import m5 import _m5.core if _m5.core.TRACING_ON: return - fatal("Tracing is not enabled. Compile with TRACING_ON") + m5.fatal("Tracing is not enabled. Compile with TRACING_ON") def main():