projects
/
openpower-isa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
938847c
)
sv_binutils: fix selector names
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Wed, 1 Jun 2022 11:12:52 +0000
(11:12 +0000)
committer
Dmitry Selyutin
<ghostmansd@gmail.com>
Wed, 1 Jun 2022 11:12:52 +0000
(11:12 +0000)
src/openpower/sv/sv_binutils.py
patch
|
blob
|
history
diff --git
a/src/openpower/sv/sv_binutils.py
b/src/openpower/sv/sv_binutils.py
index 37d170e66d5f728358654dc0da6e9f803fce8663..cd3693d2b2d35fbd5b509405905146ac4da79c9b 100644
(file)
--- 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}];"])