From: Dmitry Selyutin Date: Sun, 23 Jan 2022 10:33:20 +0000 (+0000) Subject: sv_binutils: follow binutils naming convention for header X-Git-Tag: sv_maxu_works-initial~546 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc1d6a81f712bc17e96158037c74304bb7de921a;p=openpower-isa.git sv_binutils: follow binutils naming convention for header --- diff --git a/src/openpower/sv/sv_binutils.py b/src/openpower/sv/sv_binutils.py index cd9b5d44..0b733ca0 100644 --- a/src/openpower/sv/sv_binutils.py +++ b/src/openpower/sv/sv_binutils.py @@ -218,24 +218,24 @@ class Entry(CType): class Codegen(_enum.Enum): - PPC_OPC_SVP64_H = _enum.auto() - PPC_OPC_SVP64_C = _enum.auto() + PPC_SVP64_H = _enum.auto() + PPC_SVP64_OPC_C = _enum.auto() @classmethod def _missing_(cls, value): return { - "ppc-opc-svp64.h": Codegen.PPC_OPC_SVP64_H, - "ppc-opc-svp64.c": Codegen.PPC_OPC_SVP64_C, + "ppc-svp64.h": Codegen.PPC_SVP64_H, + "ppc-svp64-opc.c": Codegen.PPC_SVP64_OPC_C, }[value] def __str__(self): return { - Codegen.PPC_OPC_SVP64_H: "ppc-opc-svp64.h", - Codegen.PPC_OPC_SVP64_C: "ppc-opc-svp64.c", + Codegen.PPC_SVP64_H: "ppc-svp64.h", + Codegen.PPC_SVP64_OPC_C: "ppc-svp64-opc.c", }[self] def generate(self, entries): - def ppc_opc_svp64_h(entries): + def ppc_svp64_h(entries): yield from DISCLAIMER yield "" @@ -268,11 +268,11 @@ class Codegen(_enum.Enum): yield f"#endif /* {self.name} */" yield "" - def ppc_opc_svp64_c(entries): + def ppc_svp64_opc_c(entries): yield from DISCLAIMER yield "" - yield "#include \"ppc-opc-svp64.h\"" + yield "#include \"opcode/ppc-svp64.h\"" yield "" yield "const struct svp64_entry svp64_entries[] = {{" @@ -283,8 +283,8 @@ class Codegen(_enum.Enum): yield "" return { - Codegen.PPC_OPC_SVP64_H: ppc_opc_svp64_h, - Codegen.PPC_OPC_SVP64_C: ppc_opc_svp64_c, + Codegen.PPC_SVP64_H: ppc_svp64_h, + Codegen.PPC_SVP64_OPC_C: ppc_svp64_opc_c, }[self](entries)