changeset 2e269d6fb3e6 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=2e269d6fb3e6
description:
        X86: Use the npc as the pc when doing a nativetrace, not what M5 
considers the pc.

diffstat:

 src/arch/x86/nativetrace.cc |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 4a194d4f6fb0 -r 2e269d6fb3e6 src/arch/x86/nativetrace.cc
--- a/src/arch/x86/nativetrace.cc       Wed Mar 02 00:41:38 2011 -0800
+++ b/src/arch/x86/nativetrace.cc       Wed Mar 02 00:41:44 2011 -0800
@@ -85,7 +85,7 @@
     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));
_______________________________________________
m5-dev mailing list
m5-dev@m5sim.org
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to