File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
tools/testing/selftests/arm64/abi Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -295,6 +295,19 @@ static void uscat_sigbus(void)
295
295
asm volatile (".inst 0xb820003f" : : : );
296
296
}
297
297
298
+ static void lrcpc3_sigill (void )
299
+ {
300
+ int data [2 ] = { 1 , 2 };
301
+
302
+ register int * src asm ("x0" ) = data ;
303
+ register int data0 asm ("w2" ) = 0 ;
304
+ register int data1 asm ("w3" ) = 0 ;
305
+
306
+ /* LDIAPP w2, w3, [x0] */
307
+ asm volatile (".inst 0x99431802"
308
+ : "=r" (data0 ), "=r" (data1 ) : "r" (src ) :);
309
+ }
310
+
298
311
static const struct hwcap_data {
299
312
const char * name ;
300
313
unsigned long at_hwcap ;
@@ -354,6 +367,13 @@ static const struct hwcap_data {
354
367
.cpuinfo = "ilrcpc" ,
355
368
.sigill_fn = ilrcpc_sigill ,
356
369
},
370
+ {
371
+ .name = "LRCPC3" ,
372
+ .at_hwcap = AT_HWCAP2 ,
373
+ .hwcap_bit = HWCAP2_LRCPC3 ,
374
+ .cpuinfo = "lrcpc3" ,
375
+ .sigill_fn = lrcpc3_sigill ,
376
+ },
357
377
{
358
378
.name = "LSE" ,
359
379
.at_hwcap = AT_HWCAP ,
You can’t perform that action at this time.
0 commit comments