From c125201b5ef4e24cec0f02eb111d6a1b80754773 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 24 Sep 2022 14:22:09 +0100 Subject: [PATCH] whoops got mask/match test wrong in power_insn.py should be value & mask == search & mask --- src/openpower/decoder/power_insn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index 3d70624a..89ffeeca 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -1947,7 +1947,7 @@ class RM(BaseRM): # look up in table if table is not None: for (value, mask, member) in table: - if ((value & search) == (mask & search)): + if ((value & mask) == (mask & search)): rm = getattr(rm, member) break -- 2.30.2