summaryrefslogtreecommitdiffstats
path: root/tests/tcg/aarch64/Makefile.target
diff options
context:
space:
mode:
authorRichard Henderson2022-04-27 06:23:12 +0200
committerPeter Maydell2022-05-05 10:35:50 +0200
commitcda86e2b46de857e8b6e16ecd13bb85d81e07899 (patch)
treebf6320cd591e079db6260b53488740dd79040376 /tests/tcg/aarch64/Makefile.target
parentMerge tag 'pull-request-2022-05-04' of https://gitlab.com/thuth/qemu into sta... (diff)
downloadqemu-cda86e2b46de857e8b6e16ecd13bb85d81e07899.tar.gz
qemu-cda86e2b46de857e8b6e16ecd13bb85d81e07899.tar.xz
qemu-cda86e2b46de857e8b6e16ecd13bb85d81e07899.zip
target/arm: Enable SCTLR_EL1.BT0 for aarch64-linux-user
This controls whether the PACI{A,B}SP instructions trap with BTYPE=3 (indirect branch from register other than x16/x17). The linux kernel sets this in bti_enable(). Resolves: https://gitlab.com/qemu-project/qemu/-/issues/998 Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20220427042312.294300-1-richard.henderson@linaro.org [PMM: remove stray change to makefile comment] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'tests/tcg/aarch64/Makefile.target')
-rw-r--r--tests/tcg/aarch64/Makefile.target6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tcg/aarch64/Makefile.target b/tests/tcg/aarch64/Makefile.target
index 6ad0ad49f9..d6a74d24dc 100644
--- a/tests/tcg/aarch64/Makefile.target
+++ b/tests/tcg/aarch64/Makefile.target
@@ -28,9 +28,9 @@ endif
# BTI Tests
# bti-1 tests the elf notes, so we require special compiler support.
ifneq ($(CROSS_CC_HAS_ARMV8_BTI),)
-AARCH64_TESTS += bti-1
-bti-1: CFLAGS += -mbranch-protection=standard
-bti-1: LDFLAGS += -nostdlib
+AARCH64_TESTS += bti-1 bti-3
+bti-1 bti-3: CFLAGS += -mbranch-protection=standard
+bti-1 bti-3: LDFLAGS += -nostdlib
endif
# bti-2 tests PROT_BTI, so no special compiler support required.
AARCH64_TESTS += bti-2