kselftest/arm64: add MOPS to hwcap test
authorKristina Martsenko <kristina.martsenko@arm.com>
Tue, 9 May 2023 14:22:35 +0000 (15:22 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 5 Jun 2023 16:05:42 +0000 (17:05 +0100)
commitd8a324f102cc894fa0df6849504a9023f3ea5da6
tree3db6b85f39dd22c050ce63a0957973dade6f2b11
parent3e1dedb29d0f70b0bd10bb83001df8c04fc246eb
kselftest/arm64: add MOPS to hwcap test

Add the MOPS hwcap to the hwcap kselftest and check that a SIGILL is not
generated when the feature is detected. A SIGILL is reliable when the
feature is not detected as SCTLR_EL1.MSCEn won't have been set.

Signed-off-by: Kristina Martsenko <kristina.martsenko@arm.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230509142235.3284028-12-kristina.martsenko@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/abi/hwcap.c