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:
96a20a6
)
oppc/code: introduce insn argument
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Sun, 14 Jan 2024 18:57:13 +0000
(21:57 +0300)
committer
Dmitry Selyutin
<ghostmansd@gmail.com>
Tue, 16 Jan 2024 19:10:07 +0000
(22:10 +0300)
src/openpower/oppc/pc_code.py
patch
|
blob
|
history
diff --git
a/src/openpower/oppc/pc_code.py
b/src/openpower/oppc/pc_code.py
index cfc3ddfc834d662de82bfce52883686796fde18b..939bcae88108ae279d33be01d89166a853514fa9 100644
(file)
--- a/
src/openpower/oppc/pc_code.py
+++ b/
src/openpower/oppc/pc_code.py
@@
-39,7
+39,7
@@
class CodeVisitor(pc_util.Visitor):
super().__init__(root=root)
self.__code[self.__header].emit(stmt="void")
- self.__code[self.__header].emit(stmt=f"oppc_{insn.name}(
void
) {{")
+ self.__code[self.__header].emit(stmt=f"oppc_{insn.name}(
struct oppc_value const *insn
) {{")
with self.__code[self.__header]:
for decl in self.__decls:
self.__code[self.__header].emit(stmt=f"struct oppc_value {decl};")