power_insn: slightly change table checking style
authorDmitry Selyutin <ghostmansd@gmail.com>
Sat, 24 Sep 2022 13:22:14 +0000 (16:22 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sat, 24 Sep 2022 13:27:37 +0000 (16:27 +0300)
src/openpower/decoder/power_insn.py

index 89ffeeca0210f3a1ee4b565f96a923c9ddbf8bad..4805f2dc58885d308754fcf022b45be73cab628f 100644 (file)
@@ -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