From: Dmitry Selyutin Date: Wed, 1 Jun 2022 11:12:52 +0000 (+0000) Subject: sv_binutils: fix selector names X-Git-Tag: sv_maxu_works-initial~404 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=38cf1167de852cba8548cfd366cd8ded76b7a2ba;p=openpower-isa.git sv_binutils: fix selector names --- diff --git a/src/openpower/sv/sv_binutils.py b/src/openpower/sv/sv_binutils.py index 37d170e6..cd3693d2 100644 --- a/src/openpower/sv/sv_binutils.py +++ b/src/openpower/sv/sv_binutils.py @@ -545,8 +545,7 @@ class Codegen(_enum.Enum): yield from indent(["static const ppc_opindex_t table[] = {"]) for key in enum: value = table.get(key, "UNUSED") - c_value = f"{c_tag.upper()}_{key.name.upper()}" - yield from indent(indent([f"{value:{sep}}, /* {c_value} */"])) + yield from indent(indent([f"{value:{sep}}, /* {key.c_name} */"])) yield from indent(["};"]) yield "" yield from indent([f"return table[record->{name}];"])