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=2ff6a72f774f6c625d86ffcb9bdfecbe084f842a;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 = (