RISCV_LINK_MT ?= $(RISCV_GCC) -T $(src_dir)/common/test-mt.ld
RISCV_LINK_OPTS ?= -nostdlib -nostartfiles -ffast-math -lgcc
RISCV_OBJDUMP ?= $(RISCV_PREFIX)objdump --disassemble-all --disassemble-zeroes --section=.text --section=.text.startup --section=.data
-RISCV_SIM ?= spike
+RISCV_SIM ?= spike --isa=rv$(XLEN)gc
VPATH += $(addprefix $(src_dir)/, $(bmarks))
VPATH += $(src_dir)/common
$(RISCV_OBJDUMP) $< > $@
%.out: %
- $(RISCV_SIM) $< 2> $@
+ $(RISCV_SIM) --isa=rv64gc $< 2> $@
%.out32: %
- $(RISCV_SIM) --isa=RV32 $< 2> $@
+ $(RISCV_SIM) --isa=rv32gc $< 2> $@
define compile_template