From a9ce45fa32f9faea156f751191b60a608d1f3c0f Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Wed, 17 Aug 2022 21:43:37 +0300 Subject: [PATCH] power_enums: fix conversion from selector to reg --- 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 45b30c11..7388a06b 100644 --- a/src/openpower/decoder/power_enums.py +++ b/src/openpower/decoder/power_enums.py @@ -252,7 +252,7 @@ class SVExtraReg(Enum): OutSel, CROutSel, ) if isinstance(value, selectors): - return cls.__members__.get(value, cls.NONE) + return cls.__members__.get(value.name, cls.NONE) return super()._missing_(value) -- 2.30.2