target-info: Add more API for VirtIO cleanups
v8 cover target-info: Add more API for VirtIO cleanups
Missing review: #6 (gdbstub)
Since v7:
- Fixed e.g. typo
- Keep "do *not* use target_big_endian()" warning
- Do not use tswap() in gdbstub
Since v6:
- Added R-b tags
- Fixed typos
- Dropped "Introduce target_base_arch()" because unused so far
- Dropped unrelated patches
Philippe Mathieu-Daudé (8):
target/qmp: Use target_cpu_type()
qemu/target-info: Factor target_arch() out qemu/target-info: Add %target_arch field to TargetInfo qemu/target-info: Add target_endian_mode()
qemu: Convert target_words_bigendian() to TargetInfo API gdbstub/helpers: Replace TARGET_BIG_ENDIAN -> target_big_endian()
qemu: Declare all load/store helper in 'qemu/bswap.h' hw/virtio: Build various files once
include/exec/tswap.h | 83 +-------------------------- include/gdbstub/helpers.h | 48 ++++++++++------ include/qemu/bswap.h | 73 +++++++++++++++++++++++ include/qemu/target-info-impl.h | 6 +- include/qemu/target-info-qapi.h | 29 ++++++++++ include/qemu/target-info.h | 14 ++++- include/system/memory.h | 1 - include/user/abitypes.h | 1 - target/ppc/mmu-hash64.h | 2 - cpu-target.c | 7 --- hw/acpi/bios-linker-loader.c | 2 - hw/arm/allwinner-r40.c | 1 - hw/arm/boot.c | 2 + hw/arm/npcm7xx.c | 2 +- hw/block/hd-geometry.c | 1 - hw/char/riscv_htif.c | 1 - hw/core/cpu-system.c | 2 +- hw/core/machine-qmp-cmds.c | 8 +-- hw/cxl/cxl-events.c | 2 - hw/display/artist.c | 1 + hw/display/ati.c | 1 + hw/display/vga.c | 2 +- hw/net/can/ctucan_core.c | 1 - hw/net/lan9118.c | 1 + hw/net/rtl8139.c | 1 + hw/net/vmxnet3.c | 1 - hw/pci-host/gt64120.c | 1 + hw/pci-host/pnv_phb3.c | 1 + hw/pci-host/pnv_phb4.c | 1 + hw/pci-host/ppce500.c | 1 - hw/pci-host/sh_pci.c | 1 - hw/s390x/s390-pci-inst.c | 1 + hw/sensor/lsm303dlhc_mag.c | 1 - hw/smbios/smbios.c | 1 + hw/vfio/migration-multifd.c | 1 - hw/virtio/virtio-config-io.c | 1 - hw/virtio/virtio-pci.c | 1 + hw/virtio/virtio.c | 2 +- hw/vmapple/virtio-blk.c | 1 - system/memory.c | 1 + system/qtest.c | 1 + target-info-stub.c | 2 + target-info.c | 23 ++++++++ target/arm/arm-qmp-cmds.c | 3 +- target/arm/cpu.c | 1 - target/i386/tcg/system/excp_helper.c | 1 - target/i386/xsave_helper.c | 1 - target/loongarch/loongarch-qmp-cmds.c | 3 +- target/mips/system/mips-qmp-cmds.c | 3 +- target/riscv/vector_helper.c | 1 - tests/tcg/plugins/mem.c | 1 + hw/block/meson.build | 6 +- hw/virtio/meson.build | 20 ++++--- 53 files changed, 218 insertions(+), 156 deletions(-) create mode 100644 include/qemu/target-info-qapi.h
Signature · 1 line
2.49.0
PATCH v8 1/8 target/qmp: Use target_cpu_type()
--- target/arm/arm-qmp-cmds.c | 3 ++- target/loongarch/loongarch-qmp-cmds.c | 3 ++- target/mips/system/mips-qmp-cmds.c | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-)
target/arm/arm-qmp-cmds.c +2 -1
@@ -21,6 +21,7 @@*/ #include "qemu/osdep.h" +#include "qemu/target-info.h" #include "hw/boards.h" #include "kvm_arm.h" #include "qapi/error.h"
@@ -241,7 +242,7 @@ CpuDefinitionInfoList *qmp_query_cpu_definitions(Error **errp)CpuDefinitionInfoList *cpu_list =NULL ;GSList *list; - list =object_class_get_list (TYPE_ARM_CPU , false); + list =object_class_get_list (target_cpu_type (), false);g_slist_foreach (list, arm_cpu_add_definition, &cpu_list);g_slist_free (list);
target/loongarch/loongarch-qmp-cmds.c +2 -1
@@ -7,6 +7,7 @@*/ #include "qemu/osdep.h" +#include "qemu/target-info.h" #include "qapi/error.h" #include "qapi/qapi-commands-machine.h" #include "cpu.h"
@@ -32,7 +33,7 @@ CpuDefinitionInfoList *qmp_query_cpu_definitions(Error **errp)CpuDefinitionInfoList *cpu_list =NULL ;GSList *list; - list =object_class_get_list (TYPE_LOONGARCH_CPU , false); + list =object_class_get_list (target_cpu_type (), false);g_slist_foreach (list, loongarch_cpu_add_definition, &cpu_list);g_slist_free (list);
target/mips/system/mips-qmp-cmds.c +2 -1
@@ -7,6 +7,7 @@*/ #include "qemu/osdep.h" +#include "qemu/target-info.h" #include "qapi/error.h" #include "qapi/qapi-commands-machine.h" #include "cpu.h"
@@ -40,7 +41,7 @@ CpuDefinitionInfoList *qmp_query_cpu_definitions(Error **errp)CpuDefinitionInfoList *cpu_list =NULL ;GSList *list; - list =object_class_get_list (TYPE_MIPS_CPU , false); + list =object_class_get_list (target_cpu_type (), false);g_slist_foreach (list, mips_cpu_add_definition, &cpu_list);g_slist_free (list);
Signature · 1 line
2.49.0