File tree 10 files changed +11129
-3
lines changed
10 files changed +11129
-3
lines changed Original file line number Diff line number Diff line change @@ -44,5 +44,8 @@ qemu-riscv64 -L /usr/riscv64-linux-gnu ./main.exe >> "$out"
44
44
s390x-linux-gnu-gcc -Iinclude -c list.c $cflags
45
45
s390x-linux-gnu-gcc main.c list.o -o main.exe $cflags
46
46
qemu-s390x -L /usr/s390x-linux-gnu ./main.exe >> " $out "
47
+ loongarch64-linux-gnu-gcc -Iinclude -c list.c $cflags
48
+ loongarch64-linux-gnu-gcc main.c list.o -o main.exe $cflags
49
+ ./main.exe >> " $out "
47
50
48
51
rm list.o main.exe
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ struct sockaddr {
94
94
#include <linux/joystick.h>
95
95
#include <linux/kd.h>
96
96
#include <linux/kcov.h>
97
- #if !defined(__arm__ ) && !defined(__powerpc64__ ) && !defined(__riscv ) // various errors
97
+ #if !defined(__arm__ ) && !defined(__loongarch__ ) && !defined( __powerpc64__ ) && !defined(__riscv ) // various errors
98
98
#include <linux/kvm.h>
99
99
#endif
100
100
#include <linux/lirc.h>
@@ -509,7 +509,7 @@ void list(void) {
509
509
IOCTL_REQUEST (ENI_SETMULT );
510
510
IOCTL_REQUEST (RIO_GET_EVENT_MASK );
511
511
IOCTL_REQUEST (LIRC_GET_MAX_TIMEOUT );
512
- #if !defined(__arm__ ) && !defined(__powerpc64__ ) && !defined(__riscv )
512
+ #if !defined(__arm__ ) && !defined(__loongarch__ ) && !defined( __powerpc64__ ) && !defined(__riscv )
513
513
#if 0 // needs `struct kvm_cpuid2`
514
514
IOCTL_REQUEST (KVM_GET_SUPPORTED_CPUID );
515
515
#endif
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ int main(void) {
43
43
printf ("#if defined(__riscv) && __riscv_xlen == 64\n" );
44
44
#elif defined(__s390x__ )
45
45
printf ("#if defined(__s390x__)\n" );
46
+ #elif defined(__loongarch__ )
47
+ printf ("#ifdef __loongarch__\n" );
46
48
#else
47
49
#error "unimplemented architecture"
48
50
#endif
You can’t perform that action at this time.
0 commit comments