diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2012-03-27 18:23:21 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2012-03-27 18:23:21 -0500 |
commit | 6ca3af8ecfa5e6fbc03b01c0eba3de9d6e2f7c45 (patch) | |
tree | 1b506a2bc6dbb1bd08410947ce45073fbab7c7c0 /configs/common/Simulation.py | |
parent | 9d7c715c46f8af4f1c44eada2b7dcb23c55ade3b (diff) | |
download | gem5-6ca3af8ecfa5e6fbc03b01c0eba3de9d6e2f7c45.tar.xz |
Config: Move setWorkCountOptions() to Simulation.py
The function is presently defined in FSConfig.py, which does not seem to be
the correct place for it.
Diffstat (limited to 'configs/common/Simulation.py')
-rw-r--r-- | configs/common/Simulation.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py index b7c2c0fc0..58da9e968 100644 --- a/configs/common/Simulation.py +++ b/configs/common/Simulation.py @@ -80,6 +80,21 @@ def setCPUClass(options): return (TmpClass, test_mem_mode, CPUClass) +def setWorkCountOptions(system, options): + if options.work_item_id != None: + system.work_item_id = options.work_item_id + if options.work_begin_cpu_id_exit != None: + system.work_begin_cpu_id_exit = options.work_begin_cpu_id_exit + if options.work_end_exit_count != None: + system.work_end_exit_count = options.work_end_exit_count + if options.work_end_checkpoint_count != None: + system.work_end_ckpt_count = options.work_end_checkpoint_count + if options.work_begin_exit_count != None: + system.work_begin_exit_count = options.work_begin_exit_count + if options.work_begin_checkpoint_count != None: + system.work_begin_ckpt_count = options.work_begin_checkpoint_count + if options.work_cpus_checkpoint_count != None: + system.work_cpus_ckpt_count = options.work_cpus_checkpoint_count def run(options, root, testsys, cpu_class): if options.maxtick: |