[PATCH v2 11/11] kselftest/arm64: add MOPS to hwcap test

Mark Brown broonie at kernel.org
Thu May 11 21:02:57 PDT 2023


On Tue, May 09, 2023 at 03:22:35PM +0100, Kristina Martsenko wrote:
> 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.

Reviewed-by: Mark Brown <broonie at kernel.org>

> +	/* CPYP [x0]!, [x1]!, x2! */
> +	asm volatile(".inst 0x1d010440"
> +		     : "+r" (dstp), "+r" (srcp), "+r" (size)
> +		     :
> +		     : "cc", "memory");

Verified against DDI0602 2023-03.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20230512/2d8811f4/attachment-0001.sig>


More information about the linux-arm-kernel mailing list