]> www.infradead.org Git - users/hch/misc.git/commit
kselftest/arm64: abi: fix SVCR detection
authorWeizhao Ouyang <o451686892@gmail.com>
Wed, 11 Dec 2024 11:16:39 +0000 (19:16 +0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 13 Dec 2024 14:59:37 +0000 (14:59 +0000)
commitce03573a1917532da06057da9f8e74a2ee9e2ac9
treef6ada84dce5e2279919b99fff0af0cb8cc00b4d3
parenta3b4647e2f9ae8e8c6829ce637945b3c07a727ad
kselftest/arm64: abi: fix SVCR detection

When using svcr_in to check ZA and Streaming Mode, we should make sure
that the value in x2 is correct, otherwise it may trigger an Illegal
instruction if FEAT_SVE and !FEAT_SME.

Fixes: 43e3f85523e4 ("kselftest/arm64: Add SME support to syscall ABI test")
Signed-off-by: Weizhao Ouyang <o451686892@gmail.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20241211111639.12344-1-o451686892@gmail.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/abi/syscall-abi-asm.S