changeset 50da272a1300 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=50da272a1300
description:
config: Don't call sys.exit in interactive mode in run()
The run() method in Simulation.py used to call sys.exit() when the
simulator exits. This is undesirable when user has requested the
simulator to be run in interactive mode since it causes the simulator
to exit rather than entering the interactive Python environment.
diffstat:
configs/common/Simulation.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (10 lines):
diff -r 890fc69ba53c -r 50da272a1300 configs/common/Simulation.py
--- a/configs/common/Simulation.py Thu Jan 31 21:26:29 2013 -0600
+++ b/configs/common/Simulation.py Sun Feb 10 13:23:54 2013 +0100
@@ -507,4 +507,5 @@
if options.checkpoint_at_end:
m5.checkpoint(joinpath(cptdir, "cpt.%d"))
- sys.exit(exit_event.getCode())
+ if not m5.options.interactive:
+ sys.exit(exit_event.getCode())
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev