Skip to contentSkip to conversation

Fix logging output for MIPS HI, LO registers

PATCH New Stefan Weil 1 participant 1 message Jul 20, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix logging output for MIPS HI, LO registers

Hello,

the values for MIPS registers HI and LO were wrong in Qemu log output. Please apply my patch to Qemu SVN trunk.

Regards
Stefan

translate.c +2 -1
Index: target-mips/translate.c
===================================================================
@@ -8694,7 +8694,8 @@
     int i;
 
     cpu_fprintf(f, "pc=0x" TARGET_FMT_lx " HI=0x" TARGET_FMT_lx " LO=0x" TARGET_FMT_lx " ds %04x " TARGET_FMT_lx " %d\n",
-                env->active_tc.PC, env->active_tc.HI, env->active_tc.LO, env->hflags, env->btarget, env->bcond);
+                env->active_tc.PC, env->active_tc.HI[0], env->active_tc.LO[0],
+                env->hflags, env->btarget, env->bcond);
     for (i = 0; i < 32; i++) {
         if ((i & 3) == 0)
             cpu_fprintf(f, "GPR%02d:", i);