From 86574a2fac8f2fab0be4f3131c74b40e299ab364 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sun, 11 Sep 2022 22:55:25 +0300 Subject: [PATCH] power_enums: strict selectors conversion --- src/openpower/decoder/power_enums.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2