Browse files

config: Don't call sys.exit in interactive mode in run()

The run() method in 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.
  • Loading branch information...
andysan committed Feb 10, 2013
1 parent 87ea04a commit 6155400421a478ddb23e377acd6c8db5a32ee468
Showing with 2 additions and 1 deletion.
  1. +2 −1 configs/common/
@@ -507,4 +507,5 @@ def run(options, root, testsys, cpu_class):
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())

0 comments on commit 6155400

Please sign in to comment.