From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
Bug 1625987 <1625987@bugs.launchpad.net>
Subject: Re: [Qemu-devel] [Bug 1625987] Re: target-arm/translate-a64.c:2028: possible coding error ?
Date: Fri, 30 Sep 2016 12:21:11 +0200 [thread overview]
Message-ID: <20160930102111.GC9606@toto> (raw)
In-Reply-To: <CAFEAcA-KhQF+SmW5a0L49Td=JU6QQY1XaF9sNXPKbKyj8LX8Mg@mail.gmail.com>
On Thu, Sep 29, 2016 at 06:40:53PM -0700, Peter Maydell wrote:
> On 22 September 2016 at 02:53, Peter Maydell <peter.maydell@linaro.org> wrote:
> > This is clearly a bug, but your suggested change won't deal with the
> > problem, which is that we're trying to set a bool so the ? 32 : 64
> > construct is just wrong.
>
> > Bug description:
> > target-arm/translate-a64.c:2028:37: warning: ?: using integer
> > constants in boolean context [-Wint-in-bool-context]
> >
> > Source code is
> >
> > bool iss_sf = opc == 0 ? 32 : 64;
>
> Edgar, did you want to look at a fix for this? It was introduced
> in your commit aaa1f954d4 adding syndrome info for loads and stores.
Hi Peter,
Yes, I've just posted a fix to the list.
It should have been:
bool iss_sf = opc == 0 ? false : true;
Cheers,
Edgar
next prev parent reply other threads:[~2016-09-30 10:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-21 8:29 [Qemu-devel] [Bug 1625987] [NEW] target-arm/translate-a64.c:2028: possible coding error ? dcb
2016-09-22 9:53 ` [Qemu-devel] [Bug 1625987] " Peter Maydell
2016-09-30 1:40 ` Peter Maydell
2016-09-30 10:21 ` Edgar E. Iglesias [this message]
2016-10-04 13:36 ` Peter Maydell
2017-01-16 11:45 ` Thomas Huth
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=20160930102111.GC9606@toto \
--to=edgar.iglesias@gmail.com \
--cc=1625987@bugs.launchpad.net \
--cc=peter.maydell@linaro.org \
--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 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.