Skip to contentSkip to conversation

Fix dumping of arm registers

PATCH New Paul Brook 1 participant 1 message Apr 17, 2005

lore
Share & tools
lore

Paul Brook

author
#0 lore raw

PATCH 1/1 Fix dumping of arm registers

The patch below fixes a thinko in the arm cpu state dumping so the FPSCR is only displayed once.

Paul

Index: target-arm/translate.c
===================================================================
RCS file: /cvsroot/qemu/qemu/target-arm/translate.c,v retrieving revision 1.20

translate.c +1 -1
diff -u -p -r1.20 translate.c
@@ -2153,8 +2153,8 @@ void cpu_dump_state(CPUState *env, FILE 
                     i * 2 + 1, (int)s0.i, s0.s,
                     i, (int)(uint32_t)d.l.upper, (int)(uint32_t)d.l.lower,
                     d.d);
-        cpu_fprintf(f, "FPSCR: %08x\n", (int)env->vfp.fpscr);
     }
+    cpu_fprintf(f, "FPSCR: %08x\n", (int)env->vfp.fpscr);
 }
 
 target_ulong cpu_get_phys_page_debug(CPUState *env, target_ulong addr)