]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
tests/tcg/aarch64: force qarma5 for pauth-3 test
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 13 Jan 2025 12:35:34 +0000 (12:35 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 13 Jan 2025 12:35:34 +0000 (12:35 +0000)
The pauth-3 test explicitly tests that a computation of the
pointer-authentication produces the expected result.  This means that
it must be run with the QARMA5 algorithm.

Explicitly set the pauth algorithm when running this test, so that it
doesn't break when we change the default algorithm the 'max' CPU
uses.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
tests/tcg/aarch64/Makefile.softmmu-target

index d08d9b01deda3ae6030e6307a088801254b4a544..9c52475b7aefa1289b41ea60b7dcbc254ccb5ba3 100644 (file)
@@ -91,6 +91,9 @@ EXTRA_RUNS+=run-memory-replay
 
 ifneq ($(CROSS_CC_HAS_ARMV8_3),)
 pauth-3: CFLAGS += $(CROSS_CC_HAS_ARMV8_3)
+# This test explicitly checks the output of the pauth operation so we
+# must force the use of the QARMA5 algorithm for it.
+run-pauth-3: QEMU_BASE_MACHINE=-M virt -cpu max,pauth-qarma5=on -display none
 else
 pauth-3:
        $(call skip-test, "BUILD of $@", "missing compiler support")