From e3107a026cb5e63be2cb41da9e19f6cf121f8114 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sun, 4 Jun 2023 12:18:59 +0300 Subject: [PATCH] power_enums: simplify reg string conversion --- src/openpower/decoder/power_enums.py | 3 +++ 1 file changed, 3 insertions(+) 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 = ( -- 2.30.2