Commit a59cb4e02322ac6e276715ef3acb3c84a82206ef
1 parent
01df040b
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
Showing
1 changed file
with
7 additions
and
0 deletions
target-i386/helper.c
... | ... | @@ -644,6 +644,10 @@ void cpu_dump_state(CPUState *env, FILE *f, |
644 | 644 | env->cr[2], |
645 | 645 | env->cr[3], |
646 | 646 | (uint32_t)env->cr[4]); |
647 | + for(i = 0; i < 4; i++) | |
648 | + cpu_fprintf(f, "DR%d=%016" PRIx64 " ", i, env->dr[i]); | |
649 | + cpu_fprintf(f, "\nDR6=%016" PRIx64 " DR7=%016" PRIx64 "\n", | |
650 | + env->dr[6], env->cr[7]); | |
647 | 651 | } else |
648 | 652 | #endif |
649 | 653 | { |
... | ... | @@ -675,6 +679,9 @@ void cpu_dump_state(CPUState *env, FILE *f, |
675 | 679 | (uint32_t)env->cr[2], |
676 | 680 | (uint32_t)env->cr[3], |
677 | 681 | (uint32_t)env->cr[4]); |
682 | + for(i = 0; i < 4; i++) | |
683 | + cpu_fprintf(f, "DR%d=%08x ", i, env->dr[i]); | |
684 | + cpu_fprintf(f, "\nDR6=%08x DR7=%08x\n", env->dr[6], env->cr[7]); | |
678 | 685 | } |
679 | 686 | if (flags & X86_DUMP_CCOP) { |
680 | 687 | if ((unsigned)env->cc_op < CC_OP_NB) | ... | ... |