Amends a small logical mistake that would always result in the branch to
do_unallocated being taken.

Signed-off-by: Mathew Maidment <mathew1...@gmail.com>
---
 target/arm/translate-a64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c
index 4d28a27c3b..350deae32b 100644
--- a/target/arm/translate-a64.c
+++ b/target/arm/translate-a64.c
@@ -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 != 2 && op3 != 3) {
             goto do_unallocated;
         }
         if (s->pauth_active) {
-- 
2.17.2 (Apple Git-113)


Reply via email to