]> git.proxmox.com Git - mirror_qemu.git/commit
tests/tcg/aarch64: Adjust pauth tests for FEAT_FPAC
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 29 Aug 2023 23:23:24 +0000 (16:23 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 8 Sep 2023 11:50:44 +0000 (12:50 +0100)
commit871a7f6a9a62df2908f69b43fde4baff36305e34
tree4b033b375686f61a5058938117c5c25a363e0ef6
parent03a3a62fbd0aa5227e978eef3c67d3978aec9e5f
tests/tcg/aarch64: Adjust pauth tests for FEAT_FPAC

With FEAT_FPAC, AUT* instructions that fail authentication
do not produce an error value but instead fault.

For pauth-2, install a signal handler and verify it gets called.

For pauth-4 and pauth-5, we are explicitly testing the error value,
so there's nothing to test with FEAT_FPAC, so exit early.
Adjust the makefile to use -cpu neoverse-v1, which has FEAT_EPAC
but not FEAT_FPAC.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20230829232335.965414-2-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
tests/tcg/aarch64/Makefile.target
tests/tcg/aarch64/pauth-2.c
tests/tcg/aarch64/pauth-4.c
tests/tcg/aarch64/pauth-5.c
tests/tcg/aarch64/pauth.h [new file with mode: 0644]