Skip to content

Commit 5b80435

Browse files
committed
Fix compiler error with JIT when Zba is disabled
When using 'make ENABLE_Zba=0 ENABLE_JIT=1', the following errors are observed: src/jit.c:1760:17: error: ‘do_sh3add’ defined but not used [-Werror=unused-function] src/jit.c:1760:17: error: ‘do_sh2add’ defined but not used [-Werror=unused-function] src/jit.c:1760:17: error: ‘do_sh1add’ defined but not used [-Werror=unused-function] Include 'Zba' in EXT_LIST to ensure instructions like 'sh3add', 'sh2add', and 'sh1add' are properly handled, resolving unused function errors during JIT builds.
1 parent d8bafc2 commit 5b80435

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/gen-jit-template.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,13 @@
102102
"cfsw",
103103
],
104104
"SYSTEM": ["sret"],
105+
"Zba": [
106+
"sh3add",
107+
"sh2add",
108+
"sh1add",
109+
],
105110
}
106-
EXT_LIST = ["Zifencei", "Zicsr", "EXT_M", "EXT_A", "EXT_F", "EXT_C", "SYSTEM"]
111+
EXT_LIST = ["Zifencei", "Zicsr", "EXT_M", "EXT_A", "EXT_F", "EXT_C", "SYSTEM", "Zba"]
107112
SKIP_LIST = []
108113
# check enabled extension in Makefile
109114

0 commit comments

Comments
 (0)