[5748] x86: Dump debug registers (Jan Kiszka)
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 <[email protected]>
Signed-off-by Anthony Liguori <[email protected]>
Modified Paths:
--------------
trunk/target-i386/helper.c
Modified: trunk/target-i386/helper.c
===================================================================
target-i386/helper.c +7 -0
@@ -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 )