From: Dmitry Selyutin Date: Sun, 4 Jun 2023 09:18:59 +0000 (+0300) Subject: power_enums: simplify reg string conversion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e3107a026cb5e63be2cb41da9e19f6cf121f8114;p=openpower-isa.git power_enums: simplify reg string conversion --- diff --git a/src/openpower/decoder/power_enums.py b/src/openpower/decoder/power_enums.py index 7285bd76..7c2eab5c 100644 --- a/src/openpower/decoder/power_enums.py +++ b/src/openpower/decoder/power_enums.py @@ -287,6 +287,9 @@ class Reg(Enum): FRSp = auto() FRTp = auto() + def __str__(self): + return self.name + @classmethod def _missing_(cls, desc): selectors = (