qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [5748] x86: Dump debug registers (Jan Kiszka)


From: Anthony Liguori
Subject: [Qemu-devel] [5748] x86: Dump debug registers (Jan Kiszka)
Date: Tue, 18 Nov 2008 21:09:48 +0000

Revision: 5748
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5748
Author:   aliguori
Date:     2008-11-18 21:09:47 +0000 (Tue, 18 Nov 2008)

Log Message:
-----------
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 <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

Modified Paths:
--------------
    trunk/target-i386/helper.c

Modified: trunk/target-i386/helper.c
===================================================================
--- trunk/target-i386/helper.c  2008-11-18 21:08:15 UTC (rev 5747)
+++ trunk/target-i386/helper.c  2008-11-18 21:09:47 UTC (rev 5748)
@@ -644,6 +644,10 @@
                     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 @@
                     (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]