summaryrefslogtreecommitdiff
path: root/src/cpu/simple
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2012-02-10 02:05:31 -0800
committerGabe Black <gblack@eecs.umich.edu>2012-02-10 02:05:31 -0800
commite80ebc308f0e926d2965ddfb37e6d30e14c8c3da (patch)
treeaeb80fbedba5cb6e67b9f7545f4b0be4237b3477 /src/cpu/simple
parentcdb32860b412f37a6c3c6881a81ec2c90876a504 (diff)
downloadgem5-e80ebc308f0e926d2965ddfb37e6d30e14c8c3da.tar.xz
SE/FS: Record the system pointer all the time for the simple CPU.
This pointer was only being stored in code that came from SE mode. The system pointer is always meaningful and available, so it should always be stored.
Diffstat (limited to 'src/cpu/simple')
-rw-r--r--src/cpu/simple/base.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/simple/base.cc b/src/cpu/simple/base.cc
index 945c40b79..02758ac04 100644
--- a/src/cpu/simple/base.cc
+++ b/src/cpu/simple/base.cc
@@ -94,8 +94,8 @@ BaseSimpleCPU::BaseSimpleCPU(BaseSimpleCPUParams *p)
if (FullSystem)
thread = new SimpleThread(this, 0, p->system, p->itb, p->dtb);
else
- thread = new SimpleThread(this, /* thread_num */ 0, p->workload[0],
- p->itb, p->dtb);
+ thread = new SimpleThread(this, /* thread_num */ 0, p->system,
+ p->workload[0], p->itb, p->dtb);
thread->setStatus(ThreadContext::Halted);