summaryrefslogtreecommitdiff
path: root/configs/example
diff options
context:
space:
mode:
authorKorey Sewell <ksewell@umich.edu>2009-09-16 09:46:26 -0400
committerKorey Sewell <ksewell@umich.edu>2009-09-16 09:46:26 -0400
commit649917411554032c10c695a9b5d51abd858320e5 (patch)
tree35f95dde9daf28762c0fde23a0382a68b16155e0 /configs/example
parent7858a8e68f9fc8e915c812515f816e8a75921d72 (diff)
downloadgem5-649917411554032c10c695a9b5d51abd858320e5.tar.xz
inorder-configs: update se.py
fix bug with 'numThreads=len(workloads)' which was counting characters of command-line not counting threads as intended. Update numThreads for inorder/o3 cases and default to 1 for all other cases.
Diffstat (limited to 'configs/example')
-rw-r--r--configs/example/se.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/configs/example/se.py b/configs/example/se.py
index 67a2340ce..e7fcc8261 100644
--- a/configs/example/se.py
+++ b/configs/example/se.py
@@ -94,8 +94,9 @@ if options.errout != "":
# By default, set workload to path of user-specified binary
workloads = options.cmd
+numThreads = 1
-if options.detailed:
+if options.detailed or options.inorder:
#check for SMT workload
workloads = options.cmd.split(';')
if len(workloads) > 1:
@@ -124,11 +125,12 @@ if options.detailed:
smt_process.errout = errouts[smt_idx]
process += [smt_process, ]
smt_idx += 1
-
+ numThreads = len(workloads)
+
(CPUClass, test_mem_mode, FutureClass) = Simulation.setCPUClass(options)
CPUClass.clock = '2GHz'
-CPUClass.numThreads = len(workloads)
+CPUClass.numThreads = numThreads;
np = options.num_cpus