diff -r 7d95b650c9b6 -r e62bbcee43c2 configs/common/FSConfig.py --- a/configs/common/FSConfig.py Fri Mar 23 06:54:25 2012 -0400 +++ b/configs/common/FSConfig.py Sat Mar 24 15:19:31 2012 -0500 @@ -510,23 +510,6 @@ self.intel_mp_table.base_entries = base_entries self.intel_mp_table.ext_entries = ext_entries -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 makeLinuxX86System(mem_mode, numCPUs = 1, mdesc = None, Ruby = False): self = LinuxX86System() diff -r 7d95b650c9b6 -r e62bbcee43c2 configs/common/Simulation.py --- a/configs/common/Simulation.py Fri Mar 23 06:54:25 2012 -0400 +++ b/configs/common/Simulation.py Sat Mar 24 15:19:31 2012 -0500 @@ -80,6 +80,21 @@ 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: diff -r 7d95b650c9b6 -r e62bbcee43c2 configs/example/fs.py --- a/configs/example/fs.py Fri Mar 23 06:54:25 2012 -0400 +++ b/configs/example/fs.py Sat Mar 24 15:19:31 2012 -0500 @@ -133,12 +133,12 @@ test_sys = makeSparcSystem(test_mem_mode, bm[0]) elif buildEnv['TARGET_ISA'] == "x86": test_sys = makeLinuxX86System(test_mem_mode, options.num_cpus, bm[0]) - setWorkCountOptions(test_sys, options) + Simulation.setWorkCountOptions(test_sys, options) elif buildEnv['TARGET_ISA'] == "arm": test_sys = makeArmSystem(test_mem_mode, options.machine_type, bm[0], bare_metal=options.bare_metal) - setWorkCountOptions(test_sys, options) + Simulation.setWorkCountOptions(test_sys, options) else: fatal("incapable of building non-alpha or non-sparc full system!") diff -r 7d95b650c9b6 -r e62bbcee43c2 configs/example/ruby_fs.py --- a/configs/example/ruby_fs.py Fri Mar 23 06:54:25 2012 -0400 +++ b/configs/example/ruby_fs.py Sat Mar 24 15:19:31 2012 -0500 @@ -106,7 +106,7 @@ system = makeLinuxAlphaRubySystem(test_mem_mode, bm[0]) elif buildEnv['TARGET_ISA'] == "x86": system = makeLinuxX86System(test_mem_mode, options.num_cpus, bm[0], True) - setWorkCountOptions(system, options) + Simulation.setWorkCountOptions(system, options) else: fatal("incapable of building non-alpha or non-x86 full system!")