diff options
Diffstat (limited to 'benchmarks/Makefile')
-rw-r--r-- | benchmarks/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/benchmarks/Makefile b/benchmarks/Makefile index 3346c7c..23ce02d 100644 --- a/benchmarks/Makefile +++ b/benchmarks/Makefile @@ -50,12 +50,13 @@ bmarks_host = \ HOST_OPTS = -std=gnu99 -DPREALLOCATE=0 -DHOST_DEBUG=1 HOST_COMP = gcc $(HOST_OPTS) -RISCV_GCC = riscv-gcc +RISCV_PREFIX=riscv64-unknown-elf- +RISCV_GCC = $(RISCV_PREFIX)gcc RISCV_GCC_OPTS = -static -Wa,-march=RVIMAFDXhwacha -std=gnu99 -O2 -ffast-math -RISCV_LINK = riscv-gcc -T $(bmarkdir)/common/test.ld $(incs) -RISCV_LINK_MT = riscv-gcc -T $(bmarkdir)/common/test-mt.ld +RISCV_LINK = $(RISCV_GCC) -T $(bmarkdir)/common/test.ld $(incs) +RISCV_LINK_MT = $(RISCV_GCC) -T $(bmarkdir)/common/test-mt.ld RISCV_LINK_OPTS = -nostdlib -nostartfiles -ffast-math -lc -RISCV_OBJDUMP = riscv-objdump --disassemble-all --disassemble-zeroes --section=.text --section=.text.startup --section=.data +RISCV_OBJDUMP = $(RISCV_PREFIX)objdump --disassemble-all --disassemble-zeroes --section=.text --section=.text.startup --section=.data RISCV_SIM = spike VPATH += $(addprefix $(bmarkdir)/, $(bmarks)) |