diff options
author | Ciro Santilli <ciro.santilli@arm.com> | 2019-04-15 14:08:49 +0100 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@arm.com> | 2019-04-23 10:21:46 +0000 |
commit | 325acb786e5472841011cebed3cc36e535b413dc (patch) | |
tree | 3ca58a2b76e9f3d3c03f73e4af8793bbd0b1be35 /src/python/m5 | |
parent | c5b3db6da28611280c291d9e0540f087cf55a54e (diff) | |
download | gem5-325acb786e5472841011cebed3cc36e535b413dc.tar.xz |
python: fix tracing after Python 3 refactor
gem5.opt --debug-flags ExecAll
was failing with:
ImportError: No module named defines
on Python 2.
Change-Id: I06959d6e0ccb7c661c7c749af3392632dac779f3
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18108
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/python/m5')
-rw-r--r-- | src/python/m5/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/m5/main.py b/src/python/m5/main.py index fae04e76c..fd1f6a0db 100644 --- a/src/python/m5/main.py +++ b/src/python/m5/main.py @@ -193,7 +193,7 @@ def interact(scope): def _check_tracing(): - import defines + from . import defines if defines.TRACING_ON: return |