X86: Use the npc as the pc when doing a nativetrace, not what M5 considers the pc.

This commit is contained in:
Gabe Black 2011-03-02 00:41:44 -08:00
parent 8966312785
commit 07b507d278

View file

@ -85,7 +85,7 @@ X86NativeTrace::ThreadState::update(ThreadContext *tc)
r13 = tc->readIntReg(X86ISA::INTREG_R13);
r14 = tc->readIntReg(X86ISA::INTREG_R14);
r15 = tc->readIntReg(X86ISA::INTREG_R15);
rip = tc->pcState().pc();
rip = tc->pcState().npc();
//This should be expanded if x87 registers are considered
for (int i = 0; i < 8; i++)
mmx[i] = tc->readFloatRegBits(X86ISA::FLOATREG_MMX(i));