summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSong Gao2022-06-24 05:10:40 +0200
committerRichard Henderson2022-07-04 07:38:57 +0200
commit1f63019632aef190ca927e625966c9864e8cfd07 (patch)
tree70ba6413973b78a092b555d972367c0c6dc5720b /scripts
parentlinux-user: Add LoongArch elf support (diff)
downloadqemu-1f63019632aef190ca927e625966c9864e8cfd07.tar.gz
qemu-1f63019632aef190ca927e625966c9864e8cfd07.tar.xz
qemu-1f63019632aef190ca927e625966c9864e8cfd07.zip
linux-user: Add LoongArch syscall support
Signed-off-by: Song Gao <gaosong@loongson.cn> Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20220624031049.1716097-5-gaosong@loongson.cn> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gensyscalls.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/gensyscalls.sh b/scripts/gensyscalls.sh
index 8fb450e3c9..a2f7664b7b 100755
--- a/scripts/gensyscalls.sh
+++ b/scripts/gensyscalls.sh
@@ -44,6 +44,7 @@ read_includes()
cpp -P -nostdinc -fdirectives-only \
-D_UAPI_ASM_$(upper ${arch})_BITSPERLONG_H \
+ -D__ASM_$(upper ${arch})_BITSPERLONG_H \
-D__BITS_PER_LONG=${bits} \
-I${linux}/arch/${arch}/include/uapi/ \
-I${linux}/include/uapi \
@@ -99,4 +100,5 @@ generate_syscall_nr openrisc 32 "$output/linux-user/openrisc/syscall_nr.h"
generate_syscall_nr riscv 32 "$output/linux-user/riscv/syscall32_nr.h"
generate_syscall_nr riscv 64 "$output/linux-user/riscv/syscall64_nr.h"
generate_syscall_nr hexagon 32 "$output/linux-user/hexagon/syscall_nr.h"
+generate_syscall_nr loongarch 64 "$output/linux-user/loongarch64/syscall_nr.h"
rm -fr "$TMP"