aboutsummaryrefslogtreecommitdiff
path: root/mt
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2014-12-03 17:50:37 -0800
committerAndrew Waterman <waterman@cs.berkeley.edu>2014-12-03 17:50:37 -0800
commit834cd6bd0b65360515ba205ace61c96f83f81867 (patch)
treefc5bd78d41c3cc691a0ec3312d3c350446f6ec51 /mt
parentedc9979273352afaa3e0a3dd2a2495d60e2a9a1e (diff)
downloadriscv-tests-834cd6bd0b65360515ba205ace61c96f83f81867.zip
riscv-tests-834cd6bd0b65360515ba205ace61c96f83f81867.tar.gz
riscv-tests-834cd6bd0b65360515ba205ace61c96f83f81867.tar.bz2
Use new toolchain and calling convention
Diffstat (limited to 'mt')
-rwxr-xr-xmt/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/mt/Makefile b/mt/Makefile
index 16240b0..9829927 100755
--- a/mt/Makefile
+++ b/mt/Makefile
@@ -75,11 +75,12 @@ bmarks = $(bmarks_vvadd) $(bmarks_matmul)
# Build rules
#--------------------------------------------------------------------
-RISCV_GCC = riscv-gcc
+RISCV_PREFIX=riscv64-unknown-elf-
+RISCV_GCC = $(RISCV_PREFIX)gcc
RISCV_GCC_OPTS = -Wa,-march=RVIMAFDXhwacha -std=gnu99 -O2 -ffast-math
-RISCV_LINK = riscv-gcc -T $(common)/test.ld $(incs)
+RISCV_LINK = $(RISCV_GCC) -T $(common)/test.ld $(incs)
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 -p2
VPATH += $(common) $(common)/../mt-matmul $(common)/../mt-vvadd