qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] target-ppc: dump DAR and DSISR
@ 2013-12-24  1:17 Anton Blanchard
  2013-12-29 16:32 ` Alexander Graf
  0 siblings, 1 reply; 2+ messages in thread
From: Anton Blanchard @ 2013-12-24  1:17 UTC (permalink / raw)
  To: agraf; +Cc: qemu-ppc, qemu-devel


The DAR and DSISR can be very useful when debugging issues, so add
them to ppc_cpu_dump_state. We had another bug in this area: all
of the v2.06 MMU types were missing.

Signed-off-by: Anton Blanchard <anton@samba.org>
---

Index: b/target-ppc/translate.c
===================================================================
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -9861,8 +9861,13 @@ void ppc_cpu_dump_state(CPUState *cs, FI
     case POWERPC_MMU_SOFT_74xx:
 #if defined(TARGET_PPC64)
     case POWERPC_MMU_64B:
+    case POWERPC_MMU_2_06:
+    case POWERPC_MMU_2_06a:
+    case POWERPC_MMU_2_06d:
 #endif
-        cpu_fprintf(f, " SDR1 " TARGET_FMT_lx "\n", env->spr[SPR_SDR1]);
+        cpu_fprintf(f, " SDR1 " TARGET_FMT_lx "   DAR " TARGET_FMT_lx
+                       "  DSISR " TARGET_FMT_lx "\n", env->spr[SPR_SDR1],
+                    env->spr[SPR_DAR], env->spr[SPR_DSISR]);
         break;
     case POWERPC_MMU_BOOKE206:
         cpu_fprintf(f, " MAS0 " TARGET_FMT_lx "  MAS1 " TARGET_FMT_lx

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] target-ppc: dump DAR and DSISR
  2013-12-24  1:17 [Qemu-devel] [PATCH] target-ppc: dump DAR and DSISR Anton Blanchard
@ 2013-12-29 16:32 ` Alexander Graf
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Graf @ 2013-12-29 16:32 UTC (permalink / raw)
  To: Anton Blanchard; +Cc: qemu-ppc, QEMU Developers


On 24.12.2013, at 02:17, Anton Blanchard <anton@samba.org> wrote:

> 
> The DAR and DSISR can be very useful when debugging issues, so add
> them to ppc_cpu_dump_state. We had another bug in this area: all
> of the v2.06 MMU types were missing.
> 
> Signed-off-by: Anton Blanchard <anton@samba.org>

Thanks, applied to ppc-next.


Alex

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-29 16:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-24  1:17 [Qemu-devel] [PATCH] target-ppc: dump DAR and DSISR Anton Blanchard
2013-12-29 16:32 ` Alexander Graf

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).