Le 17/09/2021 à 10:12, Song Gao a écrit : > Implementation of linux user emulation for LoongArch. > > Signed-off-by: Song Gao <gaos...@loongson.cn> > Signed-off-by: XiaoJuan Yang <yangxiaoj...@loongson.cn> > --- > accel/tcg/user-exec.c | 15 ++ > configure | 5 + > include/elf.h | 2 + > linux-user/elfload.c | 58 ++++++ > linux-user/host/loongarch/hostdep.h | 11 + > linux-user/loongarch64/cpu_loop.c | 97 +++++++++ > linux-user/loongarch64/signal.c | 162 +++++++++++++++ > linux-user/loongarch64/sockbits.h | 1 + > linux-user/loongarch64/syscall_nr.h | 312 > +++++++++++++++++++++++++++++ > linux-user/loongarch64/target_cpu.h | 35 ++++ > linux-user/loongarch64/target_elf.h | 14 ++ > linux-user/loongarch64/target_errno_defs.h | 7 + > linux-user/loongarch64/target_fcntl.h | 12 ++ > linux-user/loongarch64/target_signal.h | 30 +++ > linux-user/loongarch64/target_structs.h | 49 +++++ > linux-user/loongarch64/target_syscall.h | 46 +++++ > linux-user/loongarch64/termbits.h | 1 + > linux-user/syscall_defs.h | 10 +- > 18 files changed, 863 insertions(+), 4 deletions(-) > create mode 100644 linux-user/host/loongarch/hostdep.h > create mode 100644 linux-user/loongarch64/cpu_loop.c > create mode 100644 linux-user/loongarch64/signal.c > create mode 100644 linux-user/loongarch64/sockbits.h > create mode 100644 linux-user/loongarch64/syscall_nr.h > create mode 100644 linux-user/loongarch64/target_cpu.h > create mode 100644 linux-user/loongarch64/target_elf.h > create mode 100644 linux-user/loongarch64/target_errno_defs.h > create mode 100644 linux-user/loongarch64/target_fcntl.h > create mode 100644 linux-user/loongarch64/target_signal.h > create mode 100644 linux-user/loongarch64/target_structs.h > create mode 100644 linux-user/loongarch64/target_syscall.h > create mode 100644 linux-user/loongarch64/termbits.h > ...
> diff --git a/linux-user/loongarch64/syscall_nr.h > b/linux-user/loongarch64/syscall_nr.h > new file mode 100644 > index 0000000..8fbf287 > --- /dev/null > +++ b/linux-user/loongarch64/syscall_nr.h > @@ -0,0 +1,312 @@ > +/* > + * This file contains the system call numbers. > + * Do not modify. > + * This file is generated by scripts/gensyscalls.sh > + */ Where are the changes to scripts/gensyscalls.sh? You need to add something like: generate_syscall_nr loongarch 64 "$output/linux-user/loongarch64/syscall_nr.h" Thanks, Laurent