@@ -5,6 +5,7 @@ ENV_H := ../riscv-tests/env/encoding.h
55OPENOCD_H := ../riscv-openocd/src/target/riscv/encoding.h
66INSTALL_HEADER_FILES := $(ISASIM_H ) $(PK_H ) $(ENV_H ) $(OPENOCD_H )
77PSEUDO_FLAG := $(if $(PSEUDO ) ,-pseudo,)
8+ FLAGS := --warn-overlap
89
910ifeq ($(shell command -v uv 2>/dev/null) ,)
1011 RUNNER := PYTHONPATH=src python -m
@@ -21,25 +22,25 @@ pseudo:
2122 @$(MAKE ) PSEUDO=1 everything
2223
2324everything :
24- @$(RUNNER ) riscv_opcodes $(PSEUDO_FLAG ) -c -go -chisel -sverilog -rust -latex -spinalhdl $(EXTENSIONS )
25+ @$(RUNNER ) riscv_opcodes $(FLAGS ) $( PSEUDO_FLAG ) -c -go -chisel -sverilog -rust -latex -spinalhdl $(EXTENSIONS )
2526
2627encoding.out.h :
27- @$(RUNNER ) riscv_opcodes -c $(PSEUDO_FLAG ) $(EXTENSIONS )
28+ @$(RUNNER ) riscv_opcodes $( FLAGS ) -c $(PSEUDO_FLAG ) $(EXTENSIONS )
2829
2930inst.chisel :
30- @$(RUNNER ) riscv_opcodes -chisel $(PSEUDO_FLAG ) $(EXTENSIONS )
31+ @$(RUNNER ) riscv_opcodes $( FLAGS ) -chisel $(PSEUDO_FLAG ) $(EXTENSIONS )
3132
3233inst.go :
33- @$(RUNNER ) riscv_opcodes -go $(PSEUDO_FLAG ) $(EXTENSIONS )
34+ @$(RUNNER ) riscv_opcodes $( FLAGS ) -go $(PSEUDO_FLAG ) $(EXTENSIONS )
3435
3536latex :
36- @$(RUNNER ) riscv_opcodes -latex $(PSEUDO_FLAG ) $(EXTENSIONS )
37+ @$(RUNNER ) riscv_opcodes $( FLAGS ) -latex $(PSEUDO_FLAG ) $(EXTENSIONS )
3738
3839inst.sverilog :
39- @$(RUNNER ) riscv_opcodes -sverilog $(PSEUDO_FLAG ) $(EXTENSIONS )
40+ @$(RUNNER ) riscv_opcodes $( FLAGS ) -sverilog $(PSEUDO_FLAG ) $(EXTENSIONS )
4041
4142inst.rs :
42- @$(RUNNER ) riscv_opcodes -rust $(PSEUDO_FLAG ) $(EXTENSIONS )
43+ @$(RUNNER ) riscv_opcodes $( FLAGS ) -rust $(PSEUDO_FLAG ) $(EXTENSIONS )
4344
4445clean :
4546 rm -f inst* priv-instr-table.tex encoding.out.h
@@ -58,4 +59,4 @@ instr-table.tex: latex
5859priv-instr-table.tex : latex
5960
6061inst.spinalhdl :
61- @$(RUNNER ) riscv_opcodes -spinalhdl $(PSEUDO_FLAG ) $(EXTENSIONS )
62+ @$(RUNNER ) riscv_opcodes $( FLAGS ) -spinalhdl $(PSEUDO_FLAG ) $(EXTENSIONS )
0 commit comments