qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH v2 00/11] single-binary: Make hw/arm/ common
@ 2025-04-18  0:50 Philippe Mathieu-Daudé
  2025-04-18  0:50 ` [RFC PATCH v2 01/11] qapi: Rename TargetInfo structure as BinaryTargetInfo Philippe Mathieu-Daudé
                   ` (10 more replies)
  0 siblings, 11 replies; 36+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-04-18  0:50 UTC (permalink / raw)
  To: Pierrick Bouvier, qemu-devel; +Cc: Anton Johansson, Richard Henderson

Since v1:
- Dropped unrelated / irrelevant patches
- Addressed Pierrick comments
- Added R-b tag
- Only considering machines, not CPUs.

Hi,

At this point this series is mostly a draft for Pierrick.

After introducing the generic TargetInfo API [*], we implement
the ARM variants, then use the API to remove target-specific code,
allowing to eventually remove the target-specific arm_ss[] source
set in meson.build, having all objects in arm_common_ss[].

Regards,

Phil.

Available here, based on tcg-next:
https://gitlab.com/philmd/qemu/-/tags/single-binary-hw-arm-rfc-v2

Philippe Mathieu-Daudé (11):
  qapi: Rename TargetInfo structure as BinaryTargetInfo
  qemu: Convert target_name() to TargetInfo API
  system/vl: Filter machine list available for a particular target
    binary
  hw/arm: Register TYPE_TARGET_ARM/AARCH64_CPU QOM interfaces
  hw/arm: Filter machine types for qemu-system-aarch64 binary
  hw/arm: Filter machine types for qemu-system-arm binary
  hw/core: Allow ARM/Aarch64 binaries to use the 'none' machine
  config/target: Implement per-binary TargetInfo structure (ARM)
  config/target: Implement per-binary TargetInfo structure (Aarch64)
  hw/arm/aspeed: Build objects once
  hw/arm/raspi: Build objects once

 meson.build                       |   9 +++
 qapi/machine.json                 |  12 ++--
 include/hw/boards.h               |   1 +
 include/hw/core/cpu.h             |   2 -
 include/qemu/target_info-impl.h   |  26 +++++++
 include/qemu/target_info-qom.h    |  18 +++++
 include/qemu/target_info.h        |  27 +++++++
 configs/targets/aarch64-softmmu.c |  22 ++++++
 configs/targets/arm-softmmu.c     |  22 ++++++
 cpu-target.c                      |   5 --
 hw/arm/aspeed.c                   | 114 ++++++++++++++++++++++++++++--
 hw/arm/b-l475e-iot01a.c           |   5 ++
 hw/arm/bananapi_m2u.c             |   5 ++
 hw/arm/bcm2836.c                  |   4 --
 hw/arm/collie.c                   |   5 ++
 hw/arm/cubieboard.c               |   5 ++
 hw/arm/digic_boards.c             |   5 ++
 hw/arm/exynos4_boards.c           |  10 +++
 hw/arm/fby35.c                    |   5 ++
 hw/arm/highbank.c                 |  10 +++
 hw/arm/imx25_pdk.c                |   5 ++
 hw/arm/imx8mp-evk.c               |   4 ++
 hw/arm/integratorcp.c             |   5 ++
 hw/arm/kzm.c                      |   5 ++
 hw/arm/mcimx6ul-evk.c             |   5 ++
 hw/arm/mcimx7d-sabre.c            |   5 ++
 hw/arm/microbit.c                 |   5 ++
 hw/arm/mps2-tz.c                  |  20 ++++++
 hw/arm/mps2.c                     |  20 ++++++
 hw/arm/mps3r.c                    |   5 ++
 hw/arm/msf2-som.c                 |   5 ++
 hw/arm/musca.c                    |  10 +++
 hw/arm/musicpal.c                 |   5 ++
 hw/arm/netduino2.c                |   5 ++
 hw/arm/netduinoplus2.c            |   5 ++
 hw/arm/npcm7xx_boards.c           |  25 +++++++
 hw/arm/npcm8xx_boards.c           |   4 ++
 hw/arm/olimex-stm32-h405.c        |   5 ++
 hw/arm/omap_sx1.c                 |  10 +++
 hw/arm/orangepi.c                 |   5 ++
 hw/arm/raspi.c                    |  27 +++++--
 hw/arm/raspi4b.c                  |   4 ++
 hw/arm/realview.c                 |  20 ++++++
 hw/arm/sabrelite.c                |   5 ++
 hw/arm/sbsa-ref.c                 |   4 ++
 hw/arm/stellaris.c                |  10 +++
 hw/arm/stm32vldiscovery.c         |   5 ++
 hw/arm/versatilepb.c              |  10 +++
 hw/arm/vexpress.c                 |  10 +++
 hw/arm/virt.c                     |   5 ++
 hw/arm/xilinx_zynq.c              |   5 ++
 hw/arm/xlnx-versal-virt.c         |   4 ++
 hw/arm/xlnx-zcu102.c              |   4 ++
 hw/core/machine-qmp-cmds.c        |   5 +-
 hw/core/null-machine.c            |   5 ++
 plugins/loader.c                  |   2 +-
 system/vl.c                       |  16 ++++-
 target_info-qom.c                 |  24 +++++++
 target_info-stub.c                |  19 +++++
 target_info.c                     |  21 ++++++
 hw/arm/meson.build                |  12 ++--
 61 files changed, 652 insertions(+), 35 deletions(-)
 create mode 100644 include/qemu/target_info-impl.h
 create mode 100644 include/qemu/target_info-qom.h
 create mode 100644 include/qemu/target_info.h
 create mode 100644 configs/targets/aarch64-softmmu.c
 create mode 100644 configs/targets/arm-softmmu.c
 create mode 100644 target_info-qom.c
 create mode 100644 target_info-stub.c
 create mode 100644 target_info.c

-- 
2.47.1



^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2025-04-19  1:18 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-18  0:50 [RFC PATCH v2 00/11] single-binary: Make hw/arm/ common Philippe Mathieu-Daudé
2025-04-18  0:50 ` [RFC PATCH v2 01/11] qapi: Rename TargetInfo structure as BinaryTargetInfo Philippe Mathieu-Daudé
2025-04-18  2:55   ` Pierrick Bouvier
2025-04-18  0:50 ` [RFC PATCH v2 02/11] qemu: Convert target_name() to TargetInfo API Philippe Mathieu-Daudé
2025-04-18  3:01   ` Pierrick Bouvier
2025-04-18 14:02     ` Philippe Mathieu-Daudé
2025-04-18 16:23       ` Pierrick Bouvier
2025-04-18 17:15         ` Philippe Mathieu-Daudé
2025-04-18  0:50 ` [RFC PATCH v2 03/11] system/vl: Filter machine list available for a particular target binary Philippe Mathieu-Daudé
2025-04-18  3:06   ` Pierrick Bouvier
2025-04-18 14:14     ` Philippe Mathieu-Daudé
2025-04-18  0:50 ` [RFC PATCH v2 04/11] hw/arm: Register TYPE_TARGET_ARM/AARCH64_CPU QOM interfaces Philippe Mathieu-Daudé
2025-04-18  3:07   ` Pierrick Bouvier
2025-04-18 14:07     ` Philippe Mathieu-Daudé
2025-04-18 16:30       ` Pierrick Bouvier
2025-04-18 17:04         ` Philippe Mathieu-Daudé
2025-04-18 17:07           ` Pierrick Bouvier
2025-04-18 17:10             ` Philippe Mathieu-Daudé
2025-04-18 17:23               ` Pierrick Bouvier
2025-04-18 17:32                 ` Philippe Mathieu-Daudé
2025-04-19  1:17                   ` Pierrick Bouvier
2025-04-18  0:50 ` [RFC PATCH v2 05/11] hw/arm: Filter machine types for qemu-system-aarch64 binary Philippe Mathieu-Daudé
2025-04-18  0:50 ` [RFC PATCH v2 06/11] hw/arm: Filter machine types for qemu-system-arm binary Philippe Mathieu-Daudé
2025-04-18  3:08   ` Pierrick Bouvier
2025-04-18  0:50 ` [RFC PATCH v2 07/11] hw/core: Allow ARM/Aarch64 binaries to use the 'none' machine Philippe Mathieu-Daudé
2025-04-18  3:32   ` Pierrick Bouvier
2025-04-18  0:50 ` [RFC PATCH v2 08/11] config/target: Implement per-binary TargetInfo structure (ARM) Philippe Mathieu-Daudé
2025-04-18  3:39   ` Pierrick Bouvier
2025-04-18  4:02   ` Pierrick Bouvier
2025-04-18 11:20     ` Philippe Mathieu-Daudé
2025-04-18  0:50 ` [RFC PATCH v2 09/11] config/target: Implement per-binary TargetInfo structure (Aarch64) Philippe Mathieu-Daudé
2025-04-18  3:34   ` Pierrick Bouvier
2025-04-18  0:50 ` [RFC PATCH v2 10/11] hw/arm/aspeed: Build objects once Philippe Mathieu-Daudé
2025-04-18  4:02   ` Pierrick Bouvier
2025-04-18  0:50 ` [RFC PATCH v2 11/11] hw/arm/raspi: " Philippe Mathieu-Daudé
2025-04-18  4:03   ` Pierrick Bouvier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).