Received: from eggs.gnu.org ([208.118.235.92]:48179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tg4Ql-0000Mh-Hx for qemu-devel@nongnu.org; Tue, 04 Dec 2012 21:09:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tg4Qk-0002n1-4h for qemu-devel@nongnu.org; Tue, 04 Dec 2012 21:09:47 -0500 Received: from [222.73.24.84] (port=51672 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tg4Qj-0002kV-Qr for qemu-devel@nongnu.org; Tue, 04 Dec 2012 21:09:46 -0500 From: li guang In-Reply-To: References: <1354608695-3232-1-git-send-email-lig.fnst@cn.fujitsu.com> Date: Wed, 05 Dec 2012 10:07:12 +0800 Message-ID: <1354673232.4342.16.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] target-i386:define name of breakpoint bit in dr7 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: ehabkost@redhat.com, jan.kiszka@siemens.com, qemu-devel@nongnu.org, blauwirbel@gmail.com, imammedo@redhat.com, afaerber@suse.de =E5=9C=A8 2012-12-04=E4=BA=8C=E7=9A=84 12:49 +0000=EF=BC=8CPeter Maydell=E5= =86=99=E9=81=93=EF=BC=9A > On 4 December 2012 08:11, liguang wrote: > > Signed-off-by: liguang > > --- > > target-i386/cpu.h | 7 +++++++ > > 1 files changed, 7 insertions(+), 0 deletions(-) > > > > diff --git a/target-i386/cpu.h b/target-i386/cpu.h > > index 90ef1ff..9abec3e 100644 > > --- a/target-i386/cpu.h > > +++ b/target-i386/cpu.h > > @@ -231,6 +231,13 @@ > > #define DR7_TYPE_SHIFT 16 > > #define DR7_LEN_SHIFT 18 > > #define DR7_FIXED_1 0x00000400 > > +#define DR7_LOCAL_BP_MASK 0x55 > > +#define DR7_MAX_BP 4 > > +#define DR7_BP_INST 0x0 > > +#define DR7_DATA_WR 0x1 > > +#define DR7_IO_RW 0x2 > > +#define DR7_DATA_RW 0x3 >=20 > I still think these last four should be DR7_TYPE_BP_INST etc to > indicate that they're values for the TYPE field, not direct > specifications of bits in DR7. hmm, is it necessary? you know, the use of these names is after calling 'hw_breakpoint_type' function, so, it's obvious for dr7's type field. >=20 > -- PMM --=20 regards! li guang