From e43e1360d1ef16cd7c237e142e2a01ba58396a3d Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Fri, 27 May 2022 12:16:23 +0000 Subject: [PATCH] sv_binutils: make C enums more readable --- src/openpower/sv/sv_binutils.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/openpower/sv/sv_binutils.py b/src/openpower/sv/sv_binutils.py index 603cea2e..4dfc152c 100644 --- a/src/openpower/sv/sv_binutils.py +++ b/src/openpower/sv/sv_binutils.py @@ -176,15 +176,15 @@ class Enum(CType, _enum.Enum, metaclass=EnumMeta): yield f"{prefix}{self.c_name}{suffix}" -In1Sel = Enum("In1Sel", _In1Sel) -In2Sel = Enum("In2Sel", _In2Sel) -In3Sel = Enum("In3Sel", _In3Sel) -OutSel = Enum("OutSel", _OutSel) -CRInSel = Enum("CRInSel", _CRInSel) -CROutSel = Enum("CROutSel", _CROutSel) -SVPType = Enum("SVPType", _SVPtype) -SVEType = Enum("SVEType", _SVEtype) -SVEXTRA = Enum("SVEXTRA", _SVEXTRA) +In1Sel = Enum("In1Sel", _In1Sel, tag="svp64_in1_sel") +In2Sel = Enum("In2Sel", _In2Sel, tag="svp64_in2_sel") +In3Sel = Enum("In3Sel", _In3Sel, tag="svp64_in3_sel") +OutSel = Enum("OutSel", _OutSel, tag="svp64_out_sel") +CRInSel = Enum("CRInSel", _CRInSel, tag="svp64_cr_in_sel") +CROutSel = Enum("CROutSel", _CROutSel, tag="svp64_cr_out_sel") +SVPType = Enum("SVPType", _SVPtype, tag="svp64_sv_ptype") +SVEType = Enum("SVEType", _SVEtype, tag="svp64_sv_etype") +SVEXTRA = Enum("SVEXTRA", _SVEXTRA, tag="svp64_sv_extra") class Constant(CType, _enum.Enum, metaclass=EnumMeta): -- 2.30.2