summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Lowe-Power <jason@lowepower.com>2017-09-21 17:52:00 -0700
committerJason Lowe-Power <jason@lowepower.com>2018-08-17 16:37:42 +0000
commit034315d0c87da9e5a35e00d6debaf4a0adeacf3f (patch)
tree108cffe890abe80ebd52c49588b779e831d5dea7
parenta891159548ef589bc591455421e9770de50e23d4 (diff)
downloadgem5-034315d0c87da9e5a35e00d6debaf4a0adeacf3f.tar.xz
configs: Always exit with code 0
Update simulation.py to always exit with code 0 assuming the simulation exits normally. If the running application has a return code that is non zero, then print the return code before exiting. Change-Id: I1983985d50311627574d4364b32ee961ae88e003 Signed-off-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-on: https://gem5-review.googlesource.com/4880
-rw-r--r--configs/common/Simulation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py
index 6df90cb6c..f306a0358 100644
--- a/configs/common/Simulation.py
+++ b/configs/common/Simulation.py
@@ -716,5 +716,5 @@ def run(options, root, testsys, cpu_class):
if options.checkpoint_at_end:
m5.checkpoint(joinpath(cptdir, "cpt.%d"))
- if not m5.options.interactive:
- sys.exit(exit_event.getCode())
+ if exit_event.getCode() != 0:
+ print("Simulated exit code not 0! Exit code is", exit_event.getCode())