Skip to content

hw/core: Make machine-qmp-cmds.c target independent

Thomas Huth qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3hw/core: Use a callback for target specific query-cpus-fast informationhw/core/machine-qmp-cmds.c include/hw/core/cpu.h include/qemu/typedefs.h +1 more+15 -140 replies
2/3cpu: Introduce a wrapper for being able to use TARGET_NAME in common codecpu.c include/hw/core/cpu.h+7 -00 replies
3/3hw/core: Move machine-qmp-cmds.c into the target independent source sethw/core/machine-qmp-cmds.c hw/core/meson.build+3 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] hw/core: Make machine-qmp-cmds.c target independent

For being able to create a universal QEMU binary one day, core files like machine-qmp-cmds.c must not contain any target specifc macros. This series reworks the related spots in this file, so we can move it to the common softmmu_ss source set. This has also the advantage that we only have to compile this file once, and not multiple times (one time for each target) anymore.

Thomas Huth (3):
hw/core: Use a callback for target specific query-cpus-fast
information
cpu: Introduce a wrapper for being able to use TARGET_NAME in common
code
hw/core: Move machine-qmp-cmds.c into the target independent source
set

 include/hw/core/cpu.h      |  6 ++++++
 include/qemu/typedefs.h    |  1 +
 cpu.c                      |  5 +++++
 hw/core/machine-qmp-cmds.c | 20 ++++----------------
 target/s390x/cpu.c         |  8 ++++++++
 hw/core/meson.build        |  5 +----
 6 files changed, 25 insertions(+), 20 deletions(-)
Signature · 1 line
2.31.1