aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2013-12-24 12:17:24 +1100
committerAlexander Graf <agraf@suse.de>2014-03-05 03:06:24 +0100
commitca480de66400c4fcaf59100b813e402f9edb08f7 (patch)
treea769eefe71d186dbafddf050faac7f3b94ee432d
parent135a129a1cd047cc913e88c795eda859a0ebb81f (diff)
target-ppc: dump DAR and DSISR
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> Signed-off-by: Alexander Graf <agraf@suse.de>
-rw-r--r--target-ppc/translate.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index c5c1108e92..31f32dfc0e 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -10260,8 +10260,13 @@ void ppc_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf,
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