diff --git a/tests/gem5/configs/riscv_boot_exit_run.py b/tests/gem5/configs/riscv_boot_exit_run.py index 4f0c49ff6c..8add619386 100644 --- a/tests/gem5/configs/riscv_boot_exit_run.py +++ b/tests/gem5/configs/riscv_boot_exit_run.py @@ -159,7 +159,10 @@ root = Root(full_system=True, system=board) m5.instantiate() -exit_event = m5.simulate(args.tick_exit) +if args.tick_exit: + exit_event = m5.simulate(args.tick_exit) +else: + exit_event = m5.simulate() print( "Exiting @ tick {} because {}.".format(m5.curTick(), exit_event.getCause()) )