diff mbox series

[v1,4/6] kselftest/arm64: Add FEAT_RPRFM to the hwcap test

Message ID 20221017152520.1039165-5-broonie@kernel.org (mailing list archive)
State Accepted
Commit 989d37fc3d976f6bfa3f1da484f8f22c57c21c0c
Headers show
Series arm64: Support for 2022 data processing instructions | expand

Commit Message

Mark Brown Oct. 17, 2022, 3:25 p.m. UTC
Since the newly added instruction is in the HINT space we can't reasonably
test for it actually being present.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 tools/testing/selftests/arm64/abi/hwcap.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Catalin Marinas Nov. 9, 2022, 5:31 p.m. UTC | #1
On Mon, Oct 17, 2022 at 04:25:18PM +0100, Mark Brown wrote:
> Since the newly added instruction is in the HINT space we can't reasonably
> test for it actually being present.
> 
> Signed-off-by: Mark Brown <broonie@kernel.org>

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
diff mbox series

Patch

diff --git a/tools/testing/selftests/arm64/abi/hwcap.c b/tools/testing/selftests/arm64/abi/hwcap.c
index c7a6b327a7d0..30f87dfd634e 100644
--- a/tools/testing/selftests/arm64/abi/hwcap.c
+++ b/tools/testing/selftests/arm64/abi/hwcap.c
@@ -138,6 +138,12 @@  static const struct hwcap_data {
 		.cpuinfo = "rng",
 		.sigill_fn = rng_sigill,
 	},
+	{
+		.name = "RPRFM",
+		.at_hwcap = AT_HWCAP2,
+		.hwcap_bit = HWCAP2_RPRFM,
+		.cpuinfo = "rprfm",
+	},
 	{
 		.name = "SME",
 		.at_hwcap = AT_HWCAP2,