File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
tools/testing/selftests/arm64/abi Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,17 @@ static void fpmr_sigill(void)
98
98
asm volatile ("mrs x0, S3_3_C4_C4_2" : : : "x0" );
99
99
}
100
100
101
+ static void gcs_sigill (void )
102
+ {
103
+ unsigned long * gcspr ;
104
+
105
+ asm volatile (
106
+ "mrs %0, S3_3_C2_C5_1"
107
+ : "=r" (gcspr )
108
+ :
109
+ : "cc" );
110
+ }
111
+
101
112
static void ilrcpc_sigill (void )
102
113
{
103
114
/* LDAPUR W0, [SP, #8] */
@@ -534,6 +545,14 @@ static const struct hwcap_data {
534
545
.sigill_fn = fpmr_sigill ,
535
546
.sigill_reliable = true,
536
547
},
548
+ {
549
+ .name = "GCS" ,
550
+ .at_hwcap = AT_HWCAP ,
551
+ .hwcap_bit = HWCAP_GCS ,
552
+ .cpuinfo = "gcs" ,
553
+ .sigill_fn = gcs_sigill ,
554
+ .sigill_reliable = true,
555
+ },
537
556
{
538
557
.name = "JSCVT" ,
539
558
.at_hwcap = AT_HWCAP ,
You can’t perform that action at this time.
0 commit comments