From: Luke Kenneth Casson Leighton Date: Sat, 24 Sep 2022 13:22:09 +0000 (+0100) Subject: whoops got mask/match test wrong in power_insn.py X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c125201b5ef4e24cec0f02eb111d6a1b80754773;p=openpower-isa.git whoops got mask/match test wrong in power_insn.py should be value & mask == search & mask --- 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