File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
tools/testing/selftests/arm64/abi Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,12 @@ static void pmull_sigill(void)
156
156
asm volatile (".inst 0x0ee0e000" : : : );
157
157
}
158
158
159
+ static void poe_sigill (void )
160
+ {
161
+ /* mrs x0, POR_EL0 */
162
+ asm volatile ("mrs x0, S3_3_C10_C2_4" : : : "x0" );
163
+ }
164
+
159
165
static void rng_sigill (void )
160
166
{
161
167
asm volatile ("mrs x0, S3_3_C2_C4_0" : : : "x0" );
@@ -601,6 +607,14 @@ static const struct hwcap_data {
601
607
.cpuinfo = "pmull" ,
602
608
.sigill_fn = pmull_sigill ,
603
609
},
610
+ {
611
+ .name = "POE" ,
612
+ .at_hwcap = AT_HWCAP2 ,
613
+ .hwcap_bit = HWCAP2_POE ,
614
+ .cpuinfo = "poe" ,
615
+ .sigill_fn = poe_sigill ,
616
+ .sigill_reliable = true,
617
+ },
604
618
{
605
619
.name = "RNG" ,
606
620
.at_hwcap = AT_HWCAP2 ,
You can’t perform that action at this time.
0 commit comments