From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Trivial <qemu-trivial@nongnu.org>,
QEMU Developers <qemu-devel@nongnu.org>,
Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-trivial] [PATCH] target-alpha: fix subl and s8subl indentation
Date: Sun, 16 Mar 2014 08:59:58 +0100 [thread overview]
Message-ID: <532559FE.4060808@redhat.com> (raw)
In-Reply-To: <CAFEAcA-iLNU5g236yhp7ie6-dqpxNpG=EMz8tXhOXs9aPnaS+Q@mail.gmail.com>
Il 16/03/2014 00:47, Peter Maydell ha scritto:
> On 15 March 2014 18:33, Paolo Bonzini <pbonzini@redhat.com> wrote:
>> Two missing braces, one close and one open, fabulously let the code
>> compile.
>>
>> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>> ---
>> target-alpha/translate.c | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/target-alpha/translate.c b/target-alpha/translate.c
>> index a9ef1a7..e7e319b 100644
>> --- a/target-alpha/translate.c
>> +++ b/target-alpha/translate.c
>> @@ -1927,6 +1927,7 @@ static ExitStatus translate_one(DisasContext *ctx, uint32_t insn)
>> else {
>> tcg_gen_neg_i64(cpu_ir[rc], cpu_ir[rb]);
>> tcg_gen_ext32s_i64(cpu_ir[rc], cpu_ir[rc]);
>> + }
>> }
>> }
>> break;
>> @@ -1991,7 +1992,7 @@ static ExitStatus translate_one(DisasContext *ctx, uint32_t insn)
>> } else {
>> if (islit)
>> tcg_gen_movi_i64(cpu_ir[rc], -lit);
>> - else
>> + else {
>> tcg_gen_neg_i64(cpu_ir[rc], cpu_ir[rb]);
>> tcg_gen_ext32s_i64(cpu_ir[rc], cpu_ir[rc]);
>> }
>
> I'm surprised checkpatch didn't insist you added braces to the "if"
> half of this if-else as well.
I must admit I ignored it. It makes the patch harder to review, since
the bug is explicitly about missing (unmatched) braces. I can add the
braces throughout the file, but I don't think it's a reason to obfuscate
this particular patch.
Paolo
WARNING: multiple messages have this Message-ID (diff)
From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Trivial <qemu-trivial@nongnu.org>,
QEMU Developers <qemu-devel@nongnu.org>,
Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [PATCH] target-alpha: fix subl and s8subl indentation
Date: Sun, 16 Mar 2014 08:59:58 +0100 [thread overview]
Message-ID: <532559FE.4060808@redhat.com> (raw)
In-Reply-To: <CAFEAcA-iLNU5g236yhp7ie6-dqpxNpG=EMz8tXhOXs9aPnaS+Q@mail.gmail.com>
Il 16/03/2014 00:47, Peter Maydell ha scritto:
> On 15 March 2014 18:33, Paolo Bonzini <pbonzini@redhat.com> wrote:
>> Two missing braces, one close and one open, fabulously let the code
>> compile.
>>
>> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>> ---
>> target-alpha/translate.c | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/target-alpha/translate.c b/target-alpha/translate.c
>> index a9ef1a7..e7e319b 100644
>> --- a/target-alpha/translate.c
>> +++ b/target-alpha/translate.c
>> @@ -1927,6 +1927,7 @@ static ExitStatus translate_one(DisasContext *ctx, uint32_t insn)
>> else {
>> tcg_gen_neg_i64(cpu_ir[rc], cpu_ir[rb]);
>> tcg_gen_ext32s_i64(cpu_ir[rc], cpu_ir[rc]);
>> + }
>> }
>> }
>> break;
>> @@ -1991,7 +1992,7 @@ static ExitStatus translate_one(DisasContext *ctx, uint32_t insn)
>> } else {
>> if (islit)
>> tcg_gen_movi_i64(cpu_ir[rc], -lit);
>> - else
>> + else {
>> tcg_gen_neg_i64(cpu_ir[rc], cpu_ir[rb]);
>> tcg_gen_ext32s_i64(cpu_ir[rc], cpu_ir[rc]);
>> }
>
> I'm surprised checkpatch didn't insist you added braces to the "if"
> half of this if-else as well.
I must admit I ignored it. It makes the patch harder to review, since
the bug is explicitly about missing (unmatched) braces. I can add the
braces throughout the file, but I don't think it's a reason to obfuscate
this particular patch.
Paolo
next prev parent reply other threads:[~2014-03-16 8:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-15 18:33 [Qemu-trivial] [PATCH] target-alpha: fix subl and s8subl indentation Paolo Bonzini
2014-03-15 18:33 ` [Qemu-devel] " Paolo Bonzini
2014-03-15 20:40 ` [Qemu-trivial] " Richard Henderson
2014-03-15 20:40 ` [Qemu-devel] " Richard Henderson
2014-03-18 21:33 ` Stuart Brady
2014-03-15 23:47 ` [Qemu-trivial] " Peter Maydell
2014-03-15 23:47 ` Peter Maydell
2014-03-16 7:59 ` Paolo Bonzini [this message]
2014-03-16 7:59 ` Paolo Bonzini
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=532559FE.4060808@redhat.com \
--to=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=rth@twiddle.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.