Skip to content

Commit b339055

Browse files
committed
Fix compiler errors with JIT when Zbc is disabled
When using 'make ENABLE_Zbc=0 ENABLE_JIT=1', the following errors are observed: src/jit.c:1760:17: error: ‘do_clmulr’ defined but not used [-Werror=unused-function] src/jit.c:1760:17: error: ‘do_clmulh’ defined but not used [-Werror=unused-function] src/jit.c:1760:17: error: ‘do_clmul’ defined but not used [-Werror=unused-function] Include 'Zbc' in EXT_LIST to ensure instructions like 'clmulr', 'clmulh', and 'clmul' are properly handled, resolving unused function errors during JIT builds.
1 parent 4d07e88 commit b339055

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
@@ -127,8 +127,13 @@
127127
"orn",
128128
"andn",
129129
],
130+
"Zbc": [
131+
"clmulr",
132+
"clmulh",
133+
"clmul",
134+
],
130135
}
131-
EXT_LIST = ["Zifencei", "Zicsr", "EXT_M", "EXT_A", "EXT_F", "EXT_C", "SYSTEM", "Zba", "Zbb"]
136+
EXT_LIST = ["Zifencei", "Zicsr", "EXT_M", "EXT_A", "EXT_F", "EXT_C", "SYSTEM", "Zba", "Zbb", "Zbc"]
132137
SKIP_LIST = []
133138
# check enabled extension in Makefile
134139

0 commit comments

Comments
 (0)