From: Peter Maydell <peter.maydell@linaro.org>
To: liguang <lig.fnst@cn.fujitsu.com>
Cc: qemu-devel@nongnu.org, imammedo@redhat.com, ehabkost@redhat.com,
afaerber@suse.de
Subject: Re: [Qemu-devel] [PATCH 2/3] use dr7's bit name for breakpoint
Date: Thu, 29 Nov 2012 11:28:16 +0000 [thread overview]
Message-ID: <CAFEAcA97yAtLyy1vE+0ziVp7gxPSmzk2ajvsLAcozmtJLPCuMA@mail.gmail.com> (raw)
In-Reply-To: <1354159971-6720-2-git-send-email-lig.fnst@cn.fujitsu.com>
On 29 November 2012 03:32, liguang <lig.fnst@cn.fujitsu.com> wrote:
> Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
> ---
> target-i386/cpu.h | 2 ++
> target-i386/helper.c | 24 +++++++++++-------------
> target-i386/misc_helper.c | 6 +++---
> target-i386/seg_helper.c | 6 +++---
> 4 files changed, 19 insertions(+), 19 deletions(-)
>
> diff --git a/target-i386/cpu.h b/target-i386/cpu.h
> index 7f292e6..7ecfe21 100644
> --- a/target-i386/cpu.h
> +++ b/target-i386/cpu.h
> @@ -561,6 +561,8 @@
> /* dr7 fields */
> /* max breakpoints*/
> #define MAX_BP 4
> +/*enable local breakpoint bit 0,2,4,6*/
> +#define BP_LOCAL 0x55
This needs a better name, to make it clear that it's not
just a single enable bit but actually a mask of all the
local enable bits. Also needs DR7_ prefix.
You've split these changes up between patches inconsistently;
either have one patch which adds all the constants and
then patches which just use them, or have patches which
both add and use the constants, but don't mix the two.
I'd recommend that each patch should both add and use a
related set of constants, so it's self contained and
easy to review.
-- PMM
next prev parent reply other threads:[~2012-11-29 11:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFEAcA97yAtLyy1vE+0ziVp7gxPSmzk2ajvsLAcozmtJLPCuMA@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=afaerber@suse.de \
--cc=ehabkost@redhat.com \
--cc=imammedo@redhat.com \
--cc=lig.fnst@cn.fujitsu.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).