From: Dmitry Selyutin Date: Tue, 13 Sep 2022 13:09:52 +0000 (+0300) Subject: power_enums: convert SVExtra to RegType X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af4ec765cdf42e2f0eab0771e5eb9404dfc22c9d;p=openpower-isa.git power_enums: convert SVExtra to RegType --- 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",