xref: /openbmc/qemu/tests/tcg/aarch64/Makefile.target (revision f3635813)
1# -*- Mode: makefile -*-
2#
3# AArch64 specific tweaks
4
5ARM_SRC=$(SRC_PATH)/tests/tcg/arm
6VPATH 		+= $(ARM_SRC)
7
8AARCH64_SRC=$(SRC_PATH)/tests/tcg/aarch64
9VPATH 		+= $(AARCH64_SRC)
10
11# Float-convert Tests
12AARCH64_TESTS=fcvt
13
14fcvt: LDFLAGS+=-lm
15
16run-fcvt: fcvt
17	$(call run-test,$<,$(QEMU) $<, "$< on $(TARGET_NAME)")
18	$(call diff-out,$<,$(AARCH64_SRC)/fcvt.ref)
19
20# Pauth Tests
21AARCH64_TESTS += pauth-1 pauth-2
22run-pauth-%: QEMU_OPTS += -cpu max
23
24# Semihosting smoke test for linux-user
25AARCH64_TESTS += semihosting
26run-semihosting: semihosting
27	$(call run-test,$<,$(QEMU) $< 2> $<.err, "$< on $(TARGET_NAME)")
28
29run-plugin-semihosting-with-%:
30	$(call run-test, $@, $(QEMU) $(QEMU_OPTS) \
31		-plugin $(PLUGIN_DIR)/$(call extract-plugin,$@) \
32		 $(call strip-plugin,$<) 2> $<.err, \
33		"$< on $(TARGET_NAME) with $*")
34
35TESTS += $(AARCH64_TESTS)
36