Simulation.py (9816:971507cbbe65) | Simulation.py (9867:650fc966ed78) |
---|---|
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 --- 112 unchanged lines hidden (view full) --- 121 122 from os.path import isdir, exists 123 from os import listdir 124 import re 125 126 if not isdir(cptdir): 127 fatal("checkpoint dir %s does not exist!", cptdir) 128 | 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 --- 112 unchanged lines hidden (view full) --- 121 122 from os.path import isdir, exists 123 from os import listdir 124 import re 125 126 if not isdir(cptdir): 127 fatal("checkpoint dir %s does not exist!", cptdir) 128 |
129 cpt_starttick = 0 |
|
129 if options.at_instruction or options.simpoint: 130 inst = options.checkpoint_restore 131 if options.simpoint: 132 # assume workload 0 has the simpoint 133 if testsys.cpu[0].workload[0].simpoint == 0: 134 fatal('Unable to find simpoint') 135 inst += int(testsys.cpu[0].workload[0].simpoint) 136 --- 288 unchanged lines hidden (view full) --- 425 maxtick_from_abs = options.abs_max_tick 426 explicit_maxticks += 1 427 if options.rel_max_tick: 428 maxtick_from_rel = options.rel_max_tick 429 if options.checkpoint_restore: 430 # NOTE: this may need to be updated if checkpoints ever store 431 # the ticks per simulated second 432 maxtick_from_rel += cpt_starttick | 130 if options.at_instruction or options.simpoint: 131 inst = options.checkpoint_restore 132 if options.simpoint: 133 # assume workload 0 has the simpoint 134 if testsys.cpu[0].workload[0].simpoint == 0: 135 fatal('Unable to find simpoint') 136 inst += int(testsys.cpu[0].workload[0].simpoint) 137 --- 288 unchanged lines hidden (view full) --- 426 maxtick_from_abs = options.abs_max_tick 427 explicit_maxticks += 1 428 if options.rel_max_tick: 429 maxtick_from_rel = options.rel_max_tick 430 if options.checkpoint_restore: 431 # NOTE: this may need to be updated if checkpoints ever store 432 # the ticks per simulated second 433 maxtick_from_rel += cpt_starttick |
434 if options.at_instruction or options.simpoint: 435 warn("Relative max tick specified with --at-instruction or" \ 436 " --simpoint\n These options don't specify the " \ 437 "checkpoint start tick, so assuming\n you mean " \ 438 "absolute max tick") |
|
433 explicit_maxticks += 1 434 if options.maxtime: 435 maxtick_from_maxtime = m5.ticks.fromSeconds(options.maxtime) 436 explicit_maxticks += 1 437 if explicit_maxticks > 1: 438 warn("Specified multiple of --abs-max-tick, --rel-max-tick, --maxtime."\ 439 " Using least") 440 maxtick = min([maxtick_from_abs, maxtick_from_rel, maxtick_from_maxtime]) --- 70 unchanged lines hidden --- | 439 explicit_maxticks += 1 440 if options.maxtime: 441 maxtick_from_maxtime = m5.ticks.fromSeconds(options.maxtime) 442 explicit_maxticks += 1 443 if explicit_maxticks > 1: 444 warn("Specified multiple of --abs-max-tick, --rel-max-tick, --maxtime."\ 445 " Using least") 446 maxtick = min([maxtick_from_abs, maxtick_from_rel, maxtick_from_maxtime]) --- 70 unchanged lines hidden --- |