[PATCH v3 0/9] multi-target: add riscv64-softmmu

Pierrick Bouvier posted 9 patches 9 hours ago
hw/riscv/virt-acpi-build.c     |  2 +-
hw/riscv/virt.c                | 14 ++++++++------
include/hw/riscv/virt.h        |  3 +--
include/qemu/target-info.h     |  7 +++++++
meson.build                    | 18 ++++++++++++++++++
target-info.c                  | 11 +++++++++++
target/riscv/kvm/kvm-cpu.c     |  2 ++
target/riscv/tcg/tcg-cpu.c     |  1 +
tests/unit/test-multi-target.c | 34 ++++++++++++++++++++++++++--------
9 files changed, 75 insertions(+), 17 deletions(-)
[PATCH v3 0/9] multi-target: add riscv64-softmmu
Posted by Pierrick Bouvier 9 hours ago
This series adds this target to set of multi-target.
Changes are straightforward: functions and helpers renaming, and one type
restriction for this target only.

Based-on: 20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com
"multi-target: prefix helpers with target prefix"

v3
--

- rebase on master
- dropped the patch renaming helpers. Now based on:
  20261019212046.149572-1-pierrick.bouvier@oss.qualcomm.com
  "multi-target: prefix helpers with target prefix"
- fixed issue on riscv host where kvm cpu type had no parent type in
  multi-target test.

v2
--

- make virt machine only available for riscv targets
- enhance multi-target test to detect duplicated types between all targets (we
  missed the virt machine since we were always picking the first target avail)
- add an additional commit with the rest of softmmu commented for future work

Pierrick Bouvier (9):
  target-info: add target_base_riscv
  hw/riscv/virt: make machine available for riscv targets only
  test/unit/multi-target: check QOM types can be initialized with any
    target
  hw/riscv/virt: restrict scope of virt_is_acpi_enabled to this file
  target/riscv: rename virt_acpi_setup to riscv_virt_acpi_setup
  target/riscv/tcg: restrict tcg-accel-riscv-cpu to riscv targets
  target/riscv/kvm: restrict kvm-accel-riscv-cpu to riscv targets
  meson.build: add riscv64-softmmu to multi-target
  meson.build: list all remaining softmmu targets as comments

 hw/riscv/virt-acpi-build.c     |  2 +-
 hw/riscv/virt.c                | 14 ++++++++------
 include/hw/riscv/virt.h        |  3 +--
 include/qemu/target-info.h     |  7 +++++++
 meson.build                    | 18 ++++++++++++++++++
 target-info.c                  | 11 +++++++++++
 target/riscv/kvm/kvm-cpu.c     |  2 ++
 target/riscv/tcg/tcg-cpu.c     |  1 +
 tests/unit/test-multi-target.c | 34 ++++++++++++++++++++++++++--------
 9 files changed, 75 insertions(+), 17 deletions(-)

-- 
2.43.0
Re: [PATCH v3 0/9] multi-target: add riscv64-softmmu
Posted by Pierrick Bouvier 9 hours ago
Only patch 7 is missing review.

Regards,
Pierrick