xref: /openbmc/qemu/tests/tcg/aarch64/Makefile.target (revision 99029be1)
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 pauth-4
22run-pauth-%: QEMU_OPTS += -cpu max
23pauth-%: CFLAGS += -march=armv8.3-a
24
25# Semihosting smoke test for linux-user
26AARCH64_TESTS += semihosting
27run-semihosting: semihosting
28	$(call run-test,$<,$(QEMU) $< 2> $<.err, "$< on $(TARGET_NAME)")
29
30run-plugin-semihosting-with-%:
31	$(call run-test, $@, $(QEMU) $(QEMU_OPTS) \
32		-plugin $(PLUGIN_DIR)/$(call extract-plugin,$@) \
33		 $(call strip-plugin,$<) 2> $<.err, \
34		"$< on $(TARGET_NAME) with $*")
35
36AARCH64_TESTS += semiconsole
37run-semiconsole: semiconsole
38	$(call skip-test, $<, "MANUAL ONLY")
39
40run-plugin-semiconsole-with-%:
41	$(call skip-test, $<, "MANUAL ONLY")
42
43TESTS += $(AARCH64_TESTS)
44