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

Mark Brown
2023-05-12T04:03:08Z

[-- Attachment #1: Type: text/plain, Size: 523 bytes --]

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@kernel.org>

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

Verified against DDI0602 2023-03.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]