Skip to content

RFC hw/arm: Register target-specific QOM types at runtime

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4qom: Introduce TypeInfo::registerable() callbackinclude/qom/object.h qom/object.c qom/trace-events+6 -02 replies
2/4hw/arm/raspi: Replace TARGET_AARCH64 by legacy_binary_is_64bit()hw/arm/bcm2836.c hw/arm/raspi.c+5 -89 replies
3/4hw/arm/aspeed: Replace TARGET_AARCH64 by legacy_binary_is_64bit()hw/arm/aspeed.c+2 -63 replies
4/4hw/ppc: Remove TARGET_PPC64 use in ppc_create_page_sizes_prop()hw/ppc/fdt.c+3 -21 reply

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchPierrick BouvierRichard Henderson
1/4R-b R-b
2/4
3/4
4/4

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

Read the v1 thread

Cover letter [RFC PATCH 0/4] hw/arm: Register target-specific QOM types at runtime

In preparation of having a single binary for both ARM and Aarch64 targets, unify raspi & aspeed by replacing the compile-time TARGET_AARCH64 check by a QOM runtime call on legacy_binary_is_64bit().

No behavior change with current binaries:

  $ ./qemu-system-arm -M help | fgrep raspi
  raspi0               Raspberry Pi Zero (revision 1.2)
  raspi1ap             Raspberry Pi A+ (revision 1.1)
  raspi2b              Raspberry Pi 2B (revision 1.1)
  $ ./qemu-system-aarch64 -M help | fgrep raspi
  raspi0               Raspberry Pi Zero (revision 1.2)
  raspi1ap             Raspberry Pi A+ (revision 1.1)
  raspi2b              Raspberry Pi 2B (revision 1.1)
  raspi3ap             Raspberry Pi 3A+ (revision 1.0)
  raspi3b              Raspberry Pi 3B (revision 1.2)
  raspi4b              Raspberry Pi 4B (revision 1.5)

Based-on: <[email protected]>

Philippe Mathieu-Daudé (4):
qom: Introduce TypeInfo::registerable() callback hw/arm/raspi: Replace TARGET_AARCH64 by legacy_binary_is_64bit() hw/arm/aspeed: Replace TARGET_AARCH64 by legacy_binary_is_64bit() hw/ppc: Remove TARGET_PPC64 use in ppc_create_page_sizes_prop()

 include/qom/object.h | 1 +
 hw/arm/aspeed.c      | 8 ++------
 hw/arm/bcm2836.c     | 6 ++----
 hw/arm/raspi.c       | 7 +++----
 hw/ppc/fdt.c         | 5 +++--
 qom/object.c         | 4 ++++
 qom/trace-events     | 1 +
 7 files changed, 16 insertions(+), 16 deletions(-)
Signature · 1 line
2.47.1