From: Colin Schmidt Date: Sat, 27 Feb 2016 06:01:37 +0000 (-0800) Subject: only build the rv32 bit tests if xlen is 32 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a4d7624d35b3a42ae0945d447f7c7e0a012cf82;p=riscv-tests.git only build the rv32 bit tests if xlen is 32 --- diff --git a/isa/Makefile b/isa/Makefile index 58ec424..f815309 100644 --- a/isa/Makefile +++ b/isa/Makefile @@ -24,6 +24,7 @@ ENTROPY ?= -DENTROPY=$(shell echo $$$$) RISCV_GCC_OPTS ?= $(ENTROPY) -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles RISCV_OBJDUMP ?= $(RISCV_PREFIX)objdump --disassemble-all --disassemble-zeroes --section=.text --section=.text.startup --section=.text.init --section=.data RISCV_SIM ?= spike +XLEN ?= 64 vpath %.S $(isa_src_dir) @@ -74,10 +75,12 @@ endef $(eval $(call compile_template,rv32ui,-m32)) $(eval $(call compile_template,rv32si,-m32)) $(eval $(call compile_template,rv32mi,-m32)) +ifeq ($(xlen),64) $(eval $(call compile_template,rv64ui)) $(eval $(call compile_template,rv64uf)) $(eval $(call compile_template,rv64si)) $(eval $(call compile_template,rv64mi)) +endif tests_dump = $(addsuffix .dump, $(tests)) tests_hex = $(addsuffix .hex, $(tests))