target/riscv: SATP mode and CPU definition overhaul
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest25 of 26 patches 21 repliesIn review
- v425 of 26 patches 6 repliesSuperseded
- v326 of 27 patches 26 repliesApplied
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 7 patches | 15 replies | Superseded |
25 of 26 patches are in this archive. The cover letter announces 26.
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/26 | target/riscv: assert argument to set_satp_mode_max_supported is validtarget/ | +5 | 0 replies | |
| 2/26 | target/riscv: cpu: store max SATP mode as a single integertarget/ target/ target/ | +8 | 0 replies | |
| 3/26 | target/riscv: update max_satp_mode based on QOM propertieshw/ hw/ target/ +2 more | +24 | 0 replies | |
| 4/26 | target/riscv: remove supported from RISCVSATPMaptarget/ target/ | +25 | 0 replies | |
| 6/26 | target/riscv: introduce RISCVCPUDeftarget/ target/ | +22 | 1 reply | |
| 7/26 | target/riscv: store RISCVCPUDef struct directly in the classhw/ target/ target/ +5 more | +39 | 0 replies | |
| 8/26 | target/riscv: merge riscv_cpu_class_init with the class_base functiontarget/ | +10 | 0 replies | |
| 9/26 | target/riscv: move RISCVCPUConfig fields to a header filetarget/ target/ | +173 | 0 replies | |
| 10/26 | target/riscv: include default value in cpu_cfg_fields.h.inctarget/ target/ | +12 | 1 reply | |
| 11/26 | target/riscv: add more RISCVCPUDef fieldstarget/ target/ target/ | +51 | 1 reply | |
| 12/26 | target/riscv: convert abstract CPU classes to RISCVCPUDeftarget/ target/ | +46 | 1 reply | |
| 13/26 | target/riscv: convert profile CPU models to RISCVCPUDeftarget/ target/ | +48 | 1 reply | |
| 14/26 | target/riscv: convert bare CPU models to RISCVCPUDeftarget/ | +17 | 1 reply | |
| 15/26 | target/riscv: convert dynamic CPU models to RISCVCPUDeftarget/ | +31 | 1 reply | |
| 16/26 | target/riscv: convert SiFive E CPU models to RISCVCPUDeftarget/ target/ | +21 | 1 reply | |
| 17/26 | target/riscv: convert ibex CPU models to RISCVCPUDeftarget/ | +16 | 1 reply | |
| 18/26 | target/riscv: convert SiFive U models to RISCVCPUDeftarget/ target/ | +37 | 1 reply | |
| 19/26 | target/riscv: th: make CSR insertion test a bit more intuitivetarget/ | +4 | 1 reply | |
| 20/26 | target/riscv: generalize custom CSR functionalitytarget/ target/ target/ +1 more | +40 | 1 reply | |
| 21/26 | target/riscv: convert TT C906 to RISCVCPUDeftarget/ | +28 | 1 reply | |
| 22/26 | target/riscv: convert TT Ascalon to RISCVCPUDeftarget/ | +60 | 1 reply | |
| 23/26 | target/riscv: convert Ventana V1 to RISCVCPUDeftarget/ | +35 | 1 reply | |
| 24/26 | target/riscv: convert Xiangshan Nanhu to RISCVCPUDeftarget/ | +23 | 1 reply | |
| 25/26 | target/riscv: remove .instance_post_inittarget/ | +2 | 3 replies | |
| 26/26 | qom: reverse order of instance_post_init callsinclude/ qom/ | +6 | 0 replies |
Reviews trailers per patch
All 25 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Alistair Francis | Philippe Mathieu-Daudé |
|---|---|---|
| Series | R-b | |
| 1/26 | R-b | |
| 2/26 | R-b | |
| 3/26 | R-b | |
| 4/26 | R-b | |
| 6/26 | R-b | |
| 7/26 | R-b | |
| 8/26 | R-b | |
| 9/26 | R-b | |
| 10/26 | R-b | |
| 11/26 | R-b | |
| 12/26 | R-b | |
| 13/26 | R-b | |
| 14/26 | R-b | |
| 15/26 | R-b | |
| 16/26 | R-b | |
| 17/26 | R-b | |
| 18/26 | R-b | |
| 19/26 | R-b | |
| 20/26 | R-b | |
| 21/26 | R-b | |
| 22/26 | R-b | |
| 23/26 | R-b | |
| 24/26 | R-b | |
| 25/26 | R-b | |
| 26/26 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 00/26] target/riscv: SATP mode and CPU definition overhaul
Same as v4, with suggestion from Richard to avoid parentheses---which also fixes the issue with kvm-cpu.c reported by Daniel Barboza. KVM/RISC-V is now covered in CI and passes with this version.
Paolo
Paolo Bonzini (26):
target/riscv: assert argument to set_satp_mode_max_supported is valid target/riscv: cpu: store max SATP mode as a single integer target/riscv: update max_satp_mode based on QOM properties target/riscv: remove supported from RISCVSATPMap target/riscv: move satp_mode.{map,init} out of CPUConfig target/riscv: introduce RISCVCPUDef
target/riscv: store RISCVCPUDef struct directly in the class target/riscv: merge riscv_cpu_class_init with the class_base function target/riscv: move RISCVCPUConfig fields to a header file target/riscv: include default value in cpu_cfg_fields.h.inc target/riscv: add more RISCVCPUDef fields
target/riscv: convert abstract CPU classes to RISCVCPUDef target/riscv: convert profile CPU models to RISCVCPUDef target/riscv: convert bare CPU models to RISCVCPUDef target/riscv: convert dynamic CPU models to RISCVCPUDef target/riscv: convert SiFive E CPU models to RISCVCPUDef target/riscv: convert ibex CPU models to RISCVCPUDef target/riscv: convert SiFive U models to RISCVCPUDef target/riscv: th: make CSR insertion test a bit more intuitive target/riscv: generalize custom CSR functionality target/riscv: convert TT C906 to RISCVCPUDef
target/riscv: convert TT Ascalon to RISCVCPUDef target/riscv: convert Ventana V1 to RISCVCPUDef target/riscv: convert Xiangshan Nanhu to RISCVCPUDef target/riscv: remove .instance_post_init
qom: reverse order of instance_post_init calls
include/qom/object.h | 3 +- target/riscv/cpu-qom.h | 2 + target/riscv/cpu.h | 42 +- target/riscv/cpu_cfg.h | 178 +---- target/riscv/cpu_cfg_fields.h.inc | 170 +++++ hw/riscv/boot.c | 2 +- hw/riscv/virt-acpi-build.c | 14 +- hw/riscv/virt.c | 5 +- qom/object.c | 8 +- target/riscv/cpu.c | 1014 +++++++++++++---------------- target/riscv/csr.c | 11 +- target/riscv/gdbstub.c | 6 +- target/riscv/kvm/kvm-cpu.c | 27 +- target/riscv/machine.c | 2 +- target/riscv/tcg/tcg-cpu.c | 13 +- target/riscv/th_csr.c | 30 +- target/riscv/translate.c | 2 +- 17 files changed, 734 insertions(+), 795 deletions(-) create mode 100644 target/riscv/cpu_cfg_fields.h.inc
Signature · 1 line
2.49.0