qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/3] define name for some fields of dr7
@ 2012-11-29  3:32 liguang
  2012-11-29  3:32 ` [Qemu-devel] [PATCH 2/3] use dr7's bit name for breakpoint liguang
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: liguang @ 2012-11-29  3:32 UTC (permalink / raw)
  To: ehabkost, imammedo, afaerber, qemu-devel; +Cc: liguang

Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
---
 target-i386/cpu.h |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/target-i386/cpu.h b/target-i386/cpu.h
index 90ef1ff..7f292e6 100644
--- a/target-i386/cpu.h
+++ b/target-i386/cpu.h
@@ -558,6 +558,19 @@
 #define CPU_INTERRUPT_TPR       CPU_INTERRUPT_TGT_INT_3
 
 
+/* dr7 fields */
+/* max breakpoints*/
+#define MAX_BP      4
+/* Break on instruction execution only */
+#define BP_INST     0x0
+/* Break on data writes only */
+#define BP_DATA_WR  0x1
+/* Break on I/O reads or writes */
+#define BP_IO_RW    0x10
+/* Break on data reads or writes but not instruction fetches */
+#define BP_DATA_RW  0x11
+
+
 enum {
     CC_OP_DYNAMIC, /* must use dynamic code to get cc_op */
     CC_OP_EFLAGS,  /* all cc are explicitly computed, CC_SRC = flags */
-- 
1.7.2.5

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-12-03  1:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-29  3:32 [Qemu-devel] [PATCH 1/3] define name for some fields of dr7 liguang
2012-11-29  3:32 ` [Qemu-devel] [PATCH 2/3] use dr7's bit name for breakpoint liguang
2012-11-29 11:28   ` Peter Maydell
2012-12-03  1:30     ` li guang
2012-11-29  3:32 ` [Qemu-devel] [PATCH 3/3] target-i386:refactor check_hw_breakpoints function liguang
2012-11-29 11:31   ` Peter Maydell
2012-11-29  4:08 ` [Qemu-devel] [PATCH 1/3] define name for some fields of dr7 li guang
2012-11-29 11:24 ` Peter Maydell

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).