From: Dmitry Selyutin Date: Fri, 27 May 2022 12:16:23 +0000 (+0000) Subject: sv_binutils: make C enums more readable X-Git-Tag: sv_maxu_works-initial~409 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e43e1360d1ef16cd7c237e142e2a01ba58396a3d;p=openpower-isa.git sv_binutils: make C enums more readable --- 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):