Skip to content

system: Make qemu_arch_available() common code

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest5 patches 6 repliesIn review

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5qemu: Document qemu_arch_available() methodinclude/system/arch_init.h system/arch_init.c+9 -31 reply
2/5qemu/target_info: Add target_s390x() helperinclude/qemu/target-info.h target-info.c+12 -01 reply
3/5hw/scsi/disk: Prefer target_s390x() over qemu_arch_available()hw/scsi/scsi-disk.c+2 -21 reply
4/5system: Make qemu_arch_available() common codeinclude/system/arch_init.h meson.build system/arch_init.c +1 more+39 -251 reply
5/5system: Reduce 'arch_init.h' scopesystem/arch_init.h+0 -01 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPierrick BouvierThomas Huth
SeriesR-b
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/5] system: Make qemu_arch_available() common code

- Avoid qemu_arch_available() in hw/
- Document qemu_arch_available(),
- define QEMU_ARCH_* based on SYS_EMU_TARGET_*, allowing (via with TargetInfo API) to compile arch_init.c as common,
- restrict qemu_arch_available() scope to system/ sub-directory.

---
v4: New approach
v3: Return directly within switch
v2: Prefer switch over array (pbo)

Philippe Mathieu-Daudé (5):
qemu: Document qemu_arch_available() method qemu/target_info: Add target_s390x() helper hw/scsi/disk: Prefer target_s390x() over qemu_arch_available()
system: Make qemu_arch_available() common code
system: Reduce 'arch_init.h' scope

 meson.build                |  2 --
 include/qemu/target-info.h |  7 ++++++
 include/system/arch_init.h | 30 -----------------------
 system/arch_init.h         | 50 ++++++++++++++++++++++++++++++++++++++
 hw/scsi/scsi-disk.c        |  4 +--
 system/arch_init.c         |  6 +++--
 target-info.c              |  5 ++++
 system/meson.build         |  2 +-
 8 files changed, 69 insertions(+), 37 deletions(-)
 delete mode 100644 include/system/arch_init.h
 create mode 100644 system/arch_init.h
Signature · 1 line
2.52.0