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
Signed-off-by: Remi Denis-Courmont <remi.denis.courmont@huawei.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
Remi Denis-Courmont 2019-01-25 23:49:26 +02:00 committed by Peter Maydell
parent f6768aa1b4
commit 1cf86a8618
1 changed files with 1 additions and 1 deletions

View File

@ -2036,7 +2036,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) {