From 7f03c750e3352e8d8c58a673dbc7809ac221f426 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Fri, 12 Jan 2024 22:33:05 +0300 Subject: [PATCH] oppc/code: support XLEN --- src/openpower/oppc/pc_code.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/openpower/oppc/pc_code.py b/src/openpower/oppc/pc_code.py index 0c64d40e..67d4f42f 100644 --- 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 -- 2.30.2