summaryrefslogtreecommitdiff
path: root/target-i386
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-18 21:09:47 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-18 21:09:47 +0000
commita59cb4e02322ac6e276715ef3acb3c84a82206ef (patch)
tree6e7f796c3bce773d50467f71e30eaa53dec9044b /target-i386
parent01df040b52474b463d00fe908d5a14e1ecdc75bc (diff)
downloadqemu-a59cb4e02322ac6e276715ef3acb3c84a82206ef.tar.gz
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 <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5748 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386')
-rw-r--r--target-i386/helper.c7
1 files changed, 7 insertions, 0 deletions
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)