power_insn: fix RCOE check
authorDmitry Selyutin <ghostmansd@gmail.com>
Mon, 12 Sep 2022 17:32:49 +0000 (20:32 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 12 Sep 2022 20:41:44 +0000 (21:41 +0100)
src/openpower/decoder/power_insn.py

index f76e771557405efbae3ba2af4a64fa2bc2e78154..6d9cf1eed58ed5b4da43d7540363e4c9fcc55597 100644 (file)
@@ -1713,7 +1713,7 @@ class PPCDatabase:
             if not key.endswith("."):
                 return False
 
-            if not record.Rc is _RCOE.RC:
+            if record.Rc is _RCOE.NONE:
                 return False
 
             return exact_match(key[:-1], record)