Commit e9b9cf9
committed
Fix compiler error with JIT when Zicsr is disabled
When using 'make ENABLE_Zicsr=0 ENABLE_JIT=1', the following error is
observed:
src/jit.c:1760:17: error: ‘do_csrrwi’ defined but not used [-Werror=unused-function]
1760 | static void do_##inst(struct jit_state *state UNUSED, riscv_t *rv UNUSED, \
| ^~~
src/rv32_jit.c:363:1: note: in expansion of macro ‘GEN’
363 | GEN(csrrwi, {assert(NULL);
| ^~~
This ensures csrrwi instructions are properly excluded from JIT code
generation when the Zicsr extension is disabled.1 parent 5291ef6 commit e9b9cf9
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments