* [Qemu-devel] [5748] x86: Dump debug registers (Jan Kiszka)
@ 2008-11-18 21:09 Anthony Liguori
0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2008-11-18 21:09 UTC (permalink / raw)
To: qemu-devel
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 <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-18 21:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-18 21:09 [Qemu-devel] [5748] x86: Dump debug registers (Jan Kiszka) Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).