hw/core: Use a callback for target specific query-cpus-fast information
authorThomas Huth <thuth@redhat.com>
Mon, 24 Apr 2023 16:04:32 +0000 (18:04 +0200)
committerThomas Huth <thuth@redhat.com>
Tue, 16 May 2023 07:14:18 +0000 (09:14 +0200)
commit5503da4a0c9e7f6853a175f5e273897680cd12df
tree752e566cb853a89bd25ec77b4abf8fe6a5f3cf8b
parentc70bb9a771d467302d1c7df5c5bd56b48f42716e
hw/core: Use a callback for target specific query-cpus-fast information

For being able to create a universal QEMU binary one day, core
files like machine-qmp-cmds.c must not contain any "#ifdef TARGET_..."
parts. Thus let's provide the target specific function via a
function pointer in CPUClass instead, as a first step towards
making this file target independent.

Message-Id: <20230424160434.331175-2-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/core/machine-qmp-cmds.c
include/hw/core/cpu.h
include/qemu/typedefs.h
target/s390x/cpu.c