qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v5 14/18] x86: Dump debug registers


From: Jan Kiszka
Subject: [Qemu-devel] [PATCH v5 14/18] x86: Dump debug registers
Date: Mon, 17 Nov 2008 17:18:59 +0100
User-agent: StGIT/0.14.2

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 <address@hidden>
---

 target-i386/helper.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/target-i386/helper.c b/target-i386/helper.c
index 0cfef44..2a61cb0 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)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]