From 07b507d2785f9d7696f980d6556e362392f92fda Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 2 Mar 2011 00:41:44 -0800 Subject: [PATCH] X86: Use the npc as the pc when doing a nativetrace, not what M5 considers the pc. --- src/arch/x86/nativetrace.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/x86/nativetrace.cc b/src/arch/x86/nativetrace.cc index 1999f6611..d1d75387d 100644 --- a/src/arch/x86/nativetrace.cc +++ b/src/arch/x86/nativetrace.cc @@ -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)); -- 2.30.2