diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2019-02-12 17:04:07 +0000 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2019-02-12 17:21:01 +0000 |
commit | 5cf312eb5bec50ab2142ce4c7df05d673cd9a716 (patch) | |
tree | 9d8e35754cec3c2e94a895687c0046bf80d94e82 | |
parent | 6e08be1ec41342e0710f5335b79cae7986822862 (diff) | |
download | gem5-5cf312eb5bec50ab2142ce4c7df05d673cd9a716.tar.xz |
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 <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/16402
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
-rw-r--r-- | src/python/m5/main.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |