From 969688154d6283648be85d359710f1af326ffe3a Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Sat, 15 Mar 2008 22:20:09 -0400 Subject: Simpoints: Fix regression bug/Don't set process.simpoint, if simpoint doesn't exist --HG-- extra : convert_revision : c156c49668815755c4c788f807e8eba32151aa24 --- configs/common/Simulation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'configs/common/Simulation.py') diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py index 08e700d87..e604dd0d9 100644 --- a/configs/common/Simulation.py +++ b/configs/common/Simulation.py @@ -128,7 +128,7 @@ def run(options, root, testsys, cpu_class): testsys.cpu[i].max_insts_any_thread = int(options.fast_forward) # Fast forward to a simpoint (warning: time consuming) elif options.simpoint: - if testsys.cpu[i].workload[0].simpoint == None: + if testsys.cpu[i].workload[0].simpoint == 0: m5.panic('simpoint not found') testsys.cpu[i].max_insts_any_thread = \ testsys.cpu[i].workload[0].simpoint @@ -162,7 +162,7 @@ def run(options, root, testsys, cpu_class): # Set an instruction break point if options.simpoint: for i in xrange(np): - if testsys.cpu[i].workload[0].simpoint == None: + if testsys.cpu[i].workload[0].simpoint == 0: m5.panic('no simpoint for testsys.cpu[%d].workload[0]' % i) checkpoint_inst = int(testsys.cpu[i].workload[0].simpoint) + offset testsys.cpu[i].max_insts_any_thread = checkpoint_inst @@ -197,7 +197,7 @@ def run(options, root, testsys, cpu_class): print "Done." elif options.simpoint: # assume workload 0 has the simpoint - if testsys.cpu[0].workload[0].simpoint == None: + if testsys.cpu[0].workload[0].simpoint == 0: m5.panic('Unable to find simpoint') options.checkpoint_restore += \ -- cgit v1.2.3 From f4291aac256622546a5a51dce109599007f5b3cb Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Fri, 30 Jan 2009 20:04:15 -0500 Subject: Errors: Print a URL with a hash of the format string to find more information about an error. --- configs/common/Simulation.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'configs/common/Simulation.py') diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py index e604dd0d9..3e4b8ec93 100644 --- a/configs/common/Simulation.py +++ b/configs/common/Simulation.py @@ -78,10 +78,10 @@ def run(options, root, testsys, cpu_class): cptdir = getcwd() if options.fast_forward and options.checkpoint_restore != None: - m5.panic("Error: Can't specify both --fast-forward and --checkpoint-restore") + m5.fatal("Error: Can't specify both --fast-forward and --checkpoint-restore") if options.standard_switch and not options.caches: - m5.panic("Error: Must specify --caches when using --standard-switch") + m5.fatal("Error: Must specify --caches when using --standard-switch") np = options.num_cpus max_checkpoints = options.max_checkpoints @@ -129,7 +129,7 @@ def run(options, root, testsys, cpu_class): # Fast forward to a simpoint (warning: time consuming) elif options.simpoint: if testsys.cpu[i].workload[0].simpoint == 0: - m5.panic('simpoint not found') + m5.fatal('simpoint not found') testsys.cpu[i].max_insts_any_thread = \ testsys.cpu[i].workload[0].simpoint # No distance specified, just switch @@ -163,7 +163,7 @@ def run(options, root, testsys, cpu_class): if options.simpoint: for i in xrange(np): if testsys.cpu[i].workload[0].simpoint == 0: - m5.panic('no simpoint for testsys.cpu[%d].workload[0]' % i) + m5.fatal('no simpoint for testsys.cpu[%d].workload[0]', i) checkpoint_inst = int(testsys.cpu[i].workload[0].simpoint) + offset testsys.cpu[i].max_insts_any_thread = checkpoint_inst # used for output below @@ -183,13 +183,13 @@ def run(options, root, testsys, cpu_class): import re if not isdir(cptdir): - m5.panic("checkpoint dir %s does not exist!" % cptdir) + m5.fatal("checkpoint dir %s does not exist!", cptdir) if options.at_instruction: checkpoint_dir = joinpath(cptdir, "cpt.%s.%s" % \ (options.bench, options.checkpoint_restore)) if not exists(checkpoint_dir): - m5.panic("Unable to find checkpoint directory %s" % \ + m5.fatal("Unable to find checkpoint directory %s", checkpoint_dir) print "Restoring checkpoint ..." @@ -198,7 +198,7 @@ def run(options, root, testsys, cpu_class): elif options.simpoint: # assume workload 0 has the simpoint if testsys.cpu[0].workload[0].simpoint == 0: - m5.panic('Unable to find simpoint') + m5.fatal('Unable to find simpoint') options.checkpoint_restore += \ int(testsys.cpu[0].workload[0].simpoint) @@ -206,8 +206,8 @@ def run(options, root, testsys, cpu_class): checkpoint_dir = joinpath(cptdir, "cpt.%s.%d" % \ (options.bench, options.checkpoint_restore)) if not exists(checkpoint_dir): - m5.panic("Unable to find checkpoint directory %s.%s" % \ - (options.bench, options.checkpoint_restore)) + m5.fatal("Unable to find checkpoint directory %s.%s", + options.bench, options.checkpoint_restore) print "Restoring checkpoint ..." m5.restoreCheckpoint(root,checkpoint_dir) @@ -226,7 +226,7 @@ def run(options, root, testsys, cpu_class): cpt_num = options.checkpoint_restore if cpt_num > len(cpts): - m5.panic('Checkpoint %d not found' % cpt_num) + m5.fatal('Checkpoint %d not found', cpt_num) ## Adjust max tick based on our starting tick maxtick = maxtick - int(cpts[cpt_num - 1]) -- cgit v1.2.3 From cf4a00ca410226d3fd1b4db816938b7ddf78a333 Mon Sep 17 00:00:00 2001 From: Korey Sewell Date: Tue, 10 Feb 2009 15:49:29 -0800 Subject: Configs: Add support for the InOrder CPU model --- configs/common/Simulation.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configs/common/Simulation.py') diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py index 3e4b8ec93..a771710fa 100644 --- a/configs/common/Simulation.py +++ b/configs/common/Simulation.py @@ -43,6 +43,11 @@ def setCPUClass(options): print "O3 CPU must be used with caches" sys.exit(1) class TmpClass(DerivO3CPU): pass + elif options.inorder: + if not options.caches: + print "InOrder CPU must be used with caches" + sys.exit(1) + class TmpClass(InOrderCPU): pass else: class TmpClass(AtomicSimpleCPU): pass atomic = True -- cgit v1.2.3