From 0a4d7624d35b3a42ae0945d447f7c7e0a012cf82 Mon Sep 17 00:00:00 2001 From: Colin Schmidt Date: Fri, 26 Feb 2016 22:01:37 -0800 Subject: [PATCH] only build the rv32 bit tests if xlen is 32 --- isa/Makefile | 3 +++ 1 file changed, 3 insertions(+) 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)) -- 2.30.2