projects
/
riscv-tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
240a4b2
)
only build the rv32 bit tests if xlen is 32
author
Colin Schmidt
<colins@eecs.berkeley.edu>
Sat, 27 Feb 2016 06:01:37 +0000
(22:01 -0800)
committer
Colin Schmidt
<colins@eecs.berkeley.edu>
Sat, 27 Feb 2016 20:04:47 +0000
(12:04 -0800)
isa/Makefile
patch
|
blob
|
history
diff --git
a/isa/Makefile
b/isa/Makefile
index 58ec424b0003988c8e69f0d44704a50bf4aa3c69..f815309144b61e47127c8bb5b4ecdf52ac65aeae 100644
(file)
--- 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
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)
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))
$(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))
$(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))
tests_dump = $(addsuffix .dump, $(tests))
tests_hex = $(addsuffix .hex, $(tests))