From 2ff6a72f774f6c625d86ffcb9bdfecbe084f842a 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