From: Dmitry Selyutin Date: Sat, 24 Sep 2022 13:22:14 +0000 (+0300) Subject: power_insn: slightly change table checking style X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c5a0f34f35a3f8f803a425b28160365d42dfcbb;p=openpower-isa.git power_insn: slightly change table checking style --- diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index 89ffeeca..4805f2dc 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 & mask) == (mask & search)): + if ((value & mask) == (search & mask)): rm = getattr(rm, member) break