From 5cf312eb5bec50ab2142ce4c7df05d673cd9a716 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Tue, 12 Feb 2019 17:04:07 +0000 Subject: python: Add missing defines import The _check_tracing helper function in main.py depends on defines to check if tracing has been enabled at compile time. This module is imported in main() but not at the module level, which breaks this function. Change-Id: I26d65a4320da8618e0e552553695884fd2c880e0 Signed-off-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/c/16402 Reviewed-by: Giacomo Travaglini --- src/python/m5/main.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/python/m5') diff --git a/src/python/m5/main.py b/src/python/m5/main.py index 8a259f3d8..08b14641f 100644 --- a/src/python/m5/main.py +++ b/src/python/m5/main.py @@ -193,6 +193,8 @@ def interact(scope): def _check_tracing(): + import defines + if defines.TRACING_ON: return -- cgit v1.2.3