From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdvSv-0003nq-VW for qemu-devel@nongnu.org; Wed, 28 Nov 2012 23:11:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TdvSu-0001K2-U3 for qemu-devel@nongnu.org; Wed, 28 Nov 2012 23:11:09 -0500 Received: from [222.73.24.84] (port=23954 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdvSu-0001Js-K4 for qemu-devel@nongnu.org; Wed, 28 Nov 2012 23:11:08 -0500 From: li guang In-Reply-To: <1354159971-6720-1-git-send-email-lig.fnst@cn.fujitsu.com> References: <1354159971-6720-1-git-send-email-lig.fnst@cn.fujitsu.com> Date: Thu, 29 Nov 2012 12:08:52 +0800 Message-ID: <1354162132.7304.1.camel@liguang.fnst.cn.fujitsu.com> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [Qemu-devel] [PATCH 1/3] define name for some fields of dr7 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ehabkost@redhat.com Cc: imammedo@redhat.com, afaerber@suse.de, qemu-devel@nongnu.org sorry, need a fix like following. =E5=9C=A8 2012-11-29=E5=9B=9B=E7=9A=84 11:32 +0800=EF=BC=8Cliguang=E5=86=99= =E9=81=93=EF=BC=9A > Signed-off-by: liguang > --- > target-i386/cpu.h | 13 +++++++++++++ > 1 files changed, 13 insertions(+), 0 deletions(-) >=20 > 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 > =20 >=20 > +/* 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 > + > + @@ -568,9 +568,9 @@ /* Break on data writes only */ #define BP_DATA_WR 0x1 /* Break on I/O reads or writes */ -#define BP_IO_RW 0x10 +#define BP_IO_RW 0x2 /* Break on data reads or writes but not instruction fetches */ -#define BP_DATA_RW 0x11 +#define BP_DATA_RW 0x3 =20 > enum { > CC_OP_DYNAMIC, /* must use dynamic code to get cc_op */ > CC_OP_EFLAGS, /* all cc are explicitly computed, CC_SRC =3D flags *= / --=20 regards! li guang =20 linux kernel team at FNST, china thinking with brain but heart living with heart but brain