Richard Cooper has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/50447 )
Change subject: python: Fix broken call to m5.fatal in _check_tracing()
......................................................................
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
---
M src/python/m5/main.py
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/python/m5/main.py b/src/python/m5/main.py
index 92878af..64faba1 100644
--- a/src/python/m5/main.py
+++ b/src/python/m5/main.py
@@ -205,12 +205,13 @@
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(*args):
import m5
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/50447
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I60b1de6128d0ffc29e03e9ed98a8f9f679ef0ff9
Gerrit-Change-Number: 50447
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Cooper <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s