qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/22] Add LoongArch linux-user emulation support
@ 2021-07-21  9:52 Song Gao
  2021-07-21  9:52 ` [PATCH v2 01/22] target/loongarch: Add README Song Gao
                   ` (21 more replies)
  0 siblings, 22 replies; 76+ messages in thread
From: Song Gao @ 2021-07-21  9:52 UTC (permalink / raw)
  To: qemu-devel
  Cc: peter.maydell, thuth, chenhuacai, philmd, richard.henderson,
	laurent, maobibo, yangxiaojuan, alistair.francis, pbonzini,
	alex.bennee

Hi,

This series only adds linux-user emulation support for LoongArch.
So there is no introduction of system in docs/system directory,
We'll add that in a future series.

Changes for v1:
  * Patch 1, remove unnecessary introduction;
  * Patch 3, follow the ARM/AVR pattern to add new CPU features;
  * Patch 6, remove decode_lsx(); 
  * Patches 7-18, delete opcode definition, modify translation function;
  * Patches 20-22, split V1 patch20 to V2 patch20-22. 

In the next series, we will add privileged instruction emulation, 
board emulation and TCG test. Please review.

Regards
Song Gao

Song Gao (22):
  target/loongarch: Add README
  target/loongarch: Add CSR registers definition
  target/loongarch: Add core definition
  target/loongarch: Add interrupt handling support
  target/loongarch: Add memory management support
  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
  LoongArch Linux User Emulation
  configs: Add loongarch linux-user config
  target/loongarch: Add target build suport

 MAINTAINERS                                |    7 +
 configs/targets/loongarch64-linux-user.mak |    3 +
 disas/loongarch.c                          | 2511 +++++++++++++
 disas/meson.build                          |    1 +
 include/disas/dis-asm.h                    |    2 +
 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                  |   10 +-
 meson.build                                |    1 +
 target/loongarch/README                    |    5 +
 target/loongarch/cpu-csr.h                 |  724 ++++
 target/loongarch/cpu-param.h               |   21 +
 target/loongarch/cpu-qom.h                 |   40 +
 target/loongarch/cpu.c                     |  319 ++
 target/loongarch/cpu.h                     |  299 ++
 target/loongarch/fpu_helper.c              | 1435 +++++++
 target/loongarch/fpu_helper.h              |   34 +
 target/loongarch/helper.h                  |  158 +
 target/loongarch/insns.decode              |  480 +++
 target/loongarch/meson.build               |   19 +
 target/loongarch/op_helper.c               |  230 ++
 target/loongarch/tlb_helper.c              |  103 +
 target/loongarch/trans.inc.c               | 5536 ++++++++++++++++++++++++++++
 target/loongarch/translate.c               |  558 +++
 target/loongarch/translate.h               |   50 +
 target/meson.build                         |    1 +
 37 files changed, 13695 insertions(+), 4 deletions(-)
 create mode 100644 configs/targets/loongarch64-linux-user.mak
 create mode 100644 disas/loongarch.c
 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_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-csr.h
 create mode 100644 target/loongarch/cpu-param.h
 create mode 100644 target/loongarch/cpu-qom.h
 create mode 100644 target/loongarch/cpu.c
 create mode 100644 target/loongarch/cpu.h
 create mode 100644 target/loongarch/fpu_helper.c
 create mode 100644 target/loongarch/fpu_helper.h
 create mode 100644 target/loongarch/helper.h
 create mode 100644 target/loongarch/insns.decode
 create mode 100644 target/loongarch/meson.build
 create mode 100644 target/loongarch/op_helper.c
 create mode 100644 target/loongarch/tlb_helper.c
 create mode 100644 target/loongarch/trans.inc.c
 create mode 100644 target/loongarch/translate.c
 create mode 100644 target/loongarch/translate.h

-- 
1.8.3.1



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

end of thread, other threads:[~2021-08-12 19:33 UTC | newest]

Thread overview: 76+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-21  9:52 [PATCH v2 00/22] Add LoongArch linux-user emulation support Song Gao
2021-07-21  9:52 ` [PATCH v2 01/22] target/loongarch: Add README Song Gao
2021-07-21  9:52 ` [PATCH v2 02/22] target/loongarch: Add CSR registers definition Song Gao
2021-07-21  9:52 ` [PATCH v2 03/22] target/loongarch: Add core definition Song Gao
2021-07-22 22:43   ` Richard Henderson
2021-07-26  8:47     ` Song Gao
2021-07-26 15:32       ` Richard Henderson
2021-07-21  9:53 ` [PATCH v2 04/22] target/loongarch: Add interrupt handling support Song Gao
2021-07-22 22:47   ` Richard Henderson
2021-07-26  9:23     ` Song Gao
2021-07-21  9:53 ` [PATCH v2 05/22] target/loongarch: Add memory management support Song Gao
2021-07-22 22:48   ` Richard Henderson
2021-07-26  9:25     ` Song Gao
2021-07-21  9:53 ` [PATCH v2 06/22] target/loongarch: Add main translation routines Song Gao
2021-07-22 23:50   ` Richard Henderson
2021-07-26  9:39     ` Song Gao
2021-07-26 15:35       ` Richard Henderson
2021-07-21  9:53 ` [PATCH v2 07/22] target/loongarch: Add fixed point arithmetic instruction translation Song Gao
2021-07-21 17:38   ` Philippe Mathieu-Daudé
2021-07-21 17:49     ` Philippe Mathieu-Daudé
2021-07-22  7:41       ` Song Gao
2021-07-23  0:46   ` Richard Henderson
2021-07-26 11:56     ` Song Gao
2021-07-26 15:53       ` Richard Henderson
2021-07-27  1:51         ` Song Gao
2021-07-21  9:53 ` [PATCH v2 08/22] target/loongarch: Add fixed point shift " Song Gao
2021-07-23  0:51   ` Richard Henderson
2021-07-26 11:57     ` Song Gao
2021-07-21  9:53 ` [PATCH v2 09/22] target/loongarch: Add fixed point bit " Song Gao
2021-07-21 17:46   ` Philippe Mathieu-Daudé
2021-07-22  8:17     ` Song Gao
2021-07-23  1:29   ` Richard Henderson
2021-07-26 12:22     ` Song Gao
2021-07-26 16:39       ` Richard Henderson
2021-07-21  9:53 ` [PATCH v2 10/22] target/loongarch: Add fixed point load/store " Song Gao
2021-07-23  1:45   ` Richard Henderson
2021-07-26 12:25     ` Song Gao
2021-07-21  9:53 ` [PATCH v2 11/22] target/loongarch: Add fixed point atomic " Song Gao
2021-07-23  1:49   ` Richard Henderson
2021-07-26 12:25     ` Song Gao
2021-07-21  9:53 ` [PATCH v2 12/22] target/loongarch: Add fixed point extra " Song Gao
2021-07-23  5:12   ` Richard Henderson
2021-07-26 12:57     ` Song Gao
2021-07-26 16:42       ` Richard Henderson
2021-07-27  1:46         ` Song Gao
2021-08-04  7:40     ` Song Gao
2021-08-04  7:51       ` Song Gao
2021-07-21  9:53 ` [PATCH v2 13/22] target/loongarch: Add floating point arithmetic " Song Gao
2021-07-23  5:44   ` Richard Henderson
2021-07-27  7:17     ` Song Gao
2021-07-27 16:12       ` Richard Henderson
2021-07-28  1:18         ` Song Gao
2021-07-21  9:53 ` [PATCH v2 14/22] target/loongarch: Add floating point comparison " Song Gao
2021-07-23  6:11   ` Richard Henderson
2021-07-27  7:56     ` Song Gao
2021-07-21  9:53 ` [PATCH v2 15/22] target/loongarch: Add floating point conversion " Song Gao
2021-07-23  6:16   ` Richard Henderson
2021-07-27  7:57     ` Song Gao
2021-07-21  9:53 ` [PATCH v2 16/22] target/loongarch: Add floating point move " Song Gao
2021-07-23  6:29   ` Richard Henderson
2021-07-27  8:06     ` Song Gao
2021-08-12  9:20     ` Song Gao
2021-08-12 19:31       ` Richard Henderson
2021-07-21  9:53 ` [PATCH v2 17/22] target/loongarch: Add floating point load/store " Song Gao
2021-07-23  6:34   ` Richard Henderson
2021-07-27  8:07     ` Song Gao
2021-07-21  9:53 ` [PATCH v2 18/22] target/loongarch: Add branch " Song Gao
2021-07-23  6:38   ` Richard Henderson
2021-07-27  8:07     ` Song Gao
2021-07-21  9:53 ` [PATCH v2 19/22] target/loongarch: Add disassembler Song Gao
2021-07-23  6:40   ` Richard Henderson
2021-08-12 10:33   ` Philippe Mathieu-Daudé
2021-07-21  9:53 ` [PATCH v2 20/22] LoongArch Linux User Emulation Song Gao
2021-07-21  9:53 ` [PATCH v2 21/22] configs: Add loongarch linux-user config Song Gao
2021-07-23  6:43   ` Richard Henderson
2021-07-21  9:53 ` [PATCH v2 22/22] target/loongarch: Add target build suport Song Gao

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).