target/arm: fix decoding of B{,L}RA{A,B}

A flawed test lead to the instructions always being treated as
unallocated encodings.

Fixes: https://bugs.launchpad.net/bugs/1813460

Backports commit 1cf86a8618644beb860951ff4383457ee88a7f4a from qemu
This commit is contained in:
Remi Denis-Courmont 2019-02-03 17:53:48 -05:00 committed by Lioncash
parent a20bb60f06
commit 0b7f1ff086
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -2117,7 +2117,7 @@ static void disas_uncond_b_reg(DisasContext *s, uint32_t insn)
if (!dc_isar_feature(aa64_pauth, s)) {
goto do_unallocated;
}
if (op3 != 2 || op3 != 3) {
if ((op3 & ~1) != 2) {
goto do_unallocated;
}
if (s->pauth_active) {