From 38cf1167de852cba8548cfd366cd8ded76b7a2ba Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Wed, 1 Jun 2022 11:12:52 +0000 Subject: [PATCH] sv_binutils: fix selector names --- src/openpower/sv/sv_binutils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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}];"]) -- 2.30.2