qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RESEND PATCH v9 00/28] Add LoongArch linux-user emulation support
@ 2021-11-08  3:07 Song Gao
  2021-11-08  3:07 ` [RESEND PATCH v9 01/28] target/loongarch: Add README Song Gao
                   ` (28 more replies)
  0 siblings, 29 replies; 32+ messages in thread
From: Song Gao @ 2021-11-08  3:07 UTC (permalink / raw)
  To: qemu-devel

Hi all,

This series only support linux-user emulation.
More about LoongArch at: https://github.com/loongson/

The latest kernel:
  * https://github.com/loongson/linux/tree/loongarch-next


Patches need review:
  * 0002-target-loongarch-Add-core-definition.patch
  * 0016-target-loongarch-Add-disassembler.patch
  * 0017-linux-user-Add-LoongArch-generic-header-files.patch
  * 0018-linux-user-Add-LoongArch-specific-structures.patch
  * 0019-linux-user-Add-LoongArch-signal-support.patch
  * 0020-linux-user-Add-LoongArch-elf-support.patch
  * 0021-linux-user-Add-LoongArch-syscall-support.patch
  * 0022-linux-user-Add-LoongArch-cpu_loop-support.patch
  * 0028-linux-user-host-loongarch64-Populate-host_signal.h.patch

Changes for v9:
  * Use GPL-2.0+ SPDX license identifier.
  * Move set_loongarch_cpucfg() in loongarch_3a5000_initfn().
  * target/loongarch/insn_trans/trans_xxx.c rename to
    target/loongarch/insn_trans/trans_xxx.c.inc.
  * Split host_signal_pc and host_signal_write out of user-exec.c.

Changes for v8:
  * Use the FIELD functions to define cpucfg[i].
  * Re-use the decodetree to disassembler description.
  * Split v7 patch(0017-LoongArch-Linux-User-Emulation.patch).

Changes for v7:
  * scripts/gensyscalls.sh support loongarch64
    if we use gensyscalls.sh, we need disable __BITS_PER_LONG at arch/loongarch/include/uapi/asm/bitsperlong.h


V8: https://patchew.org/QEMU/1635760311-20015-1-git-send-email-gaosong@loongson.cn/
v7: https://patchew.org/QEMU/1634561247-25499-1-git-send-email-gaosong@loongson.cn/

Please review!

Thanks.


Song Gao (26):
  target/loongarch: Add README
  target/loongarch: Add core definition
  target/loongarch: Add main translation routines
  target/loongarch: Add fixed point arithmetic instruction translation
  target/loongarch: Add fixed point shift instruction translation
  target/loongarch: Add fixed point bit instruction translation
  target/loongarch: Add fixed point load/store instruction translation
  target/loongarch: Add fixed point atomic instruction translation
  target/loongarch: Add fixed point extra instruction translation
  target/loongarch: Add floating point arithmetic instruction
    translation
  target/loongarch: Add floating point comparison instruction
    translation
  target/loongarch: Add floating point conversion instruction
    translation
  target/loongarch: Add floating point move instruction translation
  target/loongarch: Add floating point load/store instruction
    translation
  target/loongarch: Add branch instruction translation
  target/loongarch: Add disassembler
  linux-user: Add LoongArch generic header files
  linux-user: Add LoongArch specific structures
  linux-user: Add LoongArch signal support
  linux-user: Add LoongArch elf support
  linux-user: Add LoongArch syscall support
  linux-user: Add LoongArch cpu_loop support
  default-configs: Add loongarch linux-user support
  target/loongarch: Add target build suport
  target/loongarch: 'make check-tcg' support
  scripts: add loongarch64 binfmt config

WANG Xuerui (2):
  linux-user: Add safe syscall handling for loongarch64 hosts
  linux-user/host/loongarch64: Populate host_signal.h

 MAINTAINERS                                     |   5 +
 configs/targets/loongarch64-linux-user.mak      |   3 +
 configure                                       |   5 +
 include/disas/dis-asm.h                         |   2 +
 include/elf.h                                   |   2 +
 linux-user/elfload.c                            |  58 ++
 linux-user/host/loongarch64/host-signal.h       |  83 +++
 linux-user/host/loongarch64/hostdep.h           |  32 +
 linux-user/host/loongarch64/safe-syscall.inc.S  |  78 ++
 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             |  34 +
 linux-user/loongarch64/target_elf.h             |  12 +
 linux-user/loongarch64/target_errno_defs.h      |   7 +
 linux-user/loongarch64/target_fcntl.h           |   6 +
 linux-user/loongarch64/target_signal.h          |  29 +
 linux-user/loongarch64/target_structs.h         |  48 ++
 linux-user/loongarch64/target_syscall.h         |  45 ++
 linux-user/loongarch64/termbits.h               |   1 +
 linux-user/syscall_defs.h                       |  10 +-
 meson.build                                     |   3 +-
 scripts/gensyscalls.sh                          |   1 +
 scripts/qemu-binfmt-conf.sh                     |   6 +-
 target/loongarch/README                         |  76 ++
 target/loongarch/cpu-param.h                    |  18 +
 target/loongarch/cpu.c                          | 315 ++++++++
 target/loongarch/cpu.h                          | 253 +++++++
 target/loongarch/disas.c                        | 918 ++++++++++++++++++++++++
 target/loongarch/fpu_helper.c                   | 864 ++++++++++++++++++++++
 target/loongarch/helper.h                       |  94 +++
 target/loongarch/insn_trans/trans_arith.c.inc   | 319 ++++++++
 target/loongarch/insn_trans/trans_atomic.c.inc  | 130 ++++
 target/loongarch/insn_trans/trans_bit.c.inc     | 252 +++++++
 target/loongarch/insn_trans/trans_branch.c.inc  |  82 +++
 target/loongarch/insn_trans/trans_extra.c.inc   |  84 +++
 target/loongarch/insn_trans/trans_farith.c.inc  | 105 +++
 target/loongarch/insn_trans/trans_fcmp.c.inc    |  56 ++
 target/loongarch/insn_trans/trans_fcnv.c.inc    |  33 +
 target/loongarch/insn_trans/trans_fmemory.c.inc | 184 +++++
 target/loongarch/insn_trans/trans_fmov.c.inc    | 150 ++++
 target/loongarch/insn_trans/trans_memory.c.inc  | 232 ++++++
 target/loongarch/insn_trans/trans_shift.c.inc   | 128 ++++
 target/loongarch/insns.decode                   | 479 +++++++++++++
 target/loongarch/internals.h                    |  28 +
 target/loongarch/meson.build                    |  19 +
 target/loongarch/op_helper.c                    |  84 +++
 target/loongarch/translate.c                    | 287 ++++++++
 target/loongarch/translate.h                    |  45 ++
 target/meson.build                              |   1 +
 tests/tcg/configure.sh                          |   1 +
 52 files changed, 6273 insertions(+), 6 deletions(-)
 create mode 100644 configs/targets/loongarch64-linux-user.mak
 create mode 100644 linux-user/host/loongarch64/host-signal.h
 create mode 100644 linux-user/host/loongarch64/hostdep.h
 create mode 100644 linux-user/host/loongarch64/safe-syscall.inc.S
 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
 create mode 100644 target/loongarch/README
 create mode 100644 target/loongarch/cpu-param.h
 create mode 100644 target/loongarch/cpu.c
 create mode 100644 target/loongarch/cpu.h
 create mode 100644 target/loongarch/disas.c
 create mode 100644 target/loongarch/fpu_helper.c
 create mode 100644 target/loongarch/helper.h
 create mode 100644 target/loongarch/insn_trans/trans_arith.c.inc
 create mode 100644 target/loongarch/insn_trans/trans_atomic.c.inc
 create mode 100644 target/loongarch/insn_trans/trans_bit.c.inc
 create mode 100644 target/loongarch/insn_trans/trans_branch.c.inc
 create mode 100644 target/loongarch/insn_trans/trans_extra.c.inc
 create mode 100644 target/loongarch/insn_trans/trans_farith.c.inc
 create mode 100644 target/loongarch/insn_trans/trans_fcmp.c.inc
 create mode 100644 target/loongarch/insn_trans/trans_fcnv.c.inc
 create mode 100644 target/loongarch/insn_trans/trans_fmemory.c.inc
 create mode 100644 target/loongarch/insn_trans/trans_fmov.c.inc
 create mode 100644 target/loongarch/insn_trans/trans_memory.c.inc
 create mode 100644 target/loongarch/insn_trans/trans_shift.c.inc
 create mode 100644 target/loongarch/insns.decode
 create mode 100644 target/loongarch/internals.h
 create mode 100644 target/loongarch/meson.build
 create mode 100644 target/loongarch/op_helper.c
 create mode 100644 target/loongarch/translate.c
 create mode 100644 target/loongarch/translate.h

-- 
1.8.3.1



^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2021-11-09 12:14 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-08  3:07 [RESEND PATCH v9 00/28] Add LoongArch linux-user emulation support Song Gao
2021-11-08  3:07 ` [RESEND PATCH v9 01/28] target/loongarch: Add README Song Gao
2021-11-08  3:07 ` [RESEND PATCH v9 02/28] target/loongarch: Add core definition Song Gao
2021-11-08  3:07 ` [RESEND PATCH v9 03/28] target/loongarch: Add main translation routines Song Gao
2021-11-08  3:07 ` [RESEND PATCH v9 04/28] target/loongarch: Add fixed point arithmetic instruction translation Song Gao
2021-11-08  3:07 ` [RESEND PATCH v9 05/28] target/loongarch: Add fixed point shift " Song Gao
2021-11-08  3:07 ` [RESEND PATCH v9 06/28] target/loongarch: Add fixed point bit " Song Gao
2021-11-08  3:07 ` [RESEND PATCH v9 07/28] target/loongarch: Add fixed point load/store " Song Gao
2021-11-08  3:07 ` [RESEND PATCH v9 08/28] target/loongarch: Add fixed point atomic " Song Gao
2021-11-08  3:07 ` [RESEND PATCH v9 09/28] target/loongarch: Add fixed point extra " Song Gao
2021-11-08  3:07 ` [RESEND PATCH v9 10/28] target/loongarch: Add floating point arithmetic " Song Gao
2021-11-08  3:07 ` [RESEND PATCH v9 11/28] target/loongarch: Add floating point comparison " Song Gao
2021-11-08  3:07 ` [RESEND PATCH v9 12/28] target/loongarch: Add floating point conversion " Song Gao
2021-11-08  3:08 ` [RESEND PATCH v9 13/28] target/loongarch: Add floating point move " Song Gao
2021-11-08  3:08 ` [RESEND PATCH v9 14/28] target/loongarch: Add floating point load/store " Song Gao
2021-11-08  3:08 ` [RESEND PATCH v9 15/28] target/loongarch: Add branch " Song Gao
2021-11-08  3:08 ` [RESEND PATCH v9 16/28] target/loongarch: Add disassembler Song Gao
2021-11-09 12:01   ` Richard Henderson
2021-11-09 12:02   ` Richard Henderson
2021-11-08  3:08 ` [RESEND PATCH v9 17/28] linux-user: Add LoongArch generic header files Song Gao
2021-11-08  3:08 ` [RESEND PATCH v9 18/28] linux-user: Add LoongArch specific structures Song Gao
2021-11-08  3:08 ` [RESEND PATCH v9 19/28] linux-user: Add LoongArch signal support Song Gao
2021-11-08  3:08 ` [RESEND PATCH v9 20/28] linux-user: Add LoongArch elf support Song Gao
2021-11-08  3:08 ` [RESEND PATCH v9 21/28] linux-user: Add LoongArch syscall support Song Gao
2021-11-08  3:08 ` [RESEND PATCH v9 22/28] linux-user: Add LoongArch cpu_loop support Song Gao
2021-11-08  3:08 ` [RESEND PATCH v9 23/28] default-configs: Add loongarch linux-user support Song Gao
2021-11-08  3:08 ` [RESEND PATCH v9 24/28] target/loongarch: Add target build suport Song Gao
2021-11-08  3:08 ` [RESEND PATCH v9 25/28] target/loongarch: 'make check-tcg' support Song Gao
2021-11-08  3:08 ` [RESEND PATCH v9 26/28] scripts: add loongarch64 binfmt config Song Gao
2021-11-08  3:08 ` [RESEND PATCH v9 27/28] linux-user: Add safe syscall handling for loongarch64 hosts Song Gao
2021-11-08  3:08 ` [RESEND PATCH v9 28/28] linux-user/host/loongarch64: Populate host_signal.h Song Gao
2021-11-09 12:12 ` [RESEND PATCH v9 00/28] Add LoongArch linux-user emulation support Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).