changeset 8f354c5a1634 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=8f354c5a1634
description:
Checker: Access workload element 0 only if there is an element 0.
diffstat:
src/cpu/checker/cpu.cc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r c36441eed919 -r 8f354c5a1634 src/cpu/checker/cpu.cc
--- a/src/cpu/checker/cpu.cc Tue Feb 07 04:43:21 2012 -0800
+++ b/src/cpu/checker/cpu.cc Tue Feb 07 04:44:01 2012 -0800
@@ -84,7 +84,8 @@
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);
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev