From: Dmitry Selyutin Date: Thu, 22 Jun 2023 19:07:59 +0000 (+0300) Subject: power_enum: modify SVPtype stringification X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff526982f88a3bf3fe77d14a85c53c260415f5e6;p=openpower-isa.git power_enum: modify SVPtype stringification --- diff --git a/src/openpower/decoder/power_enums.py b/src/openpower/decoder/power_enums.py index 707e3986..300a4653 100644 --- a/src/openpower/decoder/power_enums.py +++ b/src/openpower/decoder/power_enums.py @@ -202,7 +202,7 @@ class SVPType(Enum): def _missing_(cls, desc): return {"1P": SVPType.P1, "2P": SVPType.P2, "2PM": SVPType.P2M}.get(desc) - def __repr__(self): + def __str__(self): return { SVPType.NONE: "NONE", SVPType.P1: "1P",