Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kselftest/arm64: add float-point feature to hwcap test

Add the FP feature check in the set of hwcap tests.

Signed-off-by: Zeng Heng <zengheng4@huawei.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230808134036.668954-2-zengheng4@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>

authored by

Zeng Heng and committed by
Will Deacon
eb27c76a 672dbf97

+12
+12
tools/testing/selftests/arm64/abi/hwcap.c
··· 39 39 asm volatile(".inst 0xdac01c00" : : : "x0"); 40 40 } 41 41 42 + static void fp_sigill(void) 43 + { 44 + asm volatile("fmov s0, #1"); 45 + } 46 + 42 47 static void ilrcpc_sigill(void) 43 48 { 44 49 /* LDAPUR W0, [SP, #8] */ ··· 239 234 .hwcap_bit = HWCAP2_CSSC, 240 235 .cpuinfo = "cssc", 241 236 .sigill_fn = cssc_sigill, 237 + }, 238 + { 239 + .name = "FP", 240 + .at_hwcap = AT_HWCAP, 241 + .hwcap_bit = HWCAP_FP, 242 + .cpuinfo = "fp", 243 + .sigill_fn = fp_sigill, 242 244 }, 243 245 { 244 246 .name = "LRCPC",