summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cpu/checker/cpu.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cpu/checker/cpu.cc b/src/cpu/checker/cpu.cc
index c905c62eb..372d00c6f 100644
--- a/src/cpu/checker/cpu.cc
+++ b/src/cpu/checker/cpu.cc
@@ -84,7 +84,8 @@ CheckerCPU::CheckerCPU(Params *p)
systemPtr = NULL;
workload = p->workload;
// XXX: This is a hack to get this to work some
- thread = new SimpleThread(this, /* thread_num */ 0, workload[0], itb, dtb);
+ thread = new SimpleThread(this, /* thread_num */ 0,
+ workload.size() ? workload[0] : NULL, itb, dtb);
tc = thread->getTC();
threadContexts.push_back(tc);