power_enums: strict selectors conversion
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 11 Sep 2022 19:55:25 +0000 (22:55 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 12 Sep 2022 20:41:44 +0000 (21:41 +0100)
src/openpower/decoder/power_enums.py

index 96158802cc500ee1f292112efa354016c81a1591..c4756806fd1c91be33648f5ec52c23d8f5b67c16 100644 (file)
@@ -274,7 +274,7 @@ class SVExtraReg(Enum):
             OutSel, CROutSel,
         )
         if isinstance(value, selectors):
-            return cls.__members__.get(value.name, cls.NONE)
+            return cls.__members__[value.name]
         return super()._missing_(value)