File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
tools/testing/selftests/arm64/abi Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,20 @@ static void lrcpc_sigill(void)
81
81
asm volatile (".inst 0xb8bfc3e0" : : : );
82
82
}
83
83
84
+ static void lse128_sigill (void )
85
+ {
86
+ u64 __attribute__ ((aligned (16 ))) mem [2 ] = { 10 , 20 };
87
+ register u64 * memp asm ("x0" ) = mem ;
88
+ register u64 val0 asm ("x1" ) = 5 ;
89
+ register u64 val1 asm ("x2" ) = 4 ;
90
+
91
+ /* SWPP X1, X2, [X0] */
92
+ asm volatile (".inst 0x19228001"
93
+ : "+r" (memp ), "+r" (val0 ), "+r" (val1 )
94
+ :
95
+ : "cc" , "memory" );
96
+ }
97
+
84
98
static void mops_sigill (void )
85
99
{
86
100
char dst [1 ], src [1 ];
@@ -390,6 +404,13 @@ static const struct hwcap_data {
390
404
.sigbus_fn = uscat_sigbus ,
391
405
.sigbus_reliable = true,
392
406
},
407
+ {
408
+ .name = "LSE128" ,
409
+ .at_hwcap = AT_HWCAP2 ,
410
+ .hwcap_bit = HWCAP2_LSE128 ,
411
+ .cpuinfo = "lse128" ,
412
+ .sigill_fn = lse128_sigill ,
413
+ },
393
414
{
394
415
.name = "MOPS" ,
395
416
.at_hwcap = AT_HWCAP2 ,
You can’t perform that action at this time.
0 commit comments