diff options
author | Colin Schmidt <colins@eecs.berkeley.edu> | 2016-02-26 22:01:37 -0800 |
---|---|---|
committer | Colin Schmidt <colins@eecs.berkeley.edu> | 2016-02-27 12:04:47 -0800 |
commit | 0a4d7624d35b3a42ae0945d447f7c7e0a012cf82 (patch) | |
tree | 5d904a6ed22b894003f5b2a7f8dac90a0c87091d /isa | |
parent | 240a4b23e0791283fbae34ced137ce644ac140b5 (diff) | |
download | riscv-tests-0a4d7624d35b3a42ae0945d447f7c7e0a012cf82.zip riscv-tests-0a4d7624d35b3a42ae0945d447f7c7e0a012cf82.tar.gz riscv-tests-0a4d7624d35b3a42ae0945d447f7c7e0a012cf82.tar.bz2 |
only build the rv32 bit tests if xlen is 32
Diffstat (limited to 'isa')
-rw-r--r-- | isa/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
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)) |