From: Dmitry Selyutin Date: Wed, 31 May 2023 18:48:42 +0000 (+0300) Subject: power_enums: introduce SelType as alias of SVExtraRegType X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=70541ab0355c47ba218df1dc1c49a8ddb2877b79;p=openpower-isa.git power_enums: introduce SelType as alias of SVExtraRegType --- diff --git a/src/openpower/decoder/power_enums.py b/src/openpower/decoder/power_enums.py index 9d6a9ff1..2a745602 100644 --- a/src/openpower/decoder/power_enums.py +++ b/src/openpower/decoder/power_enums.py @@ -253,12 +253,6 @@ class SVExtra(Enum): SVEXTRA = SVExtra -class SVExtraRegType(Enum): - NONE = None - SRC = 's' - DST = 'd' - - class SVExtraReg(Enum): NONE = auto() RA = auto() @@ -952,6 +946,22 @@ class MicrOp(Enum): OP_MADDRS = 105 +class SelType(Enum): + NONE = None + SRC = 's' + DST = 'd' + + def __repr__(self): + return { + SelType.NONE: "none", + SelType.SRC: "src", + SelType.DST: "dst", + }[self] + + +SVExtraRegType = SelType + + class In1Sel(Enum): NONE = 0 RA = 1