From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] defining VIXL_DEBUG?
Date: Mon, 18 Jan 2016 11:57:42 +0100 [thread overview]
Message-ID: <569CC526.4060607@redhat.com> (raw)
In-Reply-To: <CAFEAcA_gpdv=zRLaXMRFvXkog7dRt0umjJz=npTL7Zz58fAKuA@mail.gmail.com>
On 18/01/2016 11:51, Peter Maydell wrote:
>> The actual code in the function is
>> >
>> > default: VIXL_UNREACHABLE(); return 0;
>> >
>> > so this is obviously a false positive. Defining VIXL_DEBUG would cause
>> > VIXL_UNREACHABLE() to call abort(). Any opinion about whether/where to
>> > do so?
> Does defining it to call abort() result in unreachable-code warnings
> for the "return 0;" ?
I'm not sure, it would be minor though.
One issue I have found after posting is that I'm not sure whether bad
instructions (aka reserved encodings) are handled properly by libvixl.
See for example this:
case 'A': { // IAddSub.
VIXL_ASSERT(instr->ShiftAddSub() <= 1);
int64_t imm = instr->ImmAddSub() << (12 * instr->ShiftAddSub());
AppendToOutput("#0x%" PRIx64 " (%" PRId64 ")", imm, imm);
return 7;
}
where the '1x' encodings of bits 22:23 (marked as reserved in the ARMv8
ARM) would cause an abort as far as I can see.
Paolo
next prev parent reply other threads:[~2016-01-18 10:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-18 10:21 [Qemu-devel] defining VIXL_DEBUG? Paolo Bonzini
2016-01-18 10:51 ` Peter Maydell
2016-01-18 10:57 ` Paolo Bonzini [this message]
2016-01-18 11:04 ` Peter Maydell
2016-01-18 15:15 ` 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=569CC526.4060607@redhat.com \
--to=pbonzini@redhat.com \
--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.