diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2016-09-04 13:14:55 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2016-09-04 13:14:55 -0700 |
commit | 6a2626f617fb55baccc40f729488f4747190bbb4 (patch) | |
tree | a77990302235764f20fd06cfb1f57f63ed3b0182 /benchmarks/Makefile | |
parent | c9022d2f63f50388b2ab1192966f30dbe7819a59 (diff) | |
download | riscv-tests-rvt-master.zip riscv-tests-rvt-master.tar.gz riscv-tests-rvt-master.tar.bz2 |
Add support for a "--with-xlen" argumentrvt-master
This is a backport from the priv-1.9 commit
7f3b666f55c9f01c2f2fd725c1686e1a509df173.
Diffstat (limited to 'benchmarks/Makefile')
-rw-r--r-- | benchmarks/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/benchmarks/Makefile b/benchmarks/Makefile index 26df2a9..e4d1fef 100644 --- a/benchmarks/Makefile +++ b/benchmarks/Makefile @@ -46,7 +46,8 @@ bmarks_host = \ HOST_OPTS = -std=gnu99 -DPREALLOCATE=0 -DHOST_DEBUG=1 HOST_COMP = gcc $(HOST_OPTS) -RISCV_PREFIX ?= riscv64-unknown-elf- +XLEN ?= 64 +RISCV_PREFIX ?= riscv$(XLEN)-unknown-elf- RISCV_GCC ?= $(RISCV_PREFIX)gcc RISCV_GCC_OPTS ?= -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf RISCV_LINK ?= $(RISCV_GCC) -T $(bmarkdir)/common/test.ld $(incs) |