RFC hw/arm: Register target-specific QOM types at runtime
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest4 patches 16 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | qom: Introduce TypeInfo::registerable() callbackinclude/ qom/ qom/ | +6 | 2 replies | |
| 2/4 | hw/arm/raspi: Replace TARGET_AARCH64 by legacy_binary_is_64bit()hw/ hw/ | +5 | 9 replies | |
| 3/4 | hw/arm/aspeed: Replace TARGET_AARCH64 by legacy_binary_is_64bit()hw/ | +2 | 3 replies | |
| 4/4 | hw/ppc: Remove TARGET_PPC64 use in ppc_create_page_sizes_prop()hw/ | +3 | 1 reply |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | Pierrick Bouvier | Richard Henderson |
|---|---|---|
| 1/4 | R-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.
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