X86: Use the npc as the pc when doing a nativetrace, not what M5 considers the pc.
This commit is contained in:
parent
8966312785
commit
07b507d278
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ X86NativeTrace::ThreadState::update(ThreadContext *tc)
|
||||||
r13 = tc->readIntReg(X86ISA::INTREG_R13);
|
r13 = tc->readIntReg(X86ISA::INTREG_R13);
|
||||||
r14 = tc->readIntReg(X86ISA::INTREG_R14);
|
r14 = tc->readIntReg(X86ISA::INTREG_R14);
|
||||||
r15 = tc->readIntReg(X86ISA::INTREG_R15);
|
r15 = tc->readIntReg(X86ISA::INTREG_R15);
|
||||||
rip = tc->pcState().pc();
|
rip = tc->pcState().npc();
|
||||||
//This should be expanded if x87 registers are considered
|
//This should be expanded if x87 registers are considered
|
||||||
for (int i = 0; i < 8; i++)
|
for (int i = 0; i < 8; i++)
|
||||||
mmx[i] = tc->readFloatRegBits(X86ISA::FLOATREG_MMX(i));
|
mmx[i] = tc->readFloatRegBits(X86ISA::FLOATREG_MMX(i));
|
||||||
|
|
Loading…
Reference in a new issue