qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix logging output for MIPS HI, LO registers
@ 2008-07-20 19:51 Stefan Weil
  0 siblings, 0 replies; only message in thread
From: Stefan Weil @ 2008-07-20 19:51 UTC (permalink / raw)
  To: QEMU Developers

[-- Attachment #1: Type: text/plain, Size: 138 bytes --]

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



[-- Attachment #2: mips_translate.patch --]
[-- Type: text/x-diff, Size: 699 bytes --]

Index: target-mips/translate.c
===================================================================
--- target-mips/translate.c	(Revision 4915)
+++ target-mips/translate.c	(Arbeitskopie)
@@ -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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-20 19:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-20 19:51 [Qemu-devel] [PATCH] Fix logging output for MIPS HI, LO registers Stefan Weil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).