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:
c641e1c
)
oppc/code: support XLEN
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Fri, 12 Jan 2024 19:33:05 +0000
(22:33 +0300)
committer
Dmitry Selyutin
<ghostmansd@gmail.com>
Fri, 12 Jan 2024 19:33:39 +0000
(22:33 +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 0c64d40ecae678e034aa8dc77c55ac19ad7d25fd..67d4f42feba24e743f08b1fc10b88d9ca04f6a24 100644
(file)
--- a/
src/openpower/oppc/pc_code.py
+++ b/
src/openpower/oppc/pc_code.py
@@
-148,6
+148,11
@@
class CodeVisitor(pc_util.Visitor):
times = str(self[node.times])
self[node].emit(f"oppc_repeat({subject}, {times})")
+ @pc_util.Hook(pc_ast.XLEN)
+ def XLEN(self, node):
+ yield node
+ self[node].emit(f"ctx->XLEN")
+
@pc_util.Hook(pc_ast.Call.Name)
def CallName(self, node):
yield node