From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Richard Henderson <richard.henderson@linaro.org>, qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org
Subject: Re: [Qemu-devel] [PATCH] decodetree: Fix comparison of Field
Date: Tue, 11 Jun 2019 13:38:35 +0200 [thread overview]
Message-ID: <5d8ab3e9-5a55-fa0c-c4a8-883498f95a32@redhat.com> (raw)
In-Reply-To: <20190604154225.26992-1-richard.henderson@linaro.org>
On 6/4/19 5:42 PM, Richard Henderson wrote:
> Typo comparing the sign of the field, twice, instead of also comparing
> the mask of the field (which itself encodes both position and length).
>
> Reported-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> scripts/decodetree.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/decodetree.py b/scripts/decodetree.py
> index 81874e22cc..d7a59d63ac 100755
> --- a/scripts/decodetree.py
> +++ b/scripts/decodetree.py
> @@ -184,7 +184,7 @@ class Field:
> return '{0}(insn, {1}, {2})'.format(extr, self.pos, self.len)
>
> def __eq__(self, other):
> - return self.sign == other.sign and self.sign == other.sign
> + return self.sign == other.sign and self.mask == other.mask
Argh
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
>
> def __ne__(self, other):
> return not self.__eq__(other)
>
prev parent reply other threads:[~2019-06-11 11:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-04 15:42 [Qemu-devel] [PATCH] decodetree: Fix comparison of Field Richard Henderson
2019-06-04 16:12 ` Peter Maydell
2019-06-11 11:38 ` Philippe Mathieu-Daudé [this message]
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=5d8ab3e9-5a55-fa0c-c4a8-883498f95a32@redhat.com \
--to=philmd@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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).