Skip to content

Commit 3571650

Browse files
committed
Fix compiler errors with JIT when Zbs is disabled
When using 'make ENABLE_Zbs=0 ENABLE_JIT=1', the following errors are observed: src/jit.c:1760:17: error: ‘do_bseti’ defined but not used [-Werror=unused-function] src/jit.c:1760:17: error: ‘do_bset’ defined but not used [-Werror=unused-function] src/jit.c:1760:17: error: ‘do_binvi’ defined but not used [-Werror=unused-function] src/jit.c:1760:17: error: ‘do_binv’ defined but not used [-Werror=unused-function] src/jit.c:1760:17: error: ‘do_bexti’ defined but not used [-Werror=unused-function] src/jit.c:1760:17: error: ‘do_bext’ defined but not used [-Werror=unused-function] src/jit.c:1760:17: error: ‘do_bclri’ defined but not used [-Werror=unused-function] src/jit.c:1760:17: error: ‘do_bclr’ defined but not used [-Werror=unused-function ] Include "Zbs" in EXT_LIST to ensure instructions like `bseti`, `bset`, and `bclr` are properly handled, resolving unused function errors during JIT builds.
1 parent 0926e24 commit 3571650

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

tools/gen-jit-template.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,18 @@
132132
"clmulh",
133133
"clmul",
134134
],
135+
"Zbs": [
136+
"bseti",
137+
"bset",
138+
"binvi",
139+
"binv",
140+
"bexti",
141+
"bext",
142+
"bclri",
143+
"bclr",
144+
],
135145
}
136-
EXT_LIST = ["Zifencei", "Zicsr", "EXT_M", "EXT_A", "EXT_F", "EXT_C", "SYSTEM", "Zba", "Zbb", "Zbc"]
146+
EXT_LIST = ["Zifencei", "Zicsr", "EXT_M", "EXT_A", "EXT_F", "EXT_C", "SYSTEM", "Zba", "Zbb", "Zbc", "Zbs"]
137147
SKIP_LIST = []
138148
# check enabled extension in Makefile
139149

0 commit comments

Comments
 (0)