From: Dmitry Selyutin Date: Sun, 4 Jun 2023 09:21:57 +0000 (+0300) Subject: power_enums: simplify sel type string conversion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e382573bed5670cf70d576cf63ab32a4c568e57c;p=openpower-isa.git power_enums: simplify sel type string conversion --- diff --git a/src/openpower/decoder/power_enums.py b/src/openpower/decoder/power_enums.py index 1e512d8a..44555ea2 100644 --- a/src/openpower/decoder/power_enums.py +++ b/src/openpower/decoder/power_enums.py @@ -972,11 +972,11 @@ class SelType(Enum): SRC = 's' DST = 'd' - def __repr__(self): + def __str__(self): return { SelType.NONE: "NONE", - SelType.SRC: "src", - SelType.DST: "dst", + SelType.SRC: "SRC", + SelType.DST: "DST", }[self]