kselftest/arm64: Add FEAT_CSSC to the hwcap selftest
Add FEAT_CSSC to the set of features checked by the hwcap selftest. Signed-off-by: Mark Brown <broonie@kernel.org> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Link: https://lore.kernel.org/r/20221017152520.1039165-3-broonie@kernel.org Signed-off-by: Will Deacon <will@kernel.org>
This commit is contained in:
parent
95aa6860d6
commit
b0ab73a547
@ -33,6 +33,12 @@
|
||||
*/
|
||||
typedef void (*sigill_fn)(void);
|
||||
|
||||
static void cssc_sigill(void)
|
||||
{
|
||||
/* CNT x0, x0 */
|
||||
asm volatile(".inst 0xdac01c00" : : : "x0");
|
||||
}
|
||||
|
||||
static void rng_sigill(void)
|
||||
{
|
||||
asm volatile("mrs x0, S3_3_C2_C4_0" : : : "x0");
|
||||
@ -118,6 +124,13 @@ static const struct hwcap_data {
|
||||
sigill_fn sigill_fn;
|
||||
bool sigill_reliable;
|
||||
} hwcaps[] = {
|
||||
{
|
||||
.name = "CSSC",
|
||||
.at_hwcap = AT_HWCAP2,
|
||||
.hwcap_bit = HWCAP2_CSSC,
|
||||
.cpuinfo = "cssc",
|
||||
.sigill_fn = cssc_sigill,
|
||||
},
|
||||
{
|
||||
.name = "RNG",
|
||||
.at_hwcap = AT_HWCAP2,
|
||||
|
Loading…
Reference in New Issue
Block a user