1b97028b8SRichard Henderson# 2b97028b8SRichard Henderson# RISC-V system tests 3b97028b8SRichard Henderson# 4b97028b8SRichard Henderson 5b97028b8SRichard HendersonTEST_SRC = $(SRC_PATH)/tests/tcg/riscv64 6b97028b8SRichard HendersonVPATH += $(TEST_SRC) 7b97028b8SRichard Henderson 8b97028b8SRichard HendersonLINK_SCRIPT = $(TEST_SRC)/semihost.ld 9b97028b8SRichard HendersonLDFLAGS = -T $(LINK_SCRIPT) 10b97028b8SRichard HendersonCFLAGS += -g -Og 11b97028b8SRichard Henderson 12b97028b8SRichard Henderson%.o: %.S 13*6c180490SRichard Henderson $(CC) $(CFLAGS) $< -Wa,--noexecstack -c -o $@ 14b97028b8SRichard Henderson%: %.o $(LINK_SCRIPT) 15b97028b8SRichard Henderson $(LD) $(LDFLAGS) $< -o $@ 16b97028b8SRichard Henderson 17b97028b8SRichard HendersonQEMU_OPTS += -M virt -display none -semihosting -device loader,file= 18b97028b8SRichard Henderson 19b97028b8SRichard HendersonEXTRA_RUNS += run-issue1060 20b97028b8SRichard Hendersonrun-issue1060: issue1060 21b97028b8SRichard Henderson $(call run-test, $<, $(QEMU) $(QEMU_OPTS)$<) 22d044b7c3SAlex Bennée 23d044b7c3SAlex Bennée# We don't currently support the multiarch system tests 24d044b7c3SAlex Bennéeundefine MULTIARCH_TESTS 25