aboutsummaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2016-07-12 11:17:10 -0700
committerAndrew Waterman <waterman@eecs.berkeley.edu>2016-07-12 11:17:10 -0700
commit7f3b666f55c9f01c2f2fd725c1686e1a509df173 (patch)
tree2e256eed2b68c15a0e0dfa6984acf96bd2252fca /benchmarks
parentb6c8a03dcd7ed3c109d2c9da797b295f160f051d (diff)
downloadriscv-tests-7f3b666f55c9f01c2f2fd725c1686e1a509df173.zip
riscv-tests-7f3b666f55c9f01c2f2fd725c1686e1a509df173.tar.gz
riscv-tests-7f3b666f55c9f01c2f2fd725c1686e1a509df173.tar.bz2
Add a "--with-xlen" configure argument (#16)
The tools had riscv64-unknown-elf-gcc hard-coded all over the place. This lets users override that if they have a 32-bit toolchain.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/Makefile b/benchmarks/Makefile
index e294f72..965246e 100644
--- a/benchmarks/Makefile
+++ b/benchmarks/Makefile
@@ -46,7 +46,7 @@ bmarks_host = \
HOST_OPTS = -std=gnu99 -DPREALLOCATE=0 -DHOST_DEBUG=1
HOST_COMP = gcc $(HOST_OPTS)
-RISCV_PREFIX ?= riscv64-unknown-elf-
+RISCV_PREFIX ?= riscv$(XLEN)-unknown-elf-
RISCV_GCC ?= $(RISCV_PREFIX)gcc
RISCV_GCC_OPTS ?= -mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf
RISCV_LINK ?= $(RISCV_GCC) -T $(src_dir)/common/test.ld $(incs)