diff options
author | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2009-12-16 12:52:56 +0100 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2009-12-16 12:52:56 +0100 |
commit | 17c52a43b44858cf64d4536df3bb87a4458c2b5a (patch) | |
tree | e5ee3ae01a1d1f13e590d6749cd616e668df6e71 /target-microblaze | |
parent | 591d6f1dfdb60ab0a4cc487cd5781fa799dcac4b (diff) |
microblaze: Update debug logs.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'target-microblaze')
-rw-r--r-- | target-microblaze/op_helper.c | 9 | ||||
-rw-r--r-- | target-microblaze/translate.c | 7 |
2 files changed, 14 insertions, 2 deletions
diff --git a/target-microblaze/op_helper.c b/target-microblaze/op_helper.c index a342467d58..7ef3a60d66 100644 --- a/target-microblaze/op_helper.c +++ b/target-microblaze/op_helper.c @@ -80,6 +80,15 @@ void helper_debug(void) int i; qemu_log("PC=%8.8x\n", env->sregs[SR_PC]); + qemu_log("rmsr=%x resr=%x debug[%x] imm=%x iflags=%x\n", + env->sregs[SR_MSR], env->sregs[SR_ESR], + env->debug, env->imm, env->iflags); + qemu_log("btaken=%d btarget=%x mode=%s(saved=%s) eip=%d ie=%d\n", + env->btaken, env->btarget, + (env->sregs[SR_MSR] & MSR_UM) ? "user" : "kernel", + (env->sregs[SR_MSR] & MSR_UMS) ? "user" : "kernel", + (env->sregs[SR_MSR] & MSR_EIP), + (env->sregs[SR_MSR] & MSR_IE)); for (i = 0; i < 32; i++) { qemu_log("r%2.2d=%8.8x ", i, env->regs[i]); if ((i + 1) % 4 == 0) diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c index efa5d56e19..7e849c394f 100644 --- a/target-microblaze/translate.c +++ b/target-microblaze/translate.c @@ -1451,10 +1451,13 @@ void cpu_dump_state (CPUState *env, FILE *f, cpu_fprintf(f, "rmsr=%x resr=%x debug[%x] imm=%x iflags=%x\n", env->sregs[SR_MSR], env->sregs[SR_ESR], env->debug, env->imm, env->iflags); - cpu_fprintf(f, "btaken=%d btarget=%x mode=%s(saved=%s)\n", + cpu_fprintf(f, "btaken=%d btarget=%x mode=%s(saved=%s) eip=%d ie=%d\n", env->btaken, env->btarget, (env->sregs[SR_MSR] & MSR_UM) ? "user" : "kernel", - (env->sregs[SR_MSR] & MSR_UMS) ? "user" : "kernel"); + (env->sregs[SR_MSR] & MSR_UMS) ? "user" : "kernel", + (env->sregs[SR_MSR] & MSR_EIP), + (env->sregs[SR_MSR] & MSR_IE)); + for (i = 0; i < 32; i++) { cpu_fprintf(f, "r%2.2d=%8.8x ", i, env->regs[i]); if ((i + 1) % 4 == 0) |