From 9c5a0f34f35a3f8f803a425b28160365d42dfcbb Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sat, 24 Sep 2022 16:22:14 +0300 Subject: [PATCH] power_insn: slightly change table checking style --- 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 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 -- 2.30.2