All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 00/43] Add LoongArch softmmu support
@ 2022-04-15  9:40 Xiaojuan Yang
  2022-04-15  9:40 ` [PATCH v1 01/43] target/loongarch: Add README Xiaojuan Yang
                   ` (42 more replies)
  0 siblings, 43 replies; 80+ messages in thread
From: Xiaojuan Yang @ 2022-04-15  9:40 UTC (permalink / raw)
  To: qemu-devel; +Cc: mark.cave-ayland, richard.henderson, gaosong

Hi All,

As this series only supports running binary files in ELF format, and does not depend on
BIOS and kernel file. so this series are changed from RFC to patch v1.

The manual:
  - https://github.com/loongson/LoongArch-Documentation/releases/tag/2022.03.17

Old series:
  - https://patchew.org/QEMU/20220328125749.2918087-1-yangxiaojuan@loongson.cn/
  - https://patchew.org/QEMU/20220106094200.1801206-1-gaosong@loongson.cn/

Thanks.
Xiaojuan

Song Gao (18):
  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
  target/loongarch: Add target build suport
  target/loongarch: 'make check-tcg' support

Xiaojuan Yang (25):
  target/loongarch: Add system emulation introduction
  target/loongarch: Add CSRs definition
  target/loongarch: Add basic vmstate description of CPU.
  target/loongarch: Implement qmp_query_cpu_definitions()
  target/loongarch: Add MMU support for LoongArch CPU.
  target/loongarch: Add LoongArch interrupt and exception handle
  target/loongarch: Add constant timer support
  target/loongarch: Add LoongArch CSR instruction
  target/loongarch: Add LoongArch IOCSR instruction
  target/loongarch: Add TLB instruction support
  target/loongarch: Add other core instructions support
  target/loongarch: Add timer related instructions support.
  target/loongarch: Add gdb support.
  hw/loongarch: Add support loongson3 virt machine type.
  hw/loongarch: Add LoongArch ipi interrupt support(IPI)
  hw/intc: Add LoongArch ls7a interrupt controller support(PCH-PIC)
  hw/intc: Add LoongArch ls7a msi interrupt controller support(PCH-MSI)
  hw/intc: Add LoongArch extioi interrupt controller(EIOINTC)
  hw/loongarch: Add irq hierarchy for the system
  Enable common virtio pci support for LoongArch
  hw/loongarch: Add some devices support for 3A5000.
  hw/loongarch: Add LoongArch ls7a rtc device support
  hw/loongarch: Add LoongArch boot code and load elf function.
  hw/loongarch: Add LoongArch ls7a acpi device support
  tests/tcg/loongarch64: Add hello/memory test in loongarch64 system

 MAINTAINERS                                   |  26 +
 .../devices/loongarch64-softmmu/default.mak   |   3 +
 configs/targets/loongarch64-softmmu.mak       |   4 +
 docs/system/loongarch/loongson3.rst           |  41 +
 gdb-xml/loongarch-base64.xml                  |  44 +
 gdb-xml/loongarch-fpu64.xml                   |  57 ++
 hw/Kconfig                                    |   1 +
 hw/acpi/Kconfig                               |   4 +
 hw/acpi/ls7a.c                                | 374 ++++++++
 hw/acpi/meson.build                           |   1 +
 hw/intc/Kconfig                               |  15 +
 hw/intc/loongarch_extioi.c                    | 373 ++++++++
 hw/intc/loongarch_ipi.c                       | 145 +++
 hw/intc/loongarch_pch_msi.c                   |  75 ++
 hw/intc/loongarch_pch_pic.c                   | 488 ++++++++++
 hw/intc/meson.build                           |   4 +
 hw/intc/trace-events                          |  27 +
 hw/loongarch/Kconfig                          |  18 +
 hw/loongarch/loongson3.c                      | 354 +++++++
 hw/loongarch/meson.build                      |   4 +
 hw/meson.build                                |   1 +
 hw/rtc/Kconfig                                |   3 +
 hw/rtc/ls7a_rtc.c                             | 323 +++++++
 hw/rtc/meson.build                            |   1 +
 include/disas/dis-asm.h                       |   2 +
 include/exec/poison.h                         |   2 +
 include/hw/acpi/ls7a.h                        |  53 ++
 include/hw/intc/loongarch_extioi.h            |  68 ++
 include/hw/intc/loongarch_ipi.h               |  46 +
 include/hw/intc/loongarch_pch_msi.h           |  20 +
 include/hw/intc/loongarch_pch_pic.h           |  80 ++
 include/hw/loongarch/loongarch.h              |  61 ++
 include/hw/pci-host/ls7a.h                    |  48 +
 include/sysemu/arch_init.h                    |   1 +
 meson.build                                   |   1 +
 qapi/machine-target.json                      |   6 +-
 qapi/machine.json                             |   2 +-
 softmmu/qdev-monitor.c                        |   3 +-
 target/Kconfig                                |   1 +
 target/loongarch/Kconfig                      |   2 +
 target/loongarch/README                       |  64 ++
 target/loongarch/constant_timer.c             |  65 ++
 target/loongarch/cpu-csr.h                    | 203 +++++
 target/loongarch/cpu-param.h                  |  18 +
 target/loongarch/cpu.c                        | 736 +++++++++++++++
 target/loongarch/cpu.h                        | 371 ++++++++
 target/loongarch/csr_helper.c                 | 186 ++++
 target/loongarch/disas.c                      | 671 ++++++++++++++
 target/loongarch/fpu_helper.c                 | 862 ++++++++++++++++++
 target/loongarch/gdbstub.c                    | 107 +++
 target/loongarch/helper.h                     | 125 +++
 target/loongarch/insn_trans/trans_arith.c.inc | 304 ++++++
 .../loongarch/insn_trans/trans_atomic.c.inc   | 114 +++
 target/loongarch/insn_trans/trans_bit.c.inc   | 212 +++++
 .../loongarch/insn_trans/trans_branch.c.inc   |  83 ++
 target/loongarch/insn_trans/trans_extra.c.inc | 101 ++
 .../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 +
 .../loongarch/insn_trans/trans_fmemory.c.inc  | 153 ++++
 target/loongarch/insn_trans/trans_fmov.c.inc  | 157 ++++
 .../loongarch/insn_trans/trans_memory.c.inc   | 229 +++++
 .../insn_trans/trans_privileged.c.inc         | 439 +++++++++
 target/loongarch/insn_trans/trans_shift.c.inc | 106 +++
 target/loongarch/insns.decode                 | 486 ++++++++++
 target/loongarch/internals.h                  |  63 ++
 target/loongarch/iocsr_helper.c               | 139 +++
 target/loongarch/machine.c                    | 102 +++
 target/loongarch/meson.build                  |  30 +
 target/loongarch/op_helper.c                  | 130 +++
 target/loongarch/tlb_helper.c                 | 766 ++++++++++++++++
 target/loongarch/translate.c                  | 275 ++++++
 target/loongarch/translate.h                  |  45 +
 target/meson.build                            |   1 +
 tests/tcg/configure.sh                        |   1 +
 tests/tcg/loongarch64/Makefile.softmmu-target |  33 +
 tests/tcg/loongarch64/system/boot.S           |  56 ++
 tests/tcg/loongarch64/system/kernel.ld        |  30 +
 tests/tcg/loongarch64/system/regdef.h         |  86 ++
 79 files changed, 10521 insertions(+), 4 deletions(-)
 create mode 100644 configs/devices/loongarch64-softmmu/default.mak
 create mode 100644 configs/targets/loongarch64-softmmu.mak
 create mode 100644 docs/system/loongarch/loongson3.rst
 create mode 100644 gdb-xml/loongarch-base64.xml
 create mode 100644 gdb-xml/loongarch-fpu64.xml
 create mode 100644 hw/acpi/ls7a.c
 create mode 100644 hw/intc/loongarch_extioi.c
 create mode 100644 hw/intc/loongarch_ipi.c
 create mode 100644 hw/intc/loongarch_pch_msi.c
 create mode 100644 hw/intc/loongarch_pch_pic.c
 create mode 100644 hw/loongarch/Kconfig
 create mode 100644 hw/loongarch/loongson3.c
 create mode 100644 hw/loongarch/meson.build
 create mode 100644 hw/rtc/ls7a_rtc.c
 create mode 100644 include/hw/acpi/ls7a.h
 create mode 100644 include/hw/intc/loongarch_extioi.h
 create mode 100644 include/hw/intc/loongarch_ipi.h
 create mode 100644 include/hw/intc/loongarch_pch_msi.h
 create mode 100644 include/hw/intc/loongarch_pch_pic.h
 create mode 100644 include/hw/loongarch/loongarch.h
 create mode 100644 include/hw/pci-host/ls7a.h
 create mode 100644 target/loongarch/Kconfig
 create mode 100644 target/loongarch/README
 create mode 100644 target/loongarch/constant_timer.c
 create mode 100644 target/loongarch/cpu-csr.h
 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/csr_helper.c
 create mode 100644 target/loongarch/disas.c
 create mode 100644 target/loongarch/fpu_helper.c
 create mode 100644 target/loongarch/gdbstub.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_privileged.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/iocsr_helper.c
 create mode 100644 target/loongarch/machine.c
 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/translate.c
 create mode 100644 target/loongarch/translate.h
 create mode 100644 tests/tcg/loongarch64/Makefile.softmmu-target
 create mode 100644 tests/tcg/loongarch64/system/boot.S
 create mode 100644 tests/tcg/loongarch64/system/kernel.ld
 create mode 100644 tests/tcg/loongarch64/system/regdef.h

-- 
2.31.1



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

end of thread, other threads:[~2022-04-21 16:38 UTC | newest]

Thread overview: 80+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-15  9:40 [PATCH v1 00/43] Add LoongArch softmmu support Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 01/43] target/loongarch: Add README Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 02/43] target/loongarch: Add core definition Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 03/43] target/loongarch: Add main translation routines Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 04/43] target/loongarch: Add fixed point arithmetic instruction translation Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 05/43] target/loongarch: Add fixed point shift " Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 06/43] target/loongarch: Add fixed point bit " Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 07/43] target/loongarch: Add fixed point load/store " Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 08/43] target/loongarch: Add fixed point atomic " Xiaojuan Yang
2022-04-15 22:46   ` Richard Henderson
2022-04-15  9:40 ` [PATCH v1 09/43] target/loongarch: Add fixed point extra " Xiaojuan Yang
2022-04-15 22:56   ` Richard Henderson
2022-04-15  9:40 ` [PATCH v1 10/43] target/loongarch: Add floating point arithmetic " Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 11/43] target/loongarch: Add floating point comparison " Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 12/43] target/loongarch: Add floating point conversion " Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 13/43] target/loongarch: Add floating point move " Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 14/43] target/loongarch: Add floating point load/store " Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 15/43] target/loongarch: Add branch " Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 16/43] target/loongarch: Add disassembler Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 17/43] target/loongarch: Add target build suport Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 18/43] target/loongarch: Add system emulation introduction Xiaojuan Yang
2022-04-15 23:25   ` Richard Henderson
2022-04-15  9:40 ` [PATCH v1 19/43] target/loongarch: Add CSRs definition Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 20/43] target/loongarch: Add basic vmstate description of CPU Xiaojuan Yang
2022-04-15 23:29   ` Richard Henderson
2022-04-15  9:40 ` [PATCH v1 21/43] target/loongarch: Implement qmp_query_cpu_definitions() Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 22/43] target/loongarch: Add MMU support for LoongArch CPU Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 23/43] target/loongarch: Add LoongArch interrupt and exception handle Xiaojuan Yang
2022-04-16  0:13   ` Richard Henderson
2022-04-15  9:40 ` [PATCH v1 24/43] target/loongarch: Add constant timer support Xiaojuan Yang
2022-04-16  0:17   ` Richard Henderson
2022-04-15  9:40 ` [PATCH v1 25/43] target/loongarch: Add LoongArch CSR instruction Xiaojuan Yang
2022-04-16  1:04   ` Richard Henderson
2022-04-18 12:38     ` yangxiaojuan
2022-04-18 14:34       ` Richard Henderson
2022-04-19  7:33     ` yangxiaojuan
2022-04-19 17:05       ` Richard Henderson
2022-04-21  9:15         ` yangxiaojuan
2022-04-21 15:59           ` Richard Henderson
2022-04-15  9:40 ` [PATCH v1 26/43] target/loongarch: Add LoongArch IOCSR instruction Xiaojuan Yang
2022-04-16  2:26   ` Richard Henderson
2022-04-15  9:40 ` [PATCH v1 27/43] target/loongarch: Add TLB instruction support Xiaojuan Yang
2022-04-16  3:38   ` Richard Henderson
2022-04-15  9:40 ` [PATCH v1 28/43] target/loongarch: Add other core instructions support Xiaojuan Yang
2022-04-16  3:49   ` Richard Henderson
2022-04-15  9:40 ` [PATCH v1 29/43] target/loongarch: Add timer related " Xiaojuan Yang
2022-04-17 18:48   ` Richard Henderson
2022-04-15  9:40 ` [PATCH v1 30/43] target/loongarch: Add gdb support Xiaojuan Yang
2022-04-17 19:02   ` Richard Henderson
2022-04-17 19:08   ` Richard Henderson
2022-04-15  9:40 ` [PATCH v1 31/43] hw/loongarch: Add support loongson3 virt machine type Xiaojuan Yang
2022-04-17 22:28   ` Richard Henderson
2022-04-17 22:55   ` Richard Henderson
2022-04-15  9:40 ` [PATCH v1 32/43] hw/loongarch: Add LoongArch ipi interrupt support(IPI) Xiaojuan Yang
2022-04-18  0:24   ` Richard Henderson
2022-04-15  9:40 ` [PATCH v1 33/43] hw/intc: Add LoongArch ls7a interrupt controller support(PCH-PIC) Xiaojuan Yang
2022-04-18  3:15   ` Richard Henderson
2022-04-18  9:14     ` yangxiaojuan
2022-04-18 14:39       ` Richard Henderson
2022-04-19  7:27         ` yangxiaojuan
2022-04-19 17:14           ` Richard Henderson
2022-04-21  3:10             ` yangxiaojuan
2022-04-15  9:40 ` [PATCH v1 34/43] hw/intc: Add LoongArch ls7a msi interrupt controller support(PCH-MSI) Xiaojuan Yang
2022-04-18  3:39   ` Richard Henderson
2022-04-15  9:40 ` [PATCH v1 35/43] hw/intc: Add LoongArch extioi interrupt controller(EIOINTC) Xiaojuan Yang
2022-04-18  3:48   ` Richard Henderson
2022-04-18  8:57     ` Mark Cave-Ayland
2022-04-19  1:50       ` yangxiaojuan
2022-04-19 11:10         ` Mark Cave-Ayland
2022-04-15  9:40 ` [PATCH v1 36/43] hw/loongarch: Add irq hierarchy for the system Xiaojuan Yang
2022-04-18 14:44   ` Richard Henderson
2022-04-15  9:40 ` [PATCH v1 37/43] Enable common virtio pci support for LoongArch Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 38/43] hw/loongarch: Add some devices support for 3A5000 Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 39/43] hw/loongarch: Add LoongArch ls7a rtc device support Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 40/43] hw/loongarch: Add LoongArch boot code and load elf function Xiaojuan Yang
2022-04-18 15:11   ` Richard Henderson
2022-04-15  9:40 ` [PATCH v1 41/43] hw/loongarch: Add LoongArch ls7a acpi device support Xiaojuan Yang
2022-04-15  9:40 ` [PATCH v1 42/43] tests/tcg/loongarch64: Add hello/memory test in loongarch64 system Xiaojuan Yang
2022-04-18 15:25   ` Richard Henderson
2022-04-15  9:40 ` [PATCH v1 43/43] target/loongarch: 'make check-tcg' support Xiaojuan Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.