summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-09-24 17:39:56 -0700
committerGabe Black <gblack@eecs.umich.edu>2007-09-24 17:39:56 -0700
commit418ddf43e645133b3693ab8bf2e56656efcf1ebf (patch)
treec88d688929d2f957e174248db793565ce8b3fc6b /src/cpu
parentdd277e0d8f1e0303a74a29bd729864a4766e6f73 (diff)
downloadgem5-418ddf43e645133b3693ab8bf2e56656efcf1ebf.tar.xz
X86: Get X86_FS to compile.
--HG-- extra : convert_revision : fb973bcf13648876d5691231845dd47a2be50f01
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/simple/base.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cpu/simple/base.cc b/src/cpu/simple/base.cc
index d6b124efc..9fc1d1dd9 100644
--- a/src/cpu/simple/base.cc
+++ b/src/cpu/simple/base.cc
@@ -428,11 +428,10 @@ void
BaseSimpleCPU::postExecute()
{
#if FULL_SYSTEM
- if (thread->profile) {
+ if (thread->profile && curStaticInst) {
bool usermode = TheISA::inUserMode(tc);
thread->profilePC = usermode ? 1 : thread->readPC();
- StaticInstPtr si(inst, thread->readPC());
- ProfileNode *node = thread->profile->consume(tc, si);
+ ProfileNode *node = thread->profile->consume(tc, curStaticInst);
if (node)
thread->profileNode = node;
}