summaryrefslogtreecommitdiff
path: root/src/cpu/inorder/cpu.cc
diff options
context:
space:
mode:
authorKorey Sewell <ksewell@umich.edu>2010-01-31 18:25:13 -0500
committerKorey Sewell <ksewell@umich.edu>2010-01-31 18:25:13 -0500
commit0e96798fe0a56936f8590dbd301f2b07a1850e22 (patch)
treeffa02a11f4812012b8d3dd4abd6f71d933e19999 /src/cpu/inorder/cpu.cc
parent7b3b362ba5d2690324abd58c883fd1d5fe4dc767 (diff)
downloadgem5-0e96798fe0a56936f8590dbd301f2b07a1850e22.tar.xz
configs/inorder: add options for switch-on-miss to inorder cpu
Diffstat (limited to 'src/cpu/inorder/cpu.cc')
-rw-r--r--src/cpu/inorder/cpu.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/cpu/inorder/cpu.cc b/src/cpu/inorder/cpu.cc
index 38f6b4eed..a1e6c9c86 100644
--- a/src/cpu/inorder/cpu.cc
+++ b/src/cpu/inorder/cpu.cc
@@ -197,7 +197,7 @@ InOrderCPU::InOrderCPU(Params *params)
deferRegistration(false/*params->deferRegistration*/),
stageTracing(params->stageTracing),
numVirtProcs(1)
-{
+{
ThreadID active_threads;
cpu_params = params;
@@ -216,6 +216,15 @@ InOrderCPU::InOrderCPU(Params *params)
"in your InOrder implementation or "
"edit your workload size.");
}
+
+ if (active_threads > 1) {
+ threadModel = (InOrderCPU::ThreadModel) params->threadModel;
+ } else {
+ threadModel = Single;
+ }
+
+
+
#endif
// Bind the fetch & data ports from the resource pool.