From eb599b5a238e8d9c07823f98497a8954da06b23a Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Wed, 31 May 2023 21:48:42 +0300 Subject: [PATCH] power_enums: introduce SelType as alias of SVExtraRegType --- src/openpower/decoder/power_enums.py | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) 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 -- 2.30.2