[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 20/20] target/loongarch: Add linux-user emulation support
From: |
Peter Maydell |
Subject: |
Re: [PATCH 20/20] target/loongarch: Add linux-user emulation support |
Date: |
Tue, 29 Jun 2021 14:42:12 +0100 |
On Mon, 28 Jun 2021 at 13:05, Song Gao <gaosong@loongson.cn> wrote:
>
> Add files to linux-user/loongarch64
> Add file to default-configs
> Add loongarch to target/meson.build
>
> Signed-off-by: Song Gao <gaosong@loongson.cn>
> ---
> MAINTAINERS | 1 +
> default-configs/targets/loongarch64-linux-user.mak | 4 +
> include/elf.h | 2 +
> linux-user/elfload.c | 58 ++++
> linux-user/loongarch64/cpu_loop.c | 177 ++++++++++++
> linux-user/loongarch64/signal.c | 193 +++++++++++++
> linux-user/loongarch64/sockbits.h | 1 +
> linux-user/loongarch64/syscall_nr.h | 307
> +++++++++++++++++++++
> linux-user/loongarch64/target_cpu.h | 36 +++
> linux-user/loongarch64/target_elf.h | 14 +
> linux-user/loongarch64/target_fcntl.h | 12 +
> linux-user/loongarch64/target_signal.h | 28 ++
> linux-user/loongarch64/target_structs.h | 49 ++++
> linux-user/loongarch64/target_syscall.h | 46 +++
> linux-user/loongarch64/termbits.h | 229 +++++++++++++++
> linux-user/syscall_defs.h | 8 +-
> meson.build | 2 +-
> qapi/machine-target.json | 4 +-
> target/loongarch/meson.build | 19 ++
> target/meson.build | 1 +
> 20 files changed, 1185 insertions(+), 6 deletions(-)
This is a massive patch that would benefit from being split up
into multiple smaller patches.
I'm told by a kernel developer that loongarch hasn't yet been
accepted into the Linux kernel mainline. Until it has been, the
syscall ABI for it is not yet stable, so we won't be able to take
the linux-user patches for it yet. (We have been burned in the
past by taking linux-user architecture support patches without
realizing they weren't for a stable ABI, and then being out of
sync with the eventual upstream kernel ABI that was accepted.)
We can certainly do code review in the meantime, though.
thanks
-- PMM
- [PATCH 08/20] target/loongarch: Add fixed point shift instruction translation, (continued)
- [PATCH 08/20] target/loongarch: Add fixed point shift instruction translation, Song Gao, 2021/06/28
- [PATCH 07/20] target/loongarch: Add fixed point arithmetic instruction translation, Song Gao, 2021/06/28
- [PATCH 10/20] target/loongarch: Add fixed point load/store instruction translation, Song Gao, 2021/06/28
- [PATCH 09/20] target/loongarch: Add fixed point bit instruction translation, Song Gao, 2021/06/28
- [PATCH 12/20] target/loongarch: Add fixed point extra instruction translation, Song Gao, 2021/06/28
- [PATCH 11/20] target/loongarch: Add fixed point atomic instruction translation, Song Gao, 2021/06/28
- [PATCH 15/20] target/loongarch: Add floating point conversion instruction translation, Song Gao, 2021/06/28
- [PATCH 14/20] target/loongarch: Add floating point comparison instruction translation, Song Gao, 2021/06/28
- [PATCH 13/20] target/loongarch: Add floating point arithmetic instruction translation, Song Gao, 2021/06/28
- [PATCH 20/20] target/loongarch: Add linux-user emulation support, Song Gao, 2021/06/28
- Re: [PATCH 20/20] target/loongarch: Add linux-user emulation support,
Peter Maydell <=
- Re: [PATCH 20/20] target/loongarch: Add linux-user emulation support, Song Gao, 2021/06/29
[PATCH 18/20] target/loongarch: Add branch instruction translation, Song Gao, 2021/06/28
[PATCH 16/20] target/loongarch: Add floating point move instruction translation, Song Gao, 2021/06/28
[PATCH 17/20] target/loongarch: Add floating point load/store instruction translation, Song Gao, 2021/06/28
[PATCH 19/20] target/loongarch: Add disassembler, Song Gao, 2021/06/28
[PATCH 05/20] target/loongarch: Add memory management support, Song Gao, 2021/06/28
[PATCH 06/20] target/loongarch: Add main translation routines, Song Gao, 2021/06/28