qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v14 21/26] linux-user: Add LoongArch syscall support


From: WANG Xuerui
Subject: Re: [PATCH v14 21/26] linux-user: Add LoongArch syscall support
Date: Sun, 9 Jan 2022 17:25:35 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Thunderbird/97.0a1


On 1/6/22 17:41, Song Gao wrote:
We should disable '__BITS_PER_LONG' at [1] before run gensyscalls.sh

  [1] arch/loongarch/include/uapi/asm/bitsperlong.h

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>
---
  linux-user/loongarch64/syscall_nr.h     | 313 ++++++++++++++++++++++++
  linux-user/loongarch64/target_syscall.h |  48 ++++
  linux-user/syscall_defs.h               |  10 +-
  scripts/gensyscalls.sh                  |   1 +
  4 files changed, 368 insertions(+), 4 deletions(-)
  create mode 100644 linux-user/loongarch64/syscall_nr.h
  create mode 100644 linux-user/loongarch64/target_syscall.h

This is exactly what we don't want to merge before the Linux port (and glibc) lands; things like UNAME_MINIMUM_RELEASE and the syscall numbers certainly need to be updated afterwards. Otherwise everything looks good though.

The "struct { ... } csr" part suggested by Philippe is deviating from the kernel sources, but the memory layout is the same, and in looking at other targets it seems we're not required to keep exact correspondence with kernel -- am I right? (Many targets do use the exact definition as kernel, e.g. aarch64, though)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]