Simulation.py (12564:2778478ca882) | Simulation.py (12880:cb1fb179e8c8) |
---|---|
1# Copyright (c) 2012-2013 ARM Limited 2# All rights reserved 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 702 unchanged lines hidden (view full) --- 711 else: 712 exit_event = benchCheckpoints(options, maxtick, cptdir) 713 714 print('Exiting @ tick %i because %s' % 715 (m5.curTick(), exit_event.getCause())) 716 if options.checkpoint_at_end: 717 m5.checkpoint(joinpath(cptdir, "cpt.%d")) 718 | 1# Copyright (c) 2012-2013 ARM Limited 2# All rights reserved 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 702 unchanged lines hidden (view full) --- 711 else: 712 exit_event = benchCheckpoints(options, maxtick, cptdir) 713 714 print('Exiting @ tick %i because %s' % 715 (m5.curTick(), exit_event.getCause())) 716 if options.checkpoint_at_end: 717 m5.checkpoint(joinpath(cptdir, "cpt.%d")) 718 |
719 if not m5.options.interactive: 720 sys.exit(exit_event.getCode()) | 719 if exit_event.getCode() != 0: 720 print("Simulated exit code not 0! Exit code is", exit_event.getCode()) |