From af4ec765cdf42e2f0eab0771e5eb9404dfc22c9d Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 13 Sep 2022 16:09:52 +0300 Subject: [PATCH] power_enums: convert SVExtra to RegType --- src/openpower/decoder/power_enums.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/openpower/decoder/power_enums.py b/src/openpower/decoder/power_enums.py index 6c71462a..7af2e63e 100644 --- a/src/openpower/decoder/power_enums.py +++ b/src/openpower/decoder/power_enums.py @@ -404,6 +404,12 @@ class RegType(Enum): BI = CR_BIT BT = CR_BIT + @classmethod + def _missing_(cls, value): + if isinstance(value, SVExtraReg): + return cls.__members__[value.name] + return super()._missing_(value) + FPTRANS_INSNS = ( "fatan2", "fatan2s", -- 2.30.2