summaryrefslogtreecommitdiff
path: root/configs/common/Simulation.py
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas@sandberg.pp.se>2013-02-10 13:23:54 +0100
committerAndreas Sandberg <andreas@sandberg.pp.se>2013-02-10 13:23:54 +0100
commit6155400421a478ddb23e377acd6c8db5a32ee468 (patch)
tree5ff4e4f73cb5d9f360e4b7369742f43e8ac9d0cf /configs/common/Simulation.py
parent87ea04ab2f8b65f5f353087af107576c2ae788d6 (diff)
downloadgem5-6155400421a478ddb23e377acd6c8db5a32ee468.tar.xz
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 (limited to 'configs/common/Simulation.py')
-rw-r--r--configs/common/Simulation.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py
index b1e243975..c8efd9619 100644
--- a/configs/common/Simulation.py
+++ b/configs/common/Simulation.py
@@ -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())