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():