From a59cb4e02322ac6e276715ef3acb3c84a82206ef Mon Sep 17 00:00:00 2001 From: aliguori Date: Tue, 18 Nov 2008 21:09:47 +0000 Subject: [PATCH] x86: Dump debug registers (Jan Kiszka) As the debug registers are no longer dummies, let's include their current state into the 'info registers' output and other register dumps. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5748 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-i386/helper.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/target-i386/helper.c b/target-i386/helper.c index 0cfef44e64..2a61cb0cc8 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -644,6 +644,10 @@ void cpu_dump_state(CPUState *env, FILE *f, env->cr[2], env->cr[3], (uint32_t)env->cr[4]); + for(i = 0; i < 4; i++) + cpu_fprintf(f, "DR%d=%016" PRIx64 " ", i, env->dr[i]); + cpu_fprintf(f, "\nDR6=%016" PRIx64 " DR7=%016" PRIx64 "\n", + env->dr[6], env->cr[7]); } else #endif { @@ -675,6 +679,9 @@ void cpu_dump_state(CPUState *env, FILE *f, (uint32_t)env->cr[2], (uint32_t)env->cr[3], (uint32_t)env->cr[4]); + for(i = 0; i < 4; i++) + cpu_fprintf(f, "DR%d=%08x ", i, env->dr[i]); + cpu_fprintf(f, "\nDR6=%08x DR7=%08x\n", env->dr[6], env->cr[7]); } if (flags & X86_DUMP_CCOP) { if ((unsigned)env->cc_op < CC_OP_NB) -- 2.11.0