X86: Get X86_FS to compile.

--HG--
extra : convert_revision : fb973bcf13648876d5691231845dd47a2be50f01
This commit is contained in:
Gabe Black
2007-09-24 17:39:56 -07:00
parent dd277e0d8f
commit 418ddf43e6
15 changed files with 942 additions and 260 deletions

View File

@@ -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;
}