From: Dmitry Selyutin Date: Sun, 11 Sep 2022 19:55:25 +0000 (+0300) Subject: power_enums: strict selectors conversion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=86574a2fac8f2fab0be4f3131c74b40e299ab364;p=openpower-isa.git power_enums: strict selectors conversion --- diff --git a/src/openpower/decoder/power_enums.py b/src/openpower/decoder/power_enums.py index 96158802..c4756806 100644 --- a/src/openpower/decoder/power_enums.py +++ b/src/openpower/decoder/power_enums.py @@ -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)