configs: Update Arm simple configs to enable --interactive option

Removed the calls to `sys.exit()` from the Arm simple configs. These
calls terminate gem5's embedded Python interpreter and gem5 at the end
of the config script, preventing gem5 from dropping into the
interactive IPython shell when the `--interactive` option has been
specified.

Change-Id: I0c350b0d107f297691255361d25c566c889f9469
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/69687
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Richard Cooper
2022-09-09 12:36:43 +01:00
parent c8496d8c4d
commit 80eb8be3cf
3 changed files with 3 additions and 8 deletions

View File

@@ -174,11 +174,9 @@ def run(args):
m5.checkpoint(os.path.join(cpt_dir))
print("Checkpoint done.")
else:
print(exit_msg, " @ ", m5.curTick())
print(f"{exit_msg} ({event.getCode()}) @ {m5.curTick()}")
break
sys.exit(event.getCode())
def main():
parser = argparse.ArgumentParser(epilog=__doc__)

View File

@@ -194,11 +194,9 @@ def run(args):
m5.checkpoint(os.path.join(cpt_dir))
print("Checkpoint done.")
else:
print(exit_msg, " @ ", m5.curTick())
print(f"{exit_msg} ({event.getCode()}) @ {m5.curTick()}")
break
sys.exit(event.getCode())
def main():
parser = argparse.ArgumentParser(epilog=__doc__)

View File

@@ -257,8 +257,7 @@ def main():
# Print the reason for the simulation exit. Some exit codes are
# requests for service (e.g., checkpoints) from the simulation
# script. We'll just ignore them here and exit.
print(event.getCause(), " @ ", m5.curTick())
sys.exit(event.getCode())
print(f"{event.getCause()} ({event.getCode()}) @ {m5.curTick()}")
if __name__ == "__m5_main__":