qom: Automated conversion of type checking boilerplate
Subsystems (17)
PATCH v3 8/74 sifive_e: Rename memmap enum constants
In reply to Eduardo HabkostSome of the enum constant names conflict with a QOM type check macro (SIFIVE_E_PRCI). This needs to be addressed to allow us to transform the QOM type check macros into functions generated by OBJECT_DECLARE_TYPE().
Rename all the constants to SIFIVE_E_DEV_*, to avoid conflicts.
---
Changes v2 -> v3: none
Changes v1 -> v2:
* Added more details to commit message
---
Cc: Palmer Dabbelt <[email protected]>
Cc: Alistair Francis <[email protected]>
Cc: Sagar Karandikar <[email protected]>
Cc: Bastian Koppelmann <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- include/hw/riscv/sifive_e.h | 38 ++++++++--------- hw/riscv/sifive_e.c | 82 ++++++++++++++++++------------------- 2 files changed, 60 insertions(+), 60 deletions(-)
include/hw/riscv/sifive_e.h +19 -19
@@ -53,25 +53,25 @@ typedef struct SiFiveEState { OBJECT_CHECK(SiFiveEState, (obj), TYPE_RISCV_E_MACHINE)enum { -SIFIVE_E_DEBUG , -SIFIVE_E_MROM , -SIFIVE_E_OTP , -SIFIVE_E_CLINT , -SIFIVE_E_PLIC , -SIFIVE_E_AON , -SIFIVE_E_PRCI , -SIFIVE_E_OTP_CTRL , -SIFIVE_E_GPIO0 , -SIFIVE_E_UART0 , -SIFIVE_E_QSPI0 , -SIFIVE_E_PWM0 , -SIFIVE_E_UART1 , -SIFIVE_E_QSPI1 , -SIFIVE_E_PWM1 , -SIFIVE_E_QSPI2 , -SIFIVE_E_PWM2 , -SIFIVE_E_XIP , -SIFIVE_E_DTIM +SIFIVE_E_DEV_DEBUG , +SIFIVE_E_DEV_MROM , +SIFIVE_E_DEV_OTP , +SIFIVE_E_DEV_CLINT , +SIFIVE_E_DEV_PLIC , +SIFIVE_E_DEV_AON , +SIFIVE_E_DEV_PRCI , +SIFIVE_E_DEV_OTP_CTRL , +SIFIVE_E_DEV_GPIO0 , +SIFIVE_E_DEV_UART0 , +SIFIVE_E_DEV_QSPI0 , +SIFIVE_E_DEV_PWM0 , +SIFIVE_E_DEV_UART1 , +SIFIVE_E_DEV_QSPI1 , +SIFIVE_E_DEV_PWM1 , +SIFIVE_E_DEV_QSPI2 , +SIFIVE_E_DEV_PWM2 , +SIFIVE_E_DEV_XIP , +SIFIVE_E_DEV_DTIM };enum {
hw/riscv/sifive_e.c +41 -41
141 lines not on this page · raw message
Signature · 1 line
2.26.2
PATCH v3 7/74 opentitan: Rename memmap enum constants
In reply to Eduardo HabkostSome of the enum constant names conflict with the QOM type check macros (IBEX_PLIC, IBEX_UART). This needs to be addressed to allow us to transform the QOM type check macros into functions generated by OBJECT_DECLARE_TYPE().
Rename all the constants to IBEX_DEV_*, to avoid conflicts.
---
Changes v2 -> v3: none
Changes v1 -> v2:
* Added more details to commit message
---
Cc: Alistair Francis <[email protected]>
Cc: Palmer Dabbelt <[email protected]>
Cc: Sagar Karandikar <[email protected]>
Cc: Bastian Koppelmann <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- include/hw/riscv/opentitan.h | 38 ++++++++-------- hw/riscv/opentitan.c | 84 ++++++++++++++++++------------------ 2 files changed, 61 insertions(+), 61 deletions(-)
include/hw/riscv/opentitan.h +19 -19
@@ -49,25 +49,25 @@ typedef struct OpenTitanState { } OpenTitanState;enum { -IBEX_ROM , -IBEX_RAM , -IBEX_FLASH , -IBEX_UART , -IBEX_GPIO , -IBEX_SPI , -IBEX_FLASH_CTRL , -IBEX_RV_TIMER , -IBEX_AES , -IBEX_HMAC , -IBEX_PLIC , -IBEX_PWRMGR , -IBEX_RSTMGR , -IBEX_CLKMGR , -IBEX_PINMUX , -IBEX_ALERT_HANDLER , -IBEX_NMI_GEN , -IBEX_USBDEV , -IBEX_PADCTRL , +IBEX_DEV_ROM , +IBEX_DEV_RAM , +IBEX_DEV_FLASH , +IBEX_DEV_UART , +IBEX_DEV_GPIO , +IBEX_DEV_SPI , +IBEX_DEV_FLASH_CTRL , +IBEX_DEV_RV_TIMER , +IBEX_DEV_AES , +IBEX_DEV_HMAC , +IBEX_DEV_PLIC , +IBEX_DEV_PWRMGR , +IBEX_DEV_RSTMGR , +IBEX_DEV_CLKMGR , +IBEX_DEV_PINMUX , +IBEX_DEV_ALERT_HANDLER , +IBEX_DEV_NMI_GEN , +IBEX_DEV_USBDEV , +IBEX_DEV_PADCTRL , };enum {
hw/riscv/opentitan.c +42 -42
140 lines not on this page · raw message
Signature · 1 line
2.26.2
PATCH v3 9/74 sifive_u: Rename memmap enum constants
In reply to Eduardo HabkostSome of the enum constant names conflict with the QOM type check macros (SIFIVE_U_OTP, SIFIVE_U_PRCI). This needs to be addressed to allow us to transform the QOM type check macros into functions generated by OBJECT_DECLARE_TYPE().
Rename all the constants to SIFIVE_U_DEV_*, to avoid conflicts.
---
Changes v2 -> v3:
* Solved conflicts on rebase to latest qemu.git
* As this is a new patch, Reviewed-by lines from Alistair Francis and Daniel P. Berrangé were dropped
Changes v1 -> v2:
* Added more details to commit message
---
Cc: Palmer Dabbelt <[email protected]>
Cc: Alistair Francis <[email protected]>
Cc: Sagar Karandikar <[email protected]>
Cc: Bastian Koppelmann <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- include/hw/riscv/sifive_u.h | 32 ++++---- hw/riscv/sifive_u.c | 146 ++++++++++++++++++------------------ 2 files changed, 89 insertions(+), 89 deletions(-)
include/hw/riscv/sifive_u.h +16 -16
@@ -68,22 +68,22 @@ typedef struct SiFiveUState { } SiFiveUState;enum { -SIFIVE_U_DEBUG , -SIFIVE_U_MROM , -SIFIVE_U_CLINT , -SIFIVE_U_L2CC , -SIFIVE_U_L2LIM , -SIFIVE_U_PLIC , -SIFIVE_U_PRCI , -SIFIVE_U_UART0 , -SIFIVE_U_UART1 , -SIFIVE_U_GPIO , -SIFIVE_U_OTP , -SIFIVE_U_DMC , -SIFIVE_U_FLASH0 , -SIFIVE_U_DRAM , -SIFIVE_U_GEM , -SIFIVE_U_GEM_MGMT +SIFIVE_U_DEV_DEBUG , +SIFIVE_U_DEV_MROM , +SIFIVE_U_DEV_CLINT , +SIFIVE_U_DEV_L2CC , +SIFIVE_U_DEV_L2LIM , +SIFIVE_U_DEV_PLIC , +SIFIVE_U_DEV_PRCI , +SIFIVE_U_DEV_UART0 , +SIFIVE_U_DEV_UART1 , +SIFIVE_U_DEV_GPIO , +SIFIVE_U_DEV_OTP , +SIFIVE_U_DEV_DMC , +SIFIVE_U_DEV_FLASH0 , +SIFIVE_U_DEV_DRAM , +SIFIVE_U_DEV_GEM , +SIFIVE_U_DEV_GEM_MGMT };enum {
hw/riscv/sifive_u.c +73 -73
344 lines not on this page · raw message
Signature · 1 line
2.26.2
PATCH v3 2/74 megasas: Rename QOM class cast macros
In reply to Eduardo HabkostRename the MEGASAS_DEVICE_CLASS() and MEGASAS_DEVICE_GET_CLASS() macros to be consistent with the MEGASAS() instance cast macro.
This will allow us to register the type cast macros using OBJECT_DECLARE_TYPE later.
---
Changes v2 -> v3: none
Changes v1 -> v2: none
---
Cc: Paolo Bonzini <[email protected]>
Cc: Fam Zheng <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- hw/scsi/megasas.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
hw/scsi/megasas.c +6 -6
@@ -134,9 +134,9 @@ typedef struct MegasasBaseClass {#define MEGASAS (obj) \ OBJECT_CHECK(MegasasState, (obj), TYPE_MEGASAS_BASE) -#define MEGASAS_DEVICE_CLASS (oc) \ +#define MEGASAS_CLASS (oc) \ OBJECT_CLASS_CHECK(MegasasBaseClass, (oc), TYPE_MEGASAS_BASE) -#define MEGASAS_DEVICE_GET_CLASS (oc) \ +#define MEGASAS_GET_CLASS (oc) \ OBJECT_GET_CLASS(MegasasBaseClass, (oc), TYPE_MEGASAS_BASE)#define MEGASAS_INTR_DISABLED_MASK 0xFFFFFFFF
@@ -733,7 +733,7 @@ static int megasas_ctrl_get_info(MegasasState *s, MegasasCmd *cmd) {PCIDevice *pci_dev =PCI_DEVICE (s);PCIDeviceClass *pci_class =PCI_DEVICE_GET_CLASS (pci_dev); -MegasasBaseClass *base_class =MEGASAS_DEVICE_GET_CLASS (s); +MegasasBaseClass *base_class =MEGASAS_GET_CLASS (s);struct mfi_ctrl_info info;size_t dcmd_size =sizeof (info);BusChild *kid;
@@ -1999,7 +1999,7 @@ static uint64_t megasas_mmio_read(void *opaque, hwaddr addr, {MegasasState *s = opaque;PCIDevice *pci_dev =PCI_DEVICE (s); -MegasasBaseClass *base_class =MEGASAS_DEVICE_GET_CLASS (s); +MegasasBaseClass *base_class =MEGASAS_GET_CLASS (s);uint32_t retval =0 ;switch (addr) {
@@ -2322,7 +2322,7 @@ static const struct SCSIBusInfo megasas_scsi_info = {static void megasas_scsi_realize (PCIDevice *dev,Error **errp) {MegasasState *s =MEGASAS (dev); -MegasasBaseClass *b =MEGASAS_DEVICE_GET_CLASS (s); +MegasasBaseClass *b =MEGASAS_GET_CLASS (s);uint8_t *pci_conf;int i, bar_type;Error *err =NULL ;
@@ -2506,7 +2506,7 @@ static void megasas_class_init(ObjectClass *oc, void *data) {DeviceClass *dc =DEVICE_CLASS (oc);PCIDeviceClass *pc =PCI_DEVICE_CLASS (oc); -MegasasBaseClass *e =MEGASAS_DEVICE_CLASS (oc); +MegasasBaseClass *e =MEGASAS_CLASS (oc);const MegasasInfo *info = data; pc->realize = megasas_scsi_realize;
Signature · 1 line
2.26.2
PATCH v3 26/74 xen-legacy-backend: Add missing typedef XenLegacyDevice
In reply to Eduardo HabkostThe typedef was used in the XENBACKEND_DEVICE macro, but it was never defined. Define the typedef close to the type checking macro.
---
Changes v2 -> v3: none
Changes series v1 -> v2: new patch in series v2
---
Cc: Stefano Stabellini <[email protected]>
Cc: Anthony Perard <[email protected]>
Cc: Paul Durrant <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- include/hw/xen/xen-legacy-backend.h | 1 + 1 file changed, 1 insertion(+)
include/hw/xen/xen-legacy-backend.h +1 -0
@@ -9,6 +9,7 @@#define TYPE_XENSYSBUS "xen-sysbus"#define TYPE_XENBACKEND "xen-backend" +typedef struct XenLegacyDevice XenLegacyDevice ;#define XENBACKEND_DEVICE (obj) \ OBJECT_CHECK(XenLegacyDevice, (obj), TYPE_XENBACKEND)
Signature · 1 line
2.26.2
PATCH v3 41/74 kvm: Move QOM macros to kvm.h
In reply to Eduardo HabkostMove QOM macros close to the KVMState typedef.
This will make future conversion to OBJECT_DECLARE* easier.
---
Changes v2 -> v3: none
Changes series v1 -> v2: new patch in series v2
--- include/sysemu/kvm.h | 6 ++++++ include/sysemu/kvm_int.h | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-)
include/sysemu/kvm.h +6 -0
@@ -17,6 +17,7 @@#include "qemu/queue.h" #include "hw/core/cpu.h" #include "exec/memattrs.h" +#include "sysemu/accel.h" #ifdef NEED_CPU_H # ifdef CONFIG_KVM
@@ -199,7 +200,12 @@ typedef struct KVMCapabilityInfo {#define KVM_CAP_LAST_INFO { NULL, 0 }struct KVMState ; + +#define TYPE_KVM_ACCEL ACCEL_CLASS_NAME("kvm")typedef struct KVMState KVMState ; +#define KVM_STATE (obj) \ + OBJECT_CHECK(KVMState, (obj), TYPE_KVM_ACCEL) +extern KVMState *kvm_state;typedef struct Notifier Notifier ;
include/sysemu/kvm_int.h +0 -5
@@ -33,11 +33,6 @@ typedef struct KVMMemoryListener {int as_id; } KVMMemoryListener; -#define TYPE_KVM_ACCEL ACCEL_CLASS_NAME("kvm") - -#define KVM_STATE (obj) \ - OBJECT_CHECK(KVMState, (obj), TYPE_KVM_ACCEL) -void kvm_memory_listener_register (KVMState *s,KVMMemoryListener *kml,AddressSpace *as,int as_id);
Signature · 1 line
2.26.2
PATCH v3 1/74 e1000: Rename QOM class cast macros
In reply to Eduardo HabkostRename the E1000_DEVICE_CLASS() and E1000_DEVICE_GET_CLASS() macros to be consistent with the E1000() instance cast macro.
This will allow us to register the type cast macros using OBJECT_DECLARE_TYPE later.
---
Changes v2 -> v3: none
Changes v1 -> v2: none
---
Cc: Jason Wang <[email protected]>
Cc: [email protected]
--- hw/net/e1000.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
hw/net/e1000.c +4 -4
@@ -151,9 +151,9 @@ typedef struct E1000BaseClass {#define E1000 (obj) \ OBJECT_CHECK(E1000State, (obj), TYPE_E1000_BASE) -#define E1000_DEVICE_CLASS (klass) \ +#define E1000_CLASS (klass) \ OBJECT_CLASS_CHECK(E1000BaseClass, (klass), TYPE_E1000_BASE) -#define E1000_DEVICE_GET_CLASS (obj) \ +#define E1000_GET_CLASS (obj) \ OBJECT_GET_CLASS(E1000BaseClass, (obj), TYPE_E1000_BASE) static void
@@ -365,7 +365,7 @@ e1000_autoneg_timer(void *opaque)static void e1000_reset (void *opaque) {E1000State *d = opaque; -E1000BaseClass *edc =E1000_DEVICE_GET_CLASS (d); +E1000BaseClass *edc =E1000_GET_CLASS (d);uint8_t *macaddr = d->conf.macaddr.a;timer_del (d->autoneg_timer);
@@ -1751,7 +1751,7 @@ static void e1000_class_init(ObjectClass *klass, void *data) {DeviceClass *dc =DEVICE_CLASS (klass);PCIDeviceClass *k =PCI_DEVICE_CLASS (klass); -E1000BaseClass *e =E1000_DEVICE_CLASS (klass); +E1000BaseClass *e =E1000_CLASS (klass);const E1000Info *info = data; k->realize = pci_e1000_realize;
Signature · 1 line
2.26.2
PATCH v3 3/74 vmw_pvscsi: Rename QOM class cast macros
In reply to Eduardo HabkostRename the PVSCSI_DEVICE_CLASS() and PVSCSI_DEVICE_GET_CLASS() macros to be consistent with the PVSCSI() instance cast macro.
This will allow us to register the type cast macros using OBJECT_DECLARE_TYPE later.
---
Changes v2 -> v3: none
Changes v1 -> v2: none
---
Cc: Dmitry Fleytman <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Fam Zheng <[email protected]>
Cc: [email protected]
--- hw/scsi/vmw_pvscsi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
hw/scsi/vmw_pvscsi.c +4 -4
@@ -64,9 +64,9 @@ typedef struct PVSCSIClass {#define TYPE_PVSCSI "pvscsi"#define PVSCSI (obj) OBJECT_CHECK(PVSCSIState, (obj), TYPE_PVSCSI) -#define PVSCSI_DEVICE_CLASS (klass) \ +#define PVSCSI_CLASS (klass) \ OBJECT_CLASS_CHECK(PVSCSIClass, (klass), TYPE_PVSCSI) -#define PVSCSI_DEVICE_GET_CLASS (obj) \ +#define PVSCSI_GET_CLASS (obj) \ OBJECT_GET_CLASS(PVSCSIClass, (obj), TYPE_PVSCSI)/* Compatibility flags for migration */
@@ -1265,7 +1265,7 @@ static Property pvscsi_properties[] = {static void pvscsi_realize (DeviceState *qdev,Error **errp) { -PVSCSIClass *pvs_c =PVSCSI_DEVICE_GET_CLASS (qdev); +PVSCSIClass *pvs_c =PVSCSI_GET_CLASS (qdev);PCIDevice *pci_dev =PCI_DEVICE (qdev);PVSCSIState *s =PVSCSI (qdev);
@@ -1280,7 +1280,7 @@ static void pvscsi_class_init(ObjectClass *klass, void *data) {DeviceClass *dc =DEVICE_CLASS (klass);PCIDeviceClass *k =PCI_DEVICE_CLASS (klass); -PVSCSIClass *pvs_k =PVSCSI_DEVICE_CLASS (klass); +PVSCSIClass *pvs_k =PVSCSI_CLASS (klass);HotplugHandlerClass *hc =HOTPLUG_HANDLER_CLASS (klass); k->realize = pvscsi_realizefn;
Signature · 1 line
2.26.2
PATCH v3 62/74 Use TYPE_INFO macro
In reply to Eduardo HabkostGenerated using:
$ ./scripts/codeconverter/converter.py -i --passes=2 \
--pattern=TypeRegisterCall,TypeInitMacro $(git grep -l TypeInfo -- '*.[ch]')One notable difference is that files declaring multiple types will now have multiple separate __construtor__ functions declared, instead of one for all types.
---
Changes v2 -> v3:
* Removed hunks due to rebase conflicts:
hw/sd/milkymist-memcard.c hw/sd/pl181.c
* Reviewed-by line from Daniel was kept, as no additional hunks are introduced in this version
Changes v1 -> v2:
* Add note about multiple constructor functions to commit message (suggested by Daniel)
---
Cc: Richard Henderson <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Thomas Huth <[email protected]>
Cc: Laurent Vivier <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Anthony Perard <[email protected]>
Cc: Paul Durrant <[email protected]>
Cc: "Daniel P. Berrangé" <[email protected]>
Cc: "Gonglei (Arei)" <[email protected]>
Cc: "Marc-André Lureau" <[email protected]>
Cc: Eduardo Habkost <[email protected]>
Cc: Igor Mammedov <[email protected]>
Cc: Amit Shah <[email protected]>
Cc: Stefan Berger <[email protected]>
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Alberto Garcia <[email protected]>
Cc: Kevin Wolf <[email protected]>
Cc: Max Reitz <[email protected]>
Cc: Samuel Thibault <[email protected]>
Cc: "Alex Bennée" <[email protected]>
Cc: "Philippe Mathieu-Daudé" <[email protected]>
Cc: Greg Kurz <[email protected]>
Cc: Christian Schoenebeck <[email protected]>
Cc: Aleksandar Markovic <[email protected]>
Cc: Aurelien Jarno <[email protected]>
Cc: Marcel Apfelbaum <[email protected]>
Cc: Ben Warren <[email protected]>
Cc: Alistair Francis <[email protected]>
Cc: Peter Maydell <[email protected]>
Cc: Beniamino Galvani <[email protected]>
Cc: Niek Linnenbank <[email protected]>
Cc: Andrew Baumann <[email protected]>
Cc: Antony Pavlov <[email protected]>
Cc: Igor Mitsyanko <[email protected]>
Cc: Jean-Christophe Dubois <[email protected]>
Cc: Peter Chubb <[email protected]>
Cc: Andrey Smirnov <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Subbaraya Sundeep <[email protected]>
Cc: Jan Kiszka <[email protected]>
Cc: Andrzej Zaborowski <[email protected]>
Cc: Radoslaw Biernacki <[email protected]>
Cc: Leif Lindholm <[email protected]>
Cc: Eric Auger <[email protected]>
Cc: "Edgar E. Iglesias" <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Cc: Michael Walle <[email protected]>
Cc: John Snow <[email protected]>
Cc: Keith Busch <[email protected]>
Cc: Raphael Norwitz <[email protected]>
Cc: Stefan Hajnoczi <[email protected]>
Cc: Michael Rolnik <[email protected]>
Cc: Sarah Harris <[email protected]>
Cc: Fabien Chouteau <[email protected]>
Cc: KONRAD Frederic <[email protected]>
Cc: Yoshinori Sato <[email protected]>
Cc: Magnus Damm <[email protected]>
Cc: Cornelia Huck <[email protected]>
Cc: Halil Pasic <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: David Gibson <[email protected]>
Cc: Juan Quintela <[email protected]>
Cc: "Dr. David Alan Gilbert" <[email protected]>
Cc: Mark Cave-Ayland <[email protected]>
Cc: "Hervé Poussineau" <[email protected]>
Cc: Aleksandar Rikalo <[email protected]>
Cc: BALATON Zoltan <[email protected]>
Cc: Guan Xuetao <[email protected]>
Cc: "Cédric Le Goater" <[email protected]>
Cc: Andrew Jeffery <[email protected]>
Cc: Helge Deller <[email protected]>
Cc: Corey Minyard <[email protected]>
Cc: Peter Xu <[email protected]>
Cc: Jason Wang <[email protected]>
Cc: Sergio Lopez <[email protected]>
Cc: Huacai Chen <[email protected]>
Cc: Jiaxun Yang <[email protected]>
Cc: Chris Wulff <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Xiao Guangrong <[email protected]>
Cc: Paul Burton <[email protected]>
Cc: Artyom Tarasenko <[email protected]>
Cc: Dmitry Fleytman <[email protected]>
Cc: Max Filippov <[email protected]>
Cc: Jiri Pirko <[email protected]>
Cc: Sven Schnelle <[email protected]>
Cc: Laszlo Ersek <[email protected]>
Cc: Yuval Shaia <[email protected]>
Cc: Palmer Dabbelt <[email protected]>
Cc: Sagar Karandikar <[email protected]>
Cc: Bastian Koppelmann <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Tony Krowiak <[email protected]>
Cc: Pierre Morel <[email protected]>
Cc: Eric Farman <[email protected]>
Cc: Matthew Rosato <[email protected]>
Cc: Fam Zheng <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Cc: Alex Williamson <[email protected]>
Cc: Zhang Chen <[email protected]>
Cc: Li Zhijian <[email protected]>
Cc: Pavel Dovgalyuk <[email protected]>
Cc: Wenchao Wang <[email protected]>
Cc: Colin Xu <[email protected]>
Cc: Cameron Esfahani <[email protected]>
Cc: Roman Bolshakov <[email protected]>
Cc: Sunil Muthuswamy <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
--- accel/accel.c | 6 +----- accel/kvm/kvm-all.c | 6 +----- accel/qtest.c | 6 +----- accel/tcg/tcg-all.c | 6 +----- accel/xen/xen-all.c | 6 +----- authz/base.c | 6 +----- authz/list.c | 7 +------ authz/listfile.c | 7 +------ authz/pamacct.c | 7 +------ authz/simple.c | 7 +------ backends/cryptodev-builtin.c | 7 +------ backends/cryptodev-vhost-user.c | 7 +------ backends/cryptodev.c | 7 +------ backends/dbus-vmstate.c | 7 +------ backends/hostmem-file.c | 6 +----- backends/hostmem-memfd.c | 2 +- backends/hostmem-ram.c | 6 +----- backends/hostmem.c | 6 +----- backends/rng-builtin.c | 6 +----- backends/rng-egd.c | 6 +----- backends/rng-random.c | 6 +----- backends/rng.c | 6 +----- backends/tpm/tpm_backend.c | 8 ++------ backends/tpm/tpm_emulator.c | 6 +----- backends/tpm/tpm_passthrough.c | 6 +----- backends/vhost-user.c | 6 +----- block/throttle-groups.c | 6 +----- chardev/baum.c | 6 +----- chardev/char-console.c | 6 +----- chardev/char-fd.c | 6 +----- chardev/char-mux.c | 6 +----- chardev/char-null.c | 6 +----- chardev/char-parallel.c | 6 +----- chardev/char-pty.c | 6 +----- chardev/char-ringbuf.c | 8 ++------ chardev/char-socket.c | 6 +----- chardev/char-udp.c | 6 +----- chardev/char-win-stdio.c | 6 +----- chardev/char-win.c | 6 +----- chardev/char.c | 6 +----- chardev/msmouse.c | 6 +----- chardev/spice.c | 10 +++------- chardev/testdev.c | 6 +----- chardev/wctablet.c | 6 +----- crypto/secret.c | 7 +------ crypto/secret_common.c | 7 +------ crypto/secret_keyring.c | 7 +------ crypto/tls-cipher-suites.c | 6 +----- crypto/tlscreds.c | 7 +------ crypto/tlscredsanon.c | 7 +------ crypto/tlscredspsk.c | 7 +------ crypto/tlscredsx509.c | 7 +------ gdbstub.c | 6 +----- hw/9pfs/virtio-9p-device.c | 6 +----- hw/acpi/generic_event_device.c | 6 +----- hw/acpi/piix4.c | 6 +----- hw/acpi/vmgenid.c | 6 +----- hw/adc/stm32f2xx_adc.c | 6 +----- hw/alpha/typhoon.c | 8 ++------ hw/arm/allwinner-a10.c | 6 +----- hw/arm/allwinner-h3.c | 6 +----- hw/arm/armsse.c | 2 +- hw/arm/armv7m.c | 8 ++------ hw/arm/bcm2835_peripherals.c | 6 +----- hw/arm/bcm2836.c | 2 +- hw/arm/boot.c | 6 +----- hw/arm/collie.c | 6 +----- hw/arm/digic.c | 6 +----- hw/arm/exynos4210.c | 6 +----- hw/arm/exynos4_boards.c | 8 ++------ hw/arm/fsl-imx25.c | 6 +----- hw/arm/fsl-imx31.c | 6 +----- hw/arm/fsl-imx6.c | 6 +----- hw/arm/fsl-imx6ul.c | 6 +----- hw/arm/fsl-imx7.c | 6 +----- hw/arm/gumstix.c | 8 ++------ hw/arm/highbank.c | 14 +++----------- hw/arm/integratorcp.c | 10 +++------- hw/arm/microbit.c | 6 +----- hw/arm/mps2-tz.c | 10 +++------- hw/arm/mps2.c | 10 +++------- hw/arm/msf2-soc.c | 6 +----- hw/arm/musca.c | 10 +++------- hw/arm/musicpal.c | 22 +++++++++------------- hw/arm/nrf51_soc.c | 6 +----- hw/arm/nseries.c | 8 ++------ hw/arm/omap_sx1.c | 8 ++------ hw/arm/palm.c | 6 +----- hw/arm/pxa2xx.c | 14 +++++--------- hw/arm/pxa2xx_gpio.c | 6 +----- hw/arm/pxa2xx_pic.c | 6 +----- hw/arm/realview.c | 12 ++++-------- hw/arm/sbsa-ref.c | 6 +----- hw/arm/smmu-common.c | 6 +----- hw/arm/spitz.c | 28 ++++++++++------------------ hw/arm/stellaris.c | 18 +++++------------- hw/arm/stm32f205_soc.c | 6 +----- hw/arm/stm32f405_soc.c | 6 +----- hw/arm/strongarm.c | 16 ++++++---------- hw/arm/tosa.c | 10 +++------- hw/arm/versatilepb.c | 14 +++----------- hw/arm/vexpress.c | 10 +++------- hw/arm/virt.c | 6 +----- hw/arm/xilinx_zynq.c | 6 +----- hw/arm/xlnx-versal-virt.c | 6 +----- hw/arm/xlnx-versal.c | 6 +----- hw/arm/xlnx-zcu102.c | 6 +----- hw/arm/xlnx-zynqmp.c | 6 +----- hw/audio/cs4231.c | 6 +----- hw/audio/hda-codec.c | 12 ++++-------- hw/audio/intel-hda.c | 10 +++++----- hw/audio/marvell_88w8618.c | 6 +----- hw/audio/milkymist-ac97.c | 6 +----- hw/audio/pcspk.c | 2 +- hw/audio/pl041.c | 6 +----- hw/audio/wm8750.c | 6 +----- hw/block/fdc.c | 16 ++++++---------- hw/block/m25p80.c | 2 +- hw/block/nand.c | 6 +----- hw/block/nvme.c | 6 +----- hw/block/onenand.c | 6 +----- hw/block/pflash_cfi01.c | 6 +----- hw/block/pflash_cfi02.c | 6 +----- hw/block/swim.c | 10 +++------- hw/block/vhost-user-blk.c | 6 +----- hw/block/virtio-blk.c | 6 +----- hw/block/xen-block.c | 10 +++------- hw/char/avr_usart.c | 6 +----- hw/char/bcm2835_aux.c | 6 +----- hw/char/cadence_uart.c | 6 +----- hw/char/cmsdk-apb-uart.c | 6 +----- hw/char/debugcon.c | 6 +----- hw/char/digic-uart.c | 6 +----- hw/char/escc.c | 6 +----- hw/char/etraxfs_ser.c | 6 +----- hw/char/exynos4210_uart.c | 6 +----- hw/char/grlib_apbuart.c | 6 +----- hw/char/ibex_uart.c | 6 +----- hw/char/imx_serial.c | 6 +----- hw/char/ipoctal232.c | 6 +----- hw/char/lm32_juart.c | 6 +----- hw/char/lm32_uart.c | 6 +----- hw/char/mcf_uart.c | 6 +----- hw/char/milkymist-uart.c | 6 +----- hw/char/nrf51_uart.c | 6 +----- hw/char/parallel.c | 6 +----- hw/char/pl011.c | 8 ++------ hw/char/renesas_sci.c | 6 +----- hw/char/sclpconsole-lm.c | 6 +----- hw/char/sclpconsole.c | 6 +----- hw/char/serial-isa.c | 6 +----- hw/char/serial-pci-multi.c | 8 ++------ hw/char/serial-pci.c | 6 +----- hw/char/serial.c | 10 +++------- hw/char/spapr_vty.c | 2 +- hw/char/stm32f2xx_usart.c | 6 +----- hw/char/terminal3270.c | 6 +----- hw/char/virtio-console.c | 8 ++------ hw/char/virtio-serial-bus.c | 10 +++------- hw/char/xilinx_uartlite.c | 6 +----- hw/core/bus.c | 6 +----- hw/core/clock.c | 6 +----- hw/core/cpu.c | 6 +----- hw/core/fw-path-provider.c | 6 +----- hw/core/generic-loader.c | 6 +----- hw/core/hotplug.c | 6 +----- hw/core/irq.c | 6 +----- hw/core/machine.c | 6 +----- hw/core/nmi.c | 6 +----- hw/core/or-irq.c | 6 +----- hw/core/platform-bus.c | 6 +----- hw/core/qdev.c | 6 +----- hw/core/register.c | 6 +----- hw/core/resettable.c | 6 +----- hw/core/split-irq.c | 6 +----- hw/core/stream.c | 6 +----- hw/core/sysbus.c | 8 ++------ hw/core/vmstate-if.c | 6 +----- hw/cpu/a15mpcore.c | 6 +----- hw/cpu/a9mpcore.c | 6 +----- hw/cpu/arm11mpcore.c | 6 +----- hw/cpu/cluster.c | 6 +----- hw/cpu/core.c | 6 +----- hw/cpu/realview_mpcore.c | 6 +----- hw/display/ads7846.c | 6 +----- hw/display/artist.c | 6 +----- hw/display/ati.c | 6 +----- hw/display/bcm2835_fb.c | 6 +----- hw/display/bochs-display.c | 6 +----- hw/display/cg3.c | 6 +----- hw/display/cirrus_vga.c | 6 +----- hw/display/cirrus_vga_isa.c | 6 +----- hw/display/dpcd.c | 6 +----- hw/display/exynos4210_fimd.c | 6 +----- hw/display/g364fb.c | 6 +----- hw/display/i2c-ddc.c | 6 +----- hw/display/jazz_led.c | 6 +----- hw/display/macfb.c | 8 ++------ hw/display/milkymist-tmu2.c | 6 +----- hw/display/milkymist-vgafb.c | 6 +----- hw/display/next-fb.c | 6 +----- hw/display/pl110.c | 10 +++------- hw/display/qxl.c | 10 +++------- hw/display/ramfb-standalone.c | 6 +----- hw/display/sii9022.c | 6 +----- hw/display/sm501.c | 8 ++------ hw/display/ssd0303.c | 6 +----- hw/display/ssd0323.c | 6 +----- hw/display/tcx.c | 6 +----- hw/display/vga-isa.c | 6 +----- hw/display/vga-pci.c | 10 +++------- hw/display/vhost-user-gpu.c | 6 +----- hw/display/virtio-gpu-base.c | 7 +------ hw/display/virtio-gpu-pci.c | 2 +- hw/display/virtio-gpu.c | 6 +----- hw/display/virtio-vga.c | 2 +- hw/display/vmware_vga.c | 6 +----- hw/display/xlnx_dp.c | 6 +----- hw/dma/bcm2835_dma.c | 6 +----- hw/dma/i82374.c | 6 +----- hw/dma/i8257.c | 6 +----- hw/dma/pl080.c | 8 ++------ hw/dma/pl330.c | 6 +----- hw/dma/puv3_dma.c | 6 +----- hw/dma/pxa2xx_dma.c | 6 +----- hw/dma/rc4030.c | 8 ++------ hw/dma/sparc32_dma.c | 12 ++++-------- hw/dma/xilinx_axidma.c | 10 +++------- hw/dma/xlnx-zdma.c | 6 +----- hw/dma/xlnx-zynq-devcfg.c | 6 +----- hw/dma/xlnx_dpdma.c | 6 +----- hw/gpio/aspeed_gpio.c | 14 +++++--------- hw/gpio/bcm2835_gpio.c | 6 +----- hw/gpio/gpio_key.c | 6 +----- hw/gpio/imx_gpio.c | 6 +----- hw/gpio/max7310.c | 6 +----- hw/gpio/mpc8xxx.c | 6 +----- hw/gpio/nrf51_gpio.c | 6 +----- hw/gpio/omap_gpio.c | 8 ++------ hw/gpio/pl061.c | 8 ++------ hw/gpio/puv3_gpio.c | 6 +----- hw/gpio/zaurus.c | 6 +----- hw/hppa/dino.c | 6 +----- hw/hppa/lasi.c | 6 +----- hw/hyperv/hyperv.c | 6 +----- hw/hyperv/hyperv_testdev.c | 6 +----- hw/hyperv/vmbus.c | 10 +++------- hw/i2c/aspeed_i2c.c | 12 ++++-------- hw/i2c/bitbang_i2c.c | 6 +----- hw/i2c/core.c | 8 ++------ hw/i2c/exynos4210_i2c.c | 6 +----- hw/i2c/imx_i2c.c | 6 +----- hw/i2c/microbit_i2c.c | 6 +----- hw/i2c/mpc_i2c.c | 6 +----- hw/i2c/omap_i2c.c | 6 +----- hw/i2c/ppc4xx_i2c.c | 6 +----- hw/i2c/smbus_eeprom.c | 6 +----- hw/i2c/smbus_ich9.c | 6 +----- hw/i2c/smbus_slave.c | 6 +----- hw/i2c/versatile_i2c.c | 6 +----- hw/i386/amd_iommu.c | 10 +++------- hw/i386/intel_iommu.c | 8 ++------ hw/i386/kvm/apic.c | 6 +----- hw/i386/kvm/clock.c | 6 +----- hw/i386/kvm/i8254.c | 6 +----- hw/i386/kvm/i8259.c | 6 +----- hw/i386/kvm/ioapic.c | 6 +----- hw/i386/kvmvapic.c | 6 +----- hw/i386/microvm.c | 6 +----- hw/i386/pc.c | 6 +----- hw/i386/pc_piix.c | 6 +----- hw/i386/port92.c | 6 +----- hw/i386/vmmouse.c | 6 +----- hw/i386/vmport.c | 6 +----- hw/i386/x86-iommu.c | 6 +----- hw/i386/x86.c | 6 +----- hw/i386/xen/xen_apic.c | 6 +----- hw/i386/xen/xen_platform.c | 6 +----- hw/i386/xen/xen_pvdevice.c | 6 +----- hw/ide/ahci-allwinner.c | 6 +----- hw/ide/ahci.c | 6 +----- hw/ide/cmd646.c | 6 +----- hw/ide/ich.c | 6 +----- hw/ide/isa.c | 6 +----- hw/ide/macio.c | 6 +----- hw/ide/microdrive.c | 8 ++------ hw/ide/mmio.c | 6 +----- hw/ide/pci.c | 6 +----- hw/ide/piix.c | 10 +++------- hw/ide/qdev.c | 14 +++++--------- hw/ide/sii3112.c | 6 +----- hw/ide/via.c | 6 +----- hw/input/adb-kbd.c | 6 +----- hw/input/adb-mouse.c | 6 +----- hw/input/adb.c | 8 ++------ hw/input/lm832x.c | 6 +----- hw/input/milkymist-softusb.c | 6 +----- hw/input/pckbd.c | 6 +----- hw/input/pl050.c | 10 +++------- hw/input/vhost-user-input.c | 6 +----- hw/input/virtio-input-hid.c | 12 ++++-------- hw/input/virtio-input-host.c | 6 +----- hw/input/virtio-input.c | 6 +----- hw/intc/allwinner-a10-pic.c | 6 +----- hw/intc/apic.c | 6 +----- hw/intc/apic_common.c | 6 +----- hw/intc/arm_gic.c | 6 +----- hw/intc/arm_gic_common.c | 6 +----- hw/intc/arm_gic_kvm.c | 6 +----- hw/intc/arm_gicv2m.c | 6 +----- hw/intc/arm_gicv3.c | 6 +----- hw/intc/arm_gicv3_common.c | 6 +----- hw/intc/arm_gicv3_its_common.c | 6 +----- hw/intc/arm_gicv3_its_kvm.c | 6 +----- hw/intc/arm_gicv3_kvm.c | 6 +----- hw/intc/armv7m_nvic.c | 6 +----- hw/intc/aspeed_vic.c | 6 +----- hw/intc/bcm2835_ic.c | 6 +----- hw/intc/bcm2836_control.c | 6 +----- hw/intc/etraxfs_pic.c | 6 +----- hw/intc/exynos4210_combiner.c | 6 +----- hw/intc/exynos4210_gic.c | 12 ++---------- hw/intc/grlib_irqmp.c | 6 +----- hw/intc/heathrow_pic.c | 6 +----- hw/intc/i8259.c | 6 +----- hw/intc/i8259_common.c | 6 +----- hw/intc/ibex_plic.c | 6 +----- hw/intc/imx_avic.c | 6 +----- hw/intc/imx_gpcv2.c | 6 +----- hw/intc/intc.c | 6 +----- hw/intc/ioapic.c | 6 +----- hw/intc/ioapic_common.c | 6 +----- hw/intc/lm32_pic.c | 6 +----- hw/intc/loongson_liointc.c | 6 +----- hw/intc/mips_gic.c | 6 +----- hw/intc/nios2_iic.c | 6 +----- hw/intc/omap_intc.c | 10 +++------- hw/intc/ompic.c | 6 +----- hw/intc/openpic.c | 6 +----- hw/intc/openpic_kvm.c | 6 +----- hw/intc/pl190.c | 6 +----- hw/intc/pnv_xive.c | 6 +----- hw/intc/puv3_intc.c | 6 +----- hw/intc/realview_gic.c | 6 +----- hw/intc/rx_icu.c | 6 +----- hw/intc/s390_flic.c | 8 ++------ hw/intc/s390_flic_kvm.c | 6 +----- hw/intc/slavio_intctl.c | 6 +----- hw/intc/spapr_xive.c | 6 +----- hw/intc/xics.c | 10 +++------- hw/intc/xics_pnv.c | 6 +----- hw/intc/xics_spapr.c | 6 +----- hw/intc/xilinx_intc.c | 6 +----- hw/intc/xive.c | 18 +++++++----------- hw/intc/xlnx-pmu-iomod-intc.c | 6 +----- hw/intc/xlnx-zynqmp-ipi.c | 6 +----- hw/ipack/ipack.c | 8 ++------ hw/ipack/tpci200.c | 6 +----- hw/ipmi/ipmi.c | 8 ++------ hw/ipmi/ipmi_bmc_sim.c | 6 +----- hw/ipmi/isa_ipmi_bt.c | 6 +----- hw/ipmi/isa_ipmi_kcs.c | 6 +----- hw/ipmi/pci_ipmi_bt.c | 6 +----- hw/ipmi/pci_ipmi_kcs.c | 6 +----- hw/ipmi/smbus_ipmi.c | 6 +----- hw/isa/i82378.c | 6 +----- hw/isa/isa-bus.c | 12 ++++-------- hw/isa/isa-superio.c | 8 ++------ hw/isa/lpc_ich9.c | 6 +----- hw/isa/pc87312.c | 6 +----- hw/isa/piix3.c | 10 +++------- hw/isa/piix4.c | 6 +----- hw/isa/smc37c669-superio.c | 6 +----- hw/isa/vt82c686.c | 14 +++++--------- hw/lm32/lm32_boards.c | 8 ++------ hw/m68k/mcf_intc.c | 6 +----- hw/m68k/next-cube.c | 6 +----- hw/m68k/next-kbd.c | 6 +----- hw/m68k/q800.c | 6 +----- hw/mem/memory-device.c | 6 +----- hw/mem/nvdimm.c | 6 +----- hw/mem/pc-dimm.c | 6 +----- hw/microblaze/xlnx-zynqmp-pmu.c | 6 +----- hw/mips/boston.c | 6 +----- hw/mips/cps.c | 6 +----- hw/mips/gt64xxx_pci.c | 8 ++------ hw/mips/jazz.c | 8 ++------ hw/mips/malta.c | 6 +----- hw/misc/a9scu.c | 6 +----- hw/misc/allwinner-cpucfg.c | 6 +----- hw/misc/allwinner-h3-ccu.c | 6 +----- hw/misc/allwinner-h3-dramc.c | 6 +----- hw/misc/allwinner-h3-sysctrl.c | 6 +----- hw/misc/allwinner-sid.c | 6 +----- hw/misc/applesmc.c | 6 +----- hw/misc/arm11scu.c | 6 +----- hw/misc/arm_integrator_debug.c | 6 +----- hw/misc/arm_l2x0.c | 6 +----- hw/misc/arm_sysctl.c | 6 +----- hw/misc/armsse-cpuid.c | 6 +----- hw/misc/armsse-mhu.c | 6 +----- hw/misc/aspeed_scu.c | 12 ++++-------- hw/misc/aspeed_sdmc.c | 12 ++++-------- hw/misc/aspeed_xdma.c | 6 +----- hw/misc/auxbus.c | 10 +++------- hw/misc/avr_power.c | 6 +----- hw/misc/bcm2835_mbox.c | 6 +----- hw/misc/bcm2835_mphi.c | 6 +----- hw/misc/bcm2835_property.c | 6 +----- hw/misc/bcm2835_rng.c | 6 +----- hw/misc/bcm2835_thermal.c | 6 +----- hw/misc/debugexit.c | 6 +----- hw/misc/eccmemctl.c | 6 +----- hw/misc/empty_slot.c | 6 +----- hw/misc/exynos4210_clk.c | 2 +- hw/misc/exynos4210_pmu.c | 6 +----- hw/misc/exynos4210_rng.c | 6 +----- hw/misc/grlib_ahb_apb_pnp.c | 8 ++------ hw/misc/imx25_ccm.c | 6 +----- hw/misc/imx31_ccm.c | 6 +----- hw/misc/imx6_ccm.c | 6 +----- hw/misc/imx6_src.c | 6 +----- hw/misc/imx6ul_ccm.c | 6 +----- hw/misc/imx7_ccm.c | 8 ++------ hw/misc/imx7_gpr.c | 6 +----- hw/misc/imx7_snvs.c | 6 +----- hw/misc/imx_ccm.c | 6 +----- hw/misc/imx_rngc.c | 6 +----- hw/misc/iotkit-secctl.c | 6 +----- hw/misc/iotkit-sysctl.c | 6 +----- hw/misc/iotkit-sysinfo.c | 6 +----- hw/misc/ivshmem.c | 10 +++------- hw/misc/mac_via.c | 10 +++------- hw/misc/macio/cuda.c | 8 ++------ hw/misc/macio/gpio.c | 6 +----- hw/misc/macio/mac_dbdma.c | 6 +----- hw/misc/macio/macio.c | 12 ++++-------- hw/misc/macio/pmu.c | 8 ++------ hw/misc/max111x.c | 10 +++------- hw/misc/milkymist-hpdmc.c | 6 +----- hw/misc/milkymist-pfpu.c | 6 +----- hw/misc/mips_cmgcr.c | 6 +----- hw/misc/mips_cpc.c | 6 +----- hw/misc/mips_itu.c | 6 +----- hw/misc/mos6522.c | 6 +----- hw/misc/mps2-fpgaio.c | 6 +----- hw/misc/mps2-scc.c | 6 +----- hw/misc/msf2-sysreg.c | 6 +----- hw/misc/mst_fpga.c | 6 +----- hw/misc/nrf51_rng.c | 6 +----- hw/misc/pc-testdev.c | 6 +----- hw/misc/pca9552.c | 8 ++------ hw/misc/pci-testdev.c | 6 +----- hw/misc/puv3_pm.c | 6 +----- hw/misc/pvpanic.c | 6 +----- hw/misc/sga.c | 6 +----- hw/misc/slavio_misc.c | 8 ++------ hw/misc/stm32f2xx_syscfg.c | 6 +----- hw/misc/stm32f4xx_exti.c | 6 +----- hw/misc/stm32f4xx_syscfg.c | 6 +----- hw/misc/tmp105.c | 6 +----- hw/misc/tmp421.c | 2 +- hw/misc/tz-mpc.c | 8 ++------ hw/misc/tz-msc.c | 6 +----- hw/misc/tz-ppc.c | 6 +----- hw/misc/unimp.c | 6 +----- hw/misc/vmcoreinfo.c | 6 +----- hw/misc/zynq-xadc.c | 6 +----- hw/misc/zynq_slcr.c | 6 +----- hw/net/allwinner-sun8i-emac.c | 6 +----- hw/net/allwinner_emac.c | 6 +----- hw/net/cadence_gem.c | 6 +----- hw/net/can/can_kvaser_pci.c | 6 +----- hw/net/can/can_mioe3680_pci.c | 6 +----- hw/net/can/can_pcm3680_pci.c | 6 +----- hw/net/dp8393x.c | 6 +----- hw/net/e1000.c | 2 +- hw/net/e1000e.c | 6 +----- hw/net/etraxfs_eth.c | 6 +----- hw/net/fsl_etsec/etsec.c | 6 +----- hw/net/ftgmac100.c | 8 ++------ hw/net/imx_fec.c | 8 ++------ hw/net/lan9118.c | 6 +----- hw/net/lance.c | 6 +----- hw/net/lasi_i82596.c | 6 +----- hw/net/mcf_fec.c | 6 +----- hw/net/milkymist-minimac2.c | 6 +----- hw/net/mipsnet.c | 6 +----- hw/net/msf2-emac.c | 6 +----- hw/net/ne2000-isa.c | 6 +----- hw/net/ne2000-pci.c | 6 +----- hw/net/opencores_eth.c | 6 +----- hw/net/pcnet-pci.c | 6 +----- hw/net/rocker/rocker.c | 6 +----- hw/net/rtl8139.c | 6 +----- hw/net/smc91c111.c | 6 +----- hw/net/spapr_llan.c | 2 +- hw/net/stellaris_enet.c | 6 +----- hw/net/sungem.c | 6 +----- hw/net/sunhme.c | 6 +----- hw/net/tulip.c | 6 +----- hw/net/virtio-net.c | 6 +----- hw/net/vmxnet3.c | 2 +- hw/net/xgmac.c | 6 +----- hw/net/xilinx_axienet.c | 10 +++------- hw/net/xilinx_ethlite.c | 6 +----- hw/nubus/mac-nubus-bridge.c | 6 +----- hw/nubus/nubus-bridge.c | 6 +----- hw/nubus/nubus-bus.c | 6 +----- hw/nubus/nubus-device.c | 6 +----- hw/nvram/ds1225y.c | 6 +----- hw/nvram/eeprom_at24c.c | 6 +----- hw/nvram/fw_cfg.c | 12 ++++-------- hw/nvram/mac_nvram.c | 6 +----- hw/nvram/nrf51_nvm.c | 6 +----- hw/nvram/spapr_nvram.c | 6 +----- hw/pci-bridge/dec.c | 10 +++------- hw/pci-bridge/i82801b11.c | 6 +----- hw/pci-bridge/ioh3420.c | 6 +----- hw/pci-bridge/pci_bridge_dev.c | 8 ++------ hw/pci-bridge/pci_expander_bridge.c | 14 +++++--------- hw/pci-bridge/pcie_pci_bridge.c | 6 +----- hw/pci-bridge/pcie_root_port.c | 6 +----- hw/pci-bridge/simba.c | 6 +----- hw/pci-bridge/xio3130_downstream.c | 6 +----- hw/pci-bridge/xio3130_upstream.c | 6 +----- hw/pci-host/bonito.c | 8 ++------ hw/pci-host/designware.c | 8 ++------ hw/pci-host/gpex.c | 8 ++------ hw/pci-host/grackle.c | 8 ++------ hw/pci-host/i440fx.c | 8 ++------ hw/pci-host/pnv_phb3.c | 12 ++++-------- hw/pci-host/pnv_phb3_msi.c | 6 +----- hw/pci-host/pnv_phb3_pbcq.c | 6 +----- hw/pci-host/pnv_phb4.c | 12 ++++-------- hw/pci-host/pnv_phb4_pec.c | 8 ++------ hw/pci-host/ppce500.c | 8 ++------ hw/pci-host/prep.c | 8 ++------ hw/pci-host/q35.c | 8 ++------ hw/pci-host/sabre.c | 8 ++------ hw/pci-host/uninorth.c | 18 +++++++++--------- hw/pci-host/versatile.c | 10 +++------- hw/pci-host/xen_igd_pt.c | 6 +----- hw/pci-host/xilinx-pcie.c | 8 ++------ hw/pci/pci.c | 14 +++++--------- hw/pci/pci_bridge.c | 6 +----- hw/pci/pci_host.c | 6 +----- hw/pci/pcie_host.c | 6 +----- hw/pci/pcie_port.c | 8 ++------ hw/pcmcia/pcmcia.c | 6 +----- hw/pcmcia/pxa2xx.c | 6 +----- hw/ppc/e500.c | 8 ++------ hw/ppc/e500plat.c | 6 +----- hw/ppc/mac_newworld.c | 6 +----- hw/ppc/mac_oldworld.c | 6 +----- hw/ppc/mpc8544_guts.c | 6 +----- hw/ppc/mpc8544ds.c | 6 +----- hw/ppc/pnv_core.c | 6 +----- hw/ppc/pnv_homer.c | 10 +++------- hw/ppc/pnv_lpc.c | 12 ++++-------- hw/ppc/pnv_occ.c | 10 +++------- hw/ppc/pnv_pnor.c | 6 +----- hw/ppc/pnv_psi.c | 12 ++++-------- hw/ppc/pnv_xscom.c | 6 +----- hw/ppc/ppc405_boards.c | 8 ++------ hw/ppc/ppc440_pcix.c | 6 +----- hw/ppc/ppc440_uc.c | 6 +----- hw/ppc/ppc4xx_pci.c | 8 ++------ hw/ppc/ppce500_spin.c | 6 +----- hw/ppc/prep_systemio.c | 6 +----- hw/ppc/rs6000_mc.c | 6 +----- hw/ppc/spapr.c | 6 +----- hw/ppc/spapr_drc.c | 16 ++++++++-------- hw/ppc/spapr_iommu.c | 8 ++------ hw/ppc/spapr_irq.c | 6 +----- hw/ppc/spapr_pci.c | 6 +----- hw/ppc/spapr_rng.c | 6 +----- hw/ppc/spapr_rtc.c | 6 +----- hw/ppc/spapr_tpm_proxy.c | 2 +- hw/ppc/spapr_vio.c | 10 +++------- hw/rdma/rdma.c | 6 +----- hw/rdma/vmw/pvrdma_main.c | 6 +----- hw/riscv/opentitan.c | 6 +----- hw/riscv/riscv_hart.c | 6 +----- hw/riscv/sifive_clint.c | 6 +----- hw/riscv/sifive_e.c | 12 ++---------- hw/riscv/sifive_e_prci.c | 6 +----- hw/riscv/sifive_gpio.c | 6 +----- hw/riscv/sifive_plic.c | 6 +----- hw/riscv/sifive_test.c | 6 +----- hw/riscv/sifive_u.c | 12 ++---------- hw/riscv/sifive_u_otp.c | 6 +----- hw/riscv/sifive_u_prci.c | 6 +----- hw/riscv/virt.c | 6 +----- hw/rtc/allwinner-rtc.c | 12 ++++-------- hw/rtc/aspeed_rtc.c | 6 +----- hw/rtc/ds1338.c | 6 +----- hw/rtc/exynos4210_rtc.c | 6 +----- hw/rtc/goldfish_rtc.c | 6 +----- hw/rtc/m41t80.c | 6 +----- hw/rtc/m48t59-isa.c | 2 +- hw/rtc/m48t59.c | 4 ++-- hw/rtc/mc146818rtc.c | 6 +----- hw/rtc/pl031.c | 6 +----- hw/rtc/sun4v-rtc.c | 6 +----- hw/rtc/twl92230.c | 6 +----- hw/rtc/xlnx-zynqmp-rtc.c | 6 +----- hw/s390x/3270-ccw.c | 6 +----- hw/s390x/ap-bridge.c | 8 ++------ hw/s390x/ap-device.c | 6 +----- hw/s390x/ccw-device.c | 6 +----- hw/s390x/css-bridge.c | 8 ++------ hw/s390x/event-facility.c | 10 +++------- hw/s390x/ipl.c | 6 +----- hw/s390x/s390-ccw.c | 6 +----- hw/s390x/s390-pci-bus.c | 14 +++++--------- hw/s390x/s390-skeys-kvm.c | 6 +----- hw/s390x/s390-skeys.c | 8 ++------ hw/s390x/s390-stattrib-kvm.c | 6 +----- hw/s390x/s390-stattrib.c | 8 ++------ hw/s390x/s390-virtio-ccw.c | 6 +----- hw/s390x/sclp.c | 6 +----- hw/s390x/sclpcpu.c | 6 +----- hw/s390x/sclpquiesce.c | 6 +----- hw/s390x/tod-kvm.c | 6 +----- hw/s390x/tod-qemu.c | 6 +----- hw/s390x/tod.c | 6 +----- hw/s390x/vhost-vsock-ccw.c | 6 +----- hw/s390x/virtio-ccw-9p.c | 6 +----- hw/s390x/virtio-ccw-balloon.c | 6 +----- hw/s390x/virtio-ccw-blk.c | 6 +----- hw/s390x/virtio-ccw-crypto.c | 6 +----- hw/s390x/virtio-ccw-gpu.c | 6 +----- hw/s390x/virtio-ccw-input.c | 14 +++++--------- hw/s390x/virtio-ccw-net.c | 6 +----- hw/s390x/virtio-ccw-rng.c | 6 +----- hw/s390x/virtio-ccw-scsi.c | 4 ++-- hw/s390x/virtio-ccw-serial.c | 6 +----- hw/s390x/virtio-ccw.c | 8 ++------ hw/scsi/esp-pci.c | 8 ++------ hw/scsi/esp.c | 6 +----- hw/scsi/lsi53c895a.c | 8 ++------ hw/scsi/megasas.c | 2 +- hw/scsi/scsi-bus.c | 8 ++------ hw/scsi/scsi-disk.c | 10 +++++----- hw/scsi/scsi-generic.c | 6 +----- hw/scsi/spapr_vscsi.c | 6 +----- hw/scsi/vhost-scsi-common.c | 6 +----- hw/scsi/vhost-scsi.c | 6 +----- hw/scsi/vhost-user-scsi.c | 6 +----- hw/scsi/virtio-scsi.c | 8 ++------ hw/scsi/vmw_pvscsi.c | 7 +------ hw/sd/allwinner-sdhost.c | 12 ++++-------- hw/sd/aspeed_sdhci.c | 6 +----- hw/sd/bcm2835_sdhost.c | 8 ++------ hw/sd/core.c | 6 +----- hw/sd/pxa2xx_mmci.c | 8 ++------ hw/sd/sd.c | 6 +----- hw/sd/sdhci-pci.c | 6 +----- hw/sd/sdhci.c | 12 ++++-------- hw/sd/ssi-sd.c | 6 +----- hw/sh4/sh_pci.c | 8 ++------ hw/sparc/sun4m.c | 28 ++++++++++++++-------------- hw/sparc/sun4m_iommu.c | 8 ++------ hw/sparc64/niagara.c | 6 +----- hw/sparc64/sun4u.c | 12 ++++++------ hw/sparc64/sun4u_iommu.c | 8 ++------ hw/ssi/aspeed_smc.c | 2 +- hw/ssi/imx_spi.c | 6 +----- hw/ssi/mss-spi.c | 6 +----- hw/ssi/pl022.c | 6 +----- hw/ssi/ssi.c | 8 ++------ hw/ssi/stm32f2xx_spi.c | 6 +----- hw/ssi/xilinx_spi.c | 6 +----- hw/ssi/xilinx_spips.c | 10 +++------- hw/timer/a9gtimer.c | 6 +----- hw/timer/allwinner-a10-pit.c | 6 +----- hw/timer/altera_timer.c | 6 +----- hw/timer/arm_mptimer.c | 6 +----- hw/timer/arm_timer.c | 8 ++------ hw/timer/armv7m_systick.c | 6 +----- hw/timer/aspeed_timer.c | 12 ++++-------- hw/timer/avr_timer16.c | 6 +----- hw/timer/bcm2835_systmr.c | 6 +----- hw/timer/cadence_ttc.c | 6 +----- hw/timer/cmsdk-apb-dualtimer.c | 6 +----- hw/timer/cmsdk-apb-timer.c | 6 +----- hw/timer/digic-timer.c | 6 +----- hw/timer/etraxfs_timer.c | 6 +----- hw/timer/exynos4210_mct.c | 6 +----- hw/timer/exynos4210_pwm.c | 6 +----- hw/timer/grlib_gptimer.c | 6 +----- hw/timer/hpet.c | 6 +----- hw/timer/i8254.c | 6 +----- hw/timer/i8254_common.c | 6 +----- hw/timer/imx_epit.c | 6 +----- hw/timer/imx_gpt.c | 12 ++++-------- hw/timer/lm32_timer.c | 6 +----- hw/timer/milkymist-sysctl.c | 6 +----- hw/timer/mss-timer.c | 6 +----- hw/timer/nrf51_timer.c | 6 +----- hw/timer/puv3_ost.c | 6 +----- hw/timer/pxa2xx_timer.c | 10 +++------- hw/timer/renesas_cmt.c | 6 +----- hw/timer/renesas_tmr.c | 6 +----- hw/timer/slavio_timer.c | 6 +----- hw/timer/stm32f2xx_timer.c | 6 +----- hw/timer/xilinx_timer.c | 6 +----- hw/tpm/tpm_crb.c | 6 +----- hw/tpm/tpm_spapr.c | 6 +----- hw/tpm/tpm_tis_isa.c | 6 +----- hw/tpm/tpm_tis_sysbus.c | 6 +----- hw/usb/bus.c | 8 ++------ hw/usb/ccid-card-emulated.c | 6 +----- hw/usb/ccid-card-passthru.c | 6 +----- hw/usb/chipidea.c | 6 +----- hw/usb/dev-audio.c | 2 +- hw/usb/dev-hid.c | 8 ++++---- hw/usb/dev-hub.c | 6 +----- hw/usb/dev-mtp.c | 6 +----- hw/usb/dev-network.c | 6 +----- hw/usb/dev-serial.c | 6 +++--- hw/usb/dev-smartcard-reader.c | 6 +++--- hw/usb/dev-storage.c | 10 +++------- hw/usb/dev-uas.c | 6 +----- hw/usb/dev-wacom.c | 2 +- hw/usb/hcd-dwc2.c | 6 +----- hw/usb/hcd-ehci-pci.c | 2 +- hw/usb/hcd-ehci-sysbus.c | 18 +++++++----------- hw/usb/hcd-ohci-pci.c | 6 +----- hw/usb/hcd-ohci.c | 6 +----- hw/usb/hcd-uhci.c | 2 +- hw/usb/hcd-xhci-nec.c | 6 +----- hw/usb/hcd-xhci.c | 8 ++------ hw/usb/host-libusb.c | 6 +----- hw/usb/imx-usb-phy.c | 6 +----- hw/usb/redirect.c | 6 +----- hw/usb/tusb6010.c | 6 +----- hw/vfio/amd-xgbe.c | 6 +----- hw/vfio/ap.c | 6 +----- hw/vfio/calxeda-xgmac.c | 6 +----- hw/vfio/ccw.c | 6 +----- hw/vfio/igd.c | 6 +----- hw/vfio/pci.c | 8 ++------ hw/vfio/platform.c | 6 +----- hw/virtio/vhost-user-fs.c | 6 +----- hw/virtio/vhost-user-vsock.c | 6 +----- hw/virtio/vhost-vsock-common.c | 6 +----- hw/virtio/vhost-vsock.c | 6 +----- hw/virtio/virtio-balloon.c | 6 +----- hw/virtio/virtio-bus.c | 6 +----- hw/virtio/virtio-crypto.c | 6 +----- hw/virtio/virtio-input-pci.c | 4 ++-- hw/virtio/virtio-iommu.c | 8 ++------ hw/virtio/virtio-mem.c | 6 +----- hw/virtio/virtio-mmio.c | 8 ++------ hw/virtio/virtio-pci.c | 4 ++-- hw/virtio/virtio-pmem.c | 6 +----- hw/virtio/virtio-rng.c | 6 +----- hw/virtio/virtio.c | 6 +----- hw/watchdog/cmsdk-apb-watchdog.c | 8 ++------ hw/watchdog/wdt_aspeed.c | 8 ++++---- hw/watchdog/wdt_diag288.c | 2 +- hw/watchdog/wdt_i6300esb.c | 2 +- hw/watchdog/wdt_ib700.c | 2 +- hw/watchdog/wdt_imx2.c | 2 +- hw/xen/xen-bus.c | 10 +++------- hw/xen/xen-legacy-backend.c | 10 +++------- hw/xen/xen_pt.c | 6 +----- hw/xtensa/xtfpga.c | 20 ++++++++------------ io/channel-buffer.c | 6 +----- io/channel-command.c | 6 +----- io/channel-file.c | 6 +----- io/channel-socket.c | 6 +----- io/channel-tls.c | 6 +----- io/channel-websock.c | 6 +----- io/channel.c | 6 +----- io/dns-resolver.c | 6 +----- io/net-listener.c | 6 +----- iothread.c | 6 +----- migration/migration.c | 6 +----- migration/rdma.c | 6 +----- net/can/can_core.c | 6 +----- net/can/can_host.c | 6 +----- net/can/can_socketcan.c | 6 +----- net/colo-compare.c | 6 +----- net/dump.c | 6 +----- net/filter-buffer.c | 6 +----- net/filter-mirror.c | 8 ++------ net/filter-replay.c | 6 +----- net/filter-rewriter.c | 6 +----- net/filter.c | 6 +----- qom/container.c | 6 +----- scsi/pr-manager-helper.c | 6 +----- scsi/pr-manager.c | 7 +------ softmmu/memory.c | 8 ++------ target/arm/cpu.c | 4 ++-- target/arm/cpu64.c | 2 +- target/hppa/cpu.c | 6 +----- target/i386/cpu.c | 8 ++++---- target/i386/hax-all.c | 6 +----- target/i386/hvf/hvf.c | 6 +----- target/i386/sev.c | 7 +------ target/i386/whpx-all.c | 6 +----- target/microblaze/cpu.c | 6 +----- target/mips/cpu.c | 2 +- target/nios2/cpu.c | 6 +----- target/rx/cpu.c | 8 ++------ target/s390x/cpu.c | 6 +----- target/s390x/cpu_models.c | 6 +++--- target/sparc/cpu.c | 2 +- target/tilegx/cpu.c | 6 +----- target/xtensa/cpu.c | 6 +----- ui/console.c | 6 +----- ui/input-barrier.c | 6 +----- ui/input-linux.c | 6 +----- target/ppc/translate_init.c.inc | 4 ++-- 817 files changed, 1181 insertions(+), 4312 deletions(-)
accel/accel.c +1 -5
@@ -36,6 +36,7 @@ static const TypeInfo accel_type = { .class_size = sizeof(AccelClass), .instance_size = sizeof(AccelState), }; +TYPE_INFO (accel_type)/* Lookup AccelClass from opt_name. Returns NULL if not found */ AccelClass *accel_find(const char *opt_name)
@@ -77,9 +78,4 @@ void accel_setup_post(MachineState *ms) } } -static void register_accel_types (void ) -{ -type_register_static (&accel_type); -} -type_init (register_accel_types);
accel/kvm/kvm-all.c +1 -5
@@ -3208,10 +3208,6 @@ static const TypeInfo kvm_accel_type = { .class_init = kvm_accel_class_init, .instance_size = sizeof(KVMState), }; +TYPE_INFO (kvm_accel_type) -static void kvm_type_init (void ) -{ -type_register_static (&kvm_accel_type); -} -type_init (kvm_type_init);
accel/qtest.c +1 -5
@@ -45,10 +45,6 @@ static const TypeInfo qtest_accel_type = { .parent = TYPE_ACCEL, .class_init = qtest_accel_class_init, }; +TYPE_INFO (qtest_accel_type) -static void qtest_type_init (void ) -{ -type_register_static (&qtest_accel_type); -} -type_init (qtest_type_init);
accel/tcg/tcg-all.c +1 -5
@@ -217,10 +217,6 @@ static const TypeInfo tcg_accel_type = { .class_init = tcg_accel_class_init, .instance_size = sizeof(TCGState), }; +TYPE_INFO (tcg_accel_type) -static void register_accel_types (void ) -{ -type_register_static (&tcg_accel_type); -} -type_init (register_accel_types);
accel/xen/xen-all.c +1 -5
@@ -213,10 +213,6 @@ static const TypeInfo xen_accel_type = { .parent = TYPE_ACCEL, .class_init = xen_accel_class_init, }; +TYPE_INFO (xen_accel_type) -static void xen_type_init (void ) -{ -type_register_static (&xen_accel_type); -} -type_init (xen_type_init);
authz/base.c +1 -5
@@ -73,11 +73,7 @@ static const TypeInfo authz_info = { .class_size = sizeof(QAuthZClass), .abstract = true, }; +TYPE_INFO (authz_info) -static void qauthz_register_types (void ) -{ -type_register_static (&authz_info); -} -type_init (qauthz_register_types)
authz/list.c +1 -6
@@ -259,13 +259,8 @@ static const TypeInfo qauthz_list_info = { { } } }; +TYPE_INFO (qauthz_list_info) -static void -qauthz_list_register_types (void ) -{ -type_register_static (&qauthz_list_info); -} -type_init (qauthz_list_register_types);
authz/listfile.c +1 -6
@@ -270,13 +270,8 @@ static const TypeInfo qauthz_list_file_info = { { } } }; +TYPE_INFO (qauthz_list_file_info) -static void -qauthz_list_file_register_types (void ) -{ -type_register_static (&qauthz_list_file_info); -} -type_init (qauthz_list_file_register_types);
authz/pamacct.c +1 -6
@@ -136,13 +136,8 @@ static const TypeInfo qauthz_pam_info = { { } } }; +TYPE_INFO (qauthz_pam_info) -static void -qauthz_pam_register_types (void ) -{ -type_register_static (&qauthz_pam_info); -} -type_init (qauthz_pam_register_types);
authz/simple.c +1 -6
@@ -103,13 +103,8 @@ static const TypeInfo qauthz_simple_info = { { } } }; +TYPE_INFO (qauthz_simple_info) -static void -qauthz_simple_register_types (void ) -{ -type_register_static (&qauthz_simple_info); -} -type_init (qauthz_simple_register_types);
backends/cryptodev-builtin.c +1 -6
@@ -384,11 +384,6 @@ static const TypeInfo cryptodev_builtin_info = { .class_init = cryptodev_builtin_class_init, .instance_size = sizeof(CryptoDevBackendBuiltin), }; +TYPE_INFO (cryptodev_builtin_info) -static void -cryptodev_builtin_register_types (void ) -{ -type_register_static (&cryptodev_builtin_info); -} -type_init (cryptodev_builtin_register_types);
backends/cryptodev-vhost-user.c +1 -6
@@ -372,11 +372,6 @@ static const TypeInfo cryptodev_vhost_user_info = { .instance_finalize = cryptodev_vhost_user_finalize, .instance_size = sizeof(CryptoDevBackendVhostUser), }; +TYPE_INFO (cryptodev_vhost_user_info) -static void -cryptodev_vhost_user_register_types (void ) -{ -type_register_static (&cryptodev_vhost_user_info); -} -type_init (cryptodev_vhost_user_register_types);
backends/cryptodev.c +1 -6
@@ -245,11 +245,6 @@ static const TypeInfo cryptodev_backend_info = { { } } }; +TYPE_INFO (cryptodev_backend_info) -static void -cryptodev_backend_register_types (void ) -{ -type_register_static (&cryptodev_backend_info); -} -type_init (cryptodev_backend_register_types);
backends/dbus-vmstate.c +1 -6
@@ -499,11 +499,6 @@ static const TypeInfo dbus_vmstate_info = { { } } }; +TYPE_INFO (dbus_vmstate_info) -static void -register_types (void ) -{ -type_register_static (&dbus_vmstate_info); -} -type_init (register_types);
backends/hostmem-file.c +1 -5
@@ -199,10 +199,6 @@ static const TypeInfo file_backend_info = { .instance_finalize = file_backend_instance_finalize, .instance_size = sizeof(HostMemoryBackendFile), }; +TYPE_INFO (file_backend_info) -static void register_types (void ) -{ -type_register_static (&file_backend_info); -} -type_init (register_types);
backends/hostmem-memfd.c +1 -1
@@ -161,11 +161,11 @@ static const TypeInfo memfd_backend_info = { .class_init = memfd_backend_class_init, .instance_size = sizeof(HostMemoryBackendMemfd), }; +TYPE_INFO (memfd_backend_info) static void register_types(void) {if (qemu_memfd_check (MFD_ALLOW_SEALING )) { -type_register_static (&memfd_backend_info); } }
backends/hostmem-ram.c +1 -5
@@ -45,10 +45,6 @@ static const TypeInfo ram_backend_info = { .parent = TYPE_MEMORY_BACKEND, .class_init = ram_backend_class_init, }; +TYPE_INFO (ram_backend_info) -static void register_types (void ) -{ -type_register_static (&ram_backend_info); -} -type_init (register_types);
backends/hostmem.c +1 -5
@@ -516,10 +516,6 @@ static const TypeInfo host_memory_backend_info = { { } } }; +TYPE_INFO (host_memory_backend_info) -static void register_types (void ) -{ -type_register_static (&host_memory_backend_info); -} -type_init (register_types);
backends/rng-builtin.c +1 -5
@@ -68,10 +68,6 @@ static const TypeInfo rng_builtin_info = { .instance_finalize = rng_builtin_finalize, .class_init = rng_builtin_class_init, }; +TYPE_INFO (rng_builtin_info) -static void register_types (void ) -{ -type_register_static (&rng_builtin_info); -} -type_init (register_types);
backends/rng-egd.c +1 -5
@@ -165,10 +165,6 @@ static const TypeInfo rng_egd_info = { .instance_init = rng_egd_init, .instance_finalize = rng_egd_finalize, }; +TYPE_INFO (rng_egd_info) -static void register_types (void ) -{ -type_register_static (&rng_egd_info); -} -type_init (register_types);
backends/rng-random.c +1 -5
@@ -144,10 +144,6 @@ static const TypeInfo rng_random_info = { .instance_init = rng_random_init, .instance_finalize = rng_random_finalize, }; +TYPE_INFO (rng_random_info) -static void register_types (void ) -{ -type_register_static (&rng_random_info); -} -type_init (register_types);
backends/rng.c +1 -5
@@ -139,10 +139,6 @@ static const TypeInfo rng_backend_info = { { } } }; +TYPE_INFO (rng_backend_info) -static void register_types (void ) -{ -type_register_static (&rng_backend_info); -} -type_init (register_types);
backends/tpm/tpm_backend.c +2 -6
@@ -192,17 +192,13 @@ static const TypeInfo tpm_backend_info = { .class_size = sizeof(TPMBackendClass), .abstract = true, }; +TYPE_INFO (tpm_backend_info) static const TypeInfo tpm_if_info = { .name =TYPE_TPM_IF , .parent =TYPE_INTERFACE , .class_size =sizeof (TPMIfClass), }; +TYPE_INFO (tpm_if_info) -static void register_types (void ) -{ -type_register_static (&tpm_backend_info); -type_register_static (&tpm_if_info); -} -type_init (register_types);
backends/tpm/tpm_emulator.c +1 -5
@@ -996,10 +996,6 @@ static const TypeInfo tpm_emulator_info = { .instance_init = tpm_emulator_inst_init, .instance_finalize = tpm_emulator_inst_finalize, }; +TYPE_INFO (tpm_emulator_info) -static void tpm_emulator_register (void ) -{ -type_register_static (&tpm_emulator_info); -} -type_init (tpm_emulator_register)
backends/tpm/tpm_passthrough.c +1 -5
@@ -396,10 +396,6 @@ static const TypeInfo tpm_passthrough_info = { .instance_init = tpm_passthrough_inst_init, .instance_finalize = tpm_passthrough_inst_finalize, }; +TYPE_INFO (tpm_passthrough_info) -static void tpm_passthrough_register (void ) -{ -type_register_static (&tpm_passthrough_info); -} -type_init (tpm_passthrough_register)
backends/vhost-user.c +1 -5
@@ -199,10 +199,6 @@ static const TypeInfo vhost_user_backend_info = { .instance_finalize = vhost_user_backend_finalize, .class_size = sizeof(VhostUserBackendClass), }; +TYPE_INFO (vhost_user_backend_info) -static void register_types (void ) -{ -type_register_static (&vhost_user_backend_info); -} -type_init (register_types);
block/throttle-groups.c +1 -5
@@ -968,10 +968,6 @@ static const TypeInfo throttle_group_info = { { } }, }; +TYPE_INFO (throttle_group_info) -static void throttle_groups_init (void ) -{ -type_register_static (&throttle_group_info); -} -type_init (throttle_groups_init);
chardev/baum.c +1 -5
@@ -677,10 +677,6 @@ static const TypeInfo char_braille_type_info = { .instance_finalize = char_braille_finalize, .class_init = char_braille_class_init, }; +TYPE_INFO (char_braille_type_info) -static void register_types (void ) -{ -type_register_static (&char_braille_type_info); -} -type_init (register_types);
chardev/char-console.c +1 -5
@@ -46,10 +46,6 @@ static const TypeInfo char_console_type_info = { .parent = TYPE_CHARDEV_WIN, .class_init = char_console_class_init, }; +TYPE_INFO (char_console_type_info) -static void register_types (void ) -{ -type_register_static (&char_console_type_info); -} -type_init (register_types);
chardev/char-fd.c +1 -5
@@ -161,10 +161,6 @@ static const TypeInfo char_fd_type_info = { .class_init = char_fd_class_init, .abstract = true, }; +TYPE_INFO (char_fd_type_info) -static void register_types (void ) -{ -type_register_static (&char_fd_type_info); -} -type_init (register_types);
chardev/char-mux.c +1 -5
@@ -394,10 +394,6 @@ static const TypeInfo char_mux_type_info = { .instance_size = sizeof(MuxChardev), .instance_finalize = char_mux_finalize, }; +TYPE_INFO (char_mux_type_info) -static void register_types (void ) -{ -type_register_static (&char_mux_type_info); -} -type_init (register_types);
chardev/char-null.c +1 -5
@@ -47,10 +47,6 @@ static const TypeInfo char_null_type_info = { .instance_size = sizeof(Chardev), .class_init = char_null_class_init, }; +TYPE_INFO (char_null_type_info) -static void register_types (void ) -{ -type_register_static (&char_null_type_info); -} -type_init (register_types);
chardev/char-parallel.c +1 -5
@@ -308,12 +308,8 @@ static const TypeInfo char_parallel_type_info = { .instance_finalize = char_parallel_finalize, .class_init = char_parallel_class_init, }; +TYPE_INFO(char_parallel_type_info) -static void register_types (void ) -{ -type_register_static (&char_parallel_type_info); -} -type_init (register_types);#endif
chardev/char-pty.c +1 -5
@@ -243,10 +243,6 @@ static const TypeInfo char_pty_type_info = { .instance_finalize = char_pty_finalize, .class_init = char_pty_class_init, }; +TYPE_INFO (char_pty_type_info) -static void register_types (void ) -{ -type_register_static (&char_pty_type_info); -} -type_init (register_types);
chardev/char-ringbuf.c +2 -6
@@ -237,17 +237,13 @@ static const TypeInfo char_ringbuf_type_info = { .instance_size = sizeof(RingBufChardev), .instance_finalize = char_ringbuf_finalize, }; +TYPE_INFO (char_ringbuf_type_info)/* Bug-compatibility: */ static const TypeInfo char_memory_type_info = { .name =TYPE_CHARDEV_MEMORY , .parent =TYPE_CHARDEV_RINGBUF , }; +TYPE_INFO (char_memory_type_info) -static void register_types (void ) -{ -type_register_static (&char_ringbuf_type_info); -type_register_static (&char_memory_type_info); -} -type_init (register_types);
chardev/char-socket.c +1 -5
@@ -1510,10 +1510,6 @@ static const TypeInfo char_socket_type_info = { .instance_finalize = char_socket_finalize, .class_init = char_socket_class_init, }; +TYPE_INFO (char_socket_type_info) -static void register_types (void ) -{ -type_register_static (&char_socket_type_info); -} -type_init (register_types);
chardev/char-udp.c +1 -5
@@ -234,10 +234,6 @@ static const TypeInfo char_udp_type_info = { .instance_finalize = char_udp_finalize, .class_init = char_udp_class_init, }; +TYPE_INFO (char_udp_type_info) -static void register_types (void ) -{ -type_register_static (&char_udp_type_info); -} -type_init (register_types);
chardev/char-win-stdio.c +1 -5
@@ -260,10 +260,6 @@ static const TypeInfo char_win_stdio_type_info = { .class_init = char_win_stdio_class_init, .abstract = true, }; +TYPE_INFO (char_win_stdio_type_info) -static void register_types (void ) -{ -type_register_static (&char_win_stdio_type_info); -} -type_init (register_types);
chardev/char-win.c +1 -5
@@ -235,10 +235,6 @@ static const TypeInfo char_win_type_info = { .class_init = char_win_class_init, .abstract = true, }; +TYPE_INFO (char_win_type_info) -static void register_types (void ) -{ -type_register_static (&char_win_type_info); -} -type_init (register_types);
chardev/char.c +1 -5
@@ -304,6 +304,7 @@ static const TypeInfo char_type_info = { .class_size = sizeof(ChardevClass), .class_init = char_class_init, }; +TYPE_INFO (char_type_info) static bool qemu_chr_is_busy(Chardev *s) {
@@ -1168,9 +1169,4 @@ void qemu_chr_cleanup(void)object_unparent (get_chardevs_root ()); } -static void register_types (void ) -{ -type_register_static (&char_type_info); -} -type_init (register_types);
chardev/msmouse.c +1 -5
@@ -182,10 +182,6 @@ static const TypeInfo char_msmouse_type_info = { .instance_finalize = char_msmouse_finalize, .class_init = char_msmouse_class_init, }; +TYPE_INFO (char_msmouse_type_info) -static void register_types (void ) -{ -type_register_static (&char_msmouse_type_info); -} -type_init (register_types);
chardev/spice.c +3 -7
@@ -383,6 +383,7 @@ static const TypeInfo char_spice_type_info = { .class_init = char_spice_class_init, .abstract = true, }; +TYPE_INFO (char_spice_type_info) static void char_spicevmc_class_init(ObjectClass *oc, void *data) {
@@ -398,6 +399,7 @@ static const TypeInfo char_spicevmc_type_info = { .parent = TYPE_CHARDEV_SPICE, .class_init = char_spicevmc_class_init, }; +TYPE_INFO (char_spicevmc_type_info) static void char_spiceport_class_init(ObjectClass *oc, void *data) {
@@ -413,12 +415,6 @@ static const TypeInfo char_spiceport_type_info = { .parent = TYPE_CHARDEV_SPICE, .class_init = char_spiceport_class_init, }; +TYPE_INFO (char_spiceport_type_info) -static void register_types (void ) -{ -type_register_static (&char_spice_type_info); -type_register_static (&char_spicevmc_type_info); -type_register_static (&char_spiceport_type_info); -} -type_init (register_types);
chardev/testdev.c +1 -5
@@ -121,10 +121,6 @@ static const TypeInfo char_testdev_type_info = { .instance_size = sizeof(TestdevChardev), .class_init = char_testdev_class_init, }; +TYPE_INFO (char_testdev_type_info) -static void register_types (void ) -{ -type_register_static (&char_testdev_type_info); -} -type_init (register_types);
chardev/wctablet.c +1 -5
@@ -356,10 +356,6 @@ static const TypeInfo wctablet_type_info = { .instance_finalize = wctablet_chr_finalize, .class_init = wctablet_chr_class_init, }; +TYPE_INFO (wctablet_type_info) -static void register_types (void ) -{ -type_register_static (&wctablet_type_info); -} -type_init (register_types);
crypto/secret.c +1 -6
@@ -153,13 +153,8 @@ static const TypeInfo qcrypto_secret_info = { { } } }; +TYPE_INFO (qcrypto_secret_info) -static void -qcrypto_secret_register_types (void ) -{ -type_register_static (&qcrypto_secret_info); -} -type_init (qcrypto_secret_register_types);
crypto/secret_common.c +1 -6
@@ -391,13 +391,8 @@ static const TypeInfo qcrypto_secret_info = { .class_init = qcrypto_secret_class_init, .abstract = true, }; +TYPE_INFO (qcrypto_secret_info) -static void -qcrypto_secret_register_types (void ) -{ -type_register_static (&qcrypto_secret_info); -} -type_init (qcrypto_secret_register_types);
crypto/secret_keyring.c +1 -6
@@ -136,13 +136,8 @@ static const TypeInfo qcrypto_secret_info = { { } } }; +TYPE_INFO (qcrypto_secret_info) -static void -qcrypto_secret_register_types (void ) -{ -type_register_static (&qcrypto_secret_info); -} -type_init (qcrypto_secret_register_types);
crypto/tls-cipher-suites.c +1 -5
@@ -117,10 +117,6 @@ static const TypeInfo qcrypto_tls_cipher_suites_info = { { } } }; +TYPE_INFO (qcrypto_tls_cipher_suites_info) -static void qcrypto_tls_cipher_suites_register_types (void ) -{ -type_register_static (&qcrypto_tls_cipher_suites_info); -} -type_init (qcrypto_tls_cipher_suites_register_types);
crypto/tlscreds.c +1 -6
@@ -270,13 +270,8 @@ static const TypeInfo qcrypto_tls_creds_info = { .class_size = sizeof(QCryptoTLSCredsClass), .abstract = true, }; +TYPE_INFO (qcrypto_tls_creds_info) -static void -qcrypto_tls_creds_register_types (void ) -{ -type_register_static (&qcrypto_tls_creds_info); -} -type_init (qcrypto_tls_creds_register_types);
crypto/tlscredsanon.c +1 -6
@@ -203,13 +203,8 @@ static const TypeInfo qcrypto_tls_creds_anon_info = { { } } }; +TYPE_INFO (qcrypto_tls_creds_anon_info) -static void -qcrypto_tls_creds_anon_register_types (void ) -{ -type_register_static (&qcrypto_tls_creds_anon_info); -} -type_init (qcrypto_tls_creds_anon_register_types);
crypto/tlscredspsk.c +1 -6
@@ -294,13 +294,8 @@ static const TypeInfo qcrypto_tls_creds_psk_info = { { } } }; +TYPE_INFO (qcrypto_tls_creds_psk_info) -static void -qcrypto_tls_creds_psk_register_types (void ) -{ -type_register_static (&qcrypto_tls_creds_psk_info); -} -type_init (qcrypto_tls_creds_psk_register_types);
crypto/tlscredsx509.c +1 -6
@@ -829,13 +829,8 @@ static const TypeInfo qcrypto_tls_creds_x509_info = { { } } }; +TYPE_INFO (qcrypto_tls_creds_x509_info) -static void -qcrypto_tls_creds_x509_register_types (void ) -{ -type_register_static (&qcrypto_tls_creds_x509_info); -} -type_init (qcrypto_tls_creds_x509_register_types);
gdbstub.c +1 -5
@@ -3308,6 +3308,7 @@ static const TypeInfo char_gdb_type_info = { .parent = TYPE_CHARDEV, .class_init = char_gdb_class_init, }; +TYPE_INFO (char_gdb_type_info) static int find_cpu_clusters(Object *child, void *opaque) {
@@ -3440,10 +3441,5 @@ void gdbserver_cleanup(void) } } -static void register_types (void ) -{ -type_register_static (&char_gdb_type_info); -} -type_init (register_types);#endif
hw/9pfs/virtio-9p-device.c +1 -5
@@ -259,10 +259,6 @@ static const TypeInfo virtio_device_info = { .instance_size = sizeof(V9fsVirtioState), .class_init = virtio_9p_class_init, }; +TYPE_INFO (virtio_device_info) -static void virtio_9p_register_types (void ) -{ -type_register_static (&virtio_device_info); -} -type_init (virtio_9p_register_types)
hw/acpi/generic_event_device.c +1 -5
@@ -363,10 +363,6 @@ static const TypeInfo acpi_ged_info = { { } } }; +TYPE_INFO (acpi_ged_info) -static void acpi_ged_register_types (void ) -{ -type_register_static (&acpi_ged_info); -} -type_init (acpi_ged_register_types)
hw/acpi/piix4.c +1 -5
@@ -684,10 +684,6 @@ static const TypeInfo piix4_pm_info = { { } } }; +TYPE_INFO (piix4_pm_info) -static void piix4_pm_register_types (void ) -{ -type_register_static (&piix4_pm_info); -} -type_init (piix4_pm_register_types)
hw/acpi/vmgenid.c +1 -5
@@ -237,13 +237,9 @@ static const TypeInfo vmgenid_device_info = { .instance_size = sizeof(VmGenIdState), .class_init = vmgenid_device_class_init, }; +TYPE_INFO (vmgenid_device_info) -static void vmgenid_register_types (void ) -{ -type_register_static (&vmgenid_device_info); -} -type_init (vmgenid_register_types) GuidInfo *qmp_query_vm_generation_id(Error **errp) {
hw/adc/stm32f2xx_adc.c +1 -5
@@ -299,10 +299,6 @@ static const TypeInfo stm32f2xx_adc_info = { .instance_init = stm32f2xx_adc_init, .class_init = stm32f2xx_adc_class_init, }; +TYPE_INFO (stm32f2xx_adc_info) -static void stm32f2xx_adc_register_types (void ) -{ -type_register_static (&stm32f2xx_adc_info); -} -type_init (stm32f2xx_adc_register_types)
hw/alpha/typhoon.c +2 -6
@@ -940,6 +940,7 @@ static const TypeInfo typhoon_pcihost_info = { .parent = TYPE_PCI_HOST_BRIDGE, .instance_size = sizeof(TyphoonState), }; +TYPE_INFO (typhoon_pcihost_info) static void typhoon_iommu_memory_region_class_init(ObjectClass *klass,void *data)
@@ -954,11 +955,6 @@ static const TypeInfo typhoon_iommu_memory_region_info = { .name = TYPE_TYPHOON_IOMMU_MEMORY_REGION, .class_init = typhoon_iommu_memory_region_class_init, }; +TYPE_INFO (typhoon_iommu_memory_region_info) -static void typhoon_register_types (void ) -{ -type_register_static (&typhoon_pcihost_info); -type_register_static (&typhoon_iommu_memory_region_info); -} -type_init (typhoon_register_types)
hw/arm/allwinner-a10.c +1 -5
@@ -182,10 +182,6 @@ static const TypeInfo aw_a10_type_info = { .instance_init = aw_a10_init, .class_init = aw_a10_class_init, }; +TYPE_INFO (aw_a10_type_info) -static void aw_a10_register_types (void ) -{ -type_register_static (&aw_a10_type_info); -} -type_init (aw_a10_register_types)
hw/arm/allwinner-h3.c +1 -5
@@ -446,10 +446,6 @@ static const TypeInfo allwinner_h3_type_info = { .instance_init = allwinner_h3_init, .class_init = allwinner_h3_class_init, }; +TYPE_INFO (allwinner_h3_type_info) -static void allwinner_h3_register_types (void ) -{ -type_register_static (&allwinner_h3_type_info); -} -type_init (allwinner_h3_register_types)
hw/arm/armsse.c +1 -1
@@ -1167,12 +1167,12 @@ static const TypeInfo armsse_info = { { } } }; +TYPE_INFO (armsse_info) static void armsse_register_types(void) {int i; -type_register_static (&armsse_info);for (i =0 ; i <ARRAY_SIZE (armsse_variants); i++) { TypeInfo ti = {
hw/arm/armv7m.c +2 -6
@@ -280,6 +280,7 @@ static const TypeInfo armv7m_info = { .instance_init = armv7m_instance_init, .class_init = armv7m_class_init, }; +TYPE_INFO (armv7m_info) static void armv7m_reset(void *opaque) {
@@ -359,11 +360,6 @@ static const TypeInfo bitband_info = { .instance_init = bitband_init, .class_init = bitband_class_init, }; +TYPE_INFO (bitband_info) -static void armv7m_register_types (void ) -{ -type_register_static (&bitband_info); -type_register_static (&armv7m_info); -} -type_init (armv7m_register_types)
hw/arm/bcm2835_peripherals.c +1 -5
@@ -373,10 +373,6 @@ static const TypeInfo bcm2835_peripherals_type_info = { .instance_init = bcm2835_peripherals_init, .class_init = bcm2835_peripherals_class_init, }; +TYPE_INFO (bcm2835_peripherals_type_info) -static void bcm2835_peripherals_register_types (void ) -{ -type_register_static (&bcm2835_peripherals_type_info); -} -type_init (bcm2835_peripherals_register_types)
hw/arm/bcm2836.c +1 -1
@@ -168,12 +168,12 @@ static const TypeInfo bcm283x_type_info = { .class_size = sizeof(BCM283XClass), .abstract = true, }; +TYPE_INFO (bcm283x_type_info) static void bcm2836_register_types(void) {int i; -type_register_static (&bcm283x_type_info);for (i =0 ; i <ARRAY_SIZE (bcm283x_socs); i++) {TypeInfo ti = { .name = bcm283x_socs[i].name,
hw/arm/boot.c +1 -5
@@ -1317,10 +1317,6 @@ static const TypeInfo arm_linux_boot_if_info = { .parent = TYPE_INTERFACE, .class_size = sizeof(ARMLinuxBootIfClass), }; +TYPE_INFO (arm_linux_boot_if_info) -static void arm_linux_boot_register_types (void ) -{ -type_register_static (&arm_linux_boot_if_info); -} -type_init (arm_linux_boot_register_types)
hw/arm/collie.c +1 -5
@@ -85,9 +85,5 @@ static const TypeInfo collie_machine_typeinfo = { .class_init = collie_machine_class_init, .instance_size = sizeof(CollieMachineState), }; +TYPE_INFO (collie_machine_typeinfo) -static void collie_machine_register_types (void ) -{ -type_register_static (&collie_machine_typeinfo); -} -type_init (collie_machine_register_types);
hw/arm/digic.c +1 -5
@@ -98,10 +98,6 @@ static const TypeInfo digic_type_info = { .instance_init = digic_init, .class_init = digic_class_init, }; +TYPE_INFO (digic_type_info) -static void digic_register_types (void ) -{ -type_register_static (&digic_type_info); -} -type_init (digic_register_types)
hw/arm/exynos4210.c +1 -5
@@ -502,10 +502,6 @@ static const TypeInfo exynos4210_info = { .instance_init = exynos4210_init, .class_init = exynos4210_class_init, }; +TYPE_INFO (exynos4210_info) -static void exynos4210_register_types (void ) -{ -type_register_static (&exynos4210_info); -} -type_init (exynos4210_register_types)
hw/arm/exynos4_boards.c +2 -6
@@ -169,6 +169,7 @@ static const TypeInfo nuri_type = { .parent = TYPE_MACHINE, .class_init = nuri_class_init, }; +TYPE_INFO (nuri_type) static void smdkc210_class_init(ObjectClass *oc, void *data) {
@@ -187,11 +188,6 @@ static const TypeInfo smdkc210_type = { .parent = TYPE_MACHINE, .class_init = smdkc210_class_init, }; +TYPE_INFO (smdkc210_type) -static void exynos4_machines_init (void ) -{ -type_register_static (&nuri_type); -type_register_static (&smdkc210_type); -} -type_init (exynos4_machines_init)
hw/arm/fsl-imx25.c +1 -5
@@ -342,10 +342,6 @@ static const TypeInfo fsl_imx25_type_info = { .instance_init = fsl_imx25_init, .class_init = fsl_imx25_class_init, }; +TYPE_INFO (fsl_imx25_type_info) -static void fsl_imx25_register_types (void ) -{ -type_register_static (&fsl_imx25_type_info); -} -type_init (fsl_imx25_register_types)
hw/arm/fsl-imx31.c +1 -5
@@ -245,10 +245,6 @@ static const TypeInfo fsl_imx31_type_info = { .instance_init = fsl_imx31_init, .class_init = fsl_imx31_class_init, }; +TYPE_INFO (fsl_imx31_type_info) -static void fsl_imx31_register_types (void ) -{ -type_register_static (&fsl_imx31_type_info); -} -type_init (fsl_imx31_register_types)
hw/arm/fsl-imx6.c +1 -5
@@ -473,10 +473,6 @@ static const TypeInfo fsl_imx6_type_info = { .instance_init = fsl_imx6_init, .class_init = fsl_imx6_class_init, }; +TYPE_INFO (fsl_imx6_type_info) -static void fsl_imx6_register_types (void ) -{ -type_register_static (&fsl_imx6_type_info); -} -type_init (fsl_imx6_register_types)
hw/arm/fsl-imx6ul.c +1 -5
@@ -631,9 +631,5 @@ static const TypeInfo fsl_imx6ul_type_info = { .instance_init = fsl_imx6ul_init, .class_init = fsl_imx6ul_class_init, }; +TYPE_INFO (fsl_imx6ul_type_info) -static void fsl_imx6ul_register_types (void ) -{ -type_register_static (&fsl_imx6ul_type_info); -} -type_init (fsl_imx6ul_register_types)
hw/arm/fsl-imx7.c +1 -5
@@ -577,9 +577,5 @@ static const TypeInfo fsl_imx7_type_info = { .instance_init = fsl_imx7_init, .class_init = fsl_imx7_class_init, }; +TYPE_INFO (fsl_imx7_type_info) -static void fsl_imx7_register_types (void ) -{ -type_register_static (&fsl_imx7_type_info); -} -type_init (fsl_imx7_register_types)
hw/arm/gumstix.c +2 -6
@@ -121,6 +121,7 @@ static const TypeInfo connex_type = { .parent = TYPE_MACHINE, .class_init = connex_class_init, }; +TYPE_INFO (connex_type) static void verdex_class_init(ObjectClass *oc, void *data) {
@@ -137,11 +138,6 @@ static const TypeInfo verdex_type = { .parent = TYPE_MACHINE, .class_init = verdex_class_init, }; +TYPE_INFO (verdex_type) -static void gumstix_machine_init (void ) -{ -type_register_static (&connex_type); -type_register_static (&verdex_type); -} -type_init (gumstix_machine_init)
hw/arm/highbank.c +3 -11
@@ -213,13 +213,9 @@ static const TypeInfo highbank_regs_info = { .instance_init = highbank_regs_init, .class_init = highbank_regs_class_init, }; +TYPE_INFO (highbank_regs_info) -static void highbank_regs_register_types (void ) -{ -type_register_static (&highbank_regs_info); -} -type_init (highbank_regs_register_types) static struct arm_boot_info highbank_binfo;
@@ -434,6 +430,7 @@ static const TypeInfo highbank_type = { .parent = TYPE_MACHINE, .class_init = highbank_class_init, }; +TYPE_INFO (highbank_type) static void midway_class_init(ObjectClass *oc, void *data) {
@@ -453,11 +450,6 @@ static const TypeInfo midway_type = { .parent = TYPE_MACHINE, .class_init = midway_class_init, }; +TYPE_INFO (midway_type) -static void calxeda_machines_init (void ) -{ -type_register_static (&highbank_type); -type_register_static (&midway_type); -} -type_init (calxeda_machines_init)
hw/arm/integratorcp.c +3 -7
@@ -719,6 +719,7 @@ static const TypeInfo core_info = { .instance_init = integratorcm_init, .class_init = core_class_init, }; +TYPE_INFO (core_info) static const TypeInfo icp_pic_info = { .name =TYPE_INTEGRATOR_PIC ,
@@ -727,6 +728,7 @@ static const TypeInfo icp_pic_info = { .instance_init = icp_pic_init, .class_init = icp_pic_class_init, }; +TYPE_INFO (icp_pic_info) static const TypeInfo icp_ctrl_regs_info = { .name =TYPE_ICP_CONTROL_REGS ,
@@ -735,12 +737,6 @@ static const TypeInfo icp_ctrl_regs_info = { .instance_init = icp_control_init, .class_init = icp_control_class_init, }; +TYPE_INFO (icp_ctrl_regs_info) -static void integratorcp_register_types (void ) -{ -type_register_static (&icp_pic_info); -type_register_static (&core_info); -type_register_static (&icp_ctrl_regs_info); -} -type_init (integratorcp_register_types)
hw/arm/microbit.c +1 -5
@@ -75,10 +75,6 @@ static const TypeInfo microbit_info = { .instance_size = sizeof(MicrobitMachineState), .class_init = microbit_machine_class_init, }; +TYPE_INFO (microbit_info) -static void microbit_machine_init (void ) -{ -type_register_static (µbit_info); -} -type_init (microbit_machine_init);
hw/arm/mps2-tz.c +3 -7
@@ -692,24 +692,20 @@ static const TypeInfo mps2tz_info = { { } }, }; +TYPE_INFO (mps2tz_info) static const TypeInfo mps2tz_an505_info = { .name =TYPE_MPS2TZ_AN505_MACHINE , .parent =TYPE_MPS2TZ_MACHINE , .class_init = mps2tz_an505_class_init, }; +TYPE_INFO (mps2tz_an505_info) static const TypeInfo mps2tz_an521_info = { .name =TYPE_MPS2TZ_AN521_MACHINE , .parent =TYPE_MPS2TZ_MACHINE , .class_init = mps2tz_an521_class_init, }; +TYPE_INFO (mps2tz_an521_info) -static void mps2tz_machine_init (void ) -{ -type_register_static (&mps2tz_info); -type_register_static (&mps2tz_an505_info); -type_register_static (&mps2tz_an521_info); -} -type_init (mps2tz_machine_init);
hw/arm/mps2.c +3 -7
@@ -428,24 +428,20 @@ static const TypeInfo mps2_info = { .class_size = sizeof(MPS2MachineClass), .class_init = mps2_class_init, }; +TYPE_INFO (mps2_info) static const TypeInfo mps2_an385_info = { .name =TYPE_MPS2_AN385_MACHINE , .parent =TYPE_MPS2_MACHINE , .class_init = mps2_an385_class_init, }; +TYPE_INFO (mps2_an385_info) static const TypeInfo mps2_an511_info = { .name =TYPE_MPS2_AN511_MACHINE , .parent =TYPE_MPS2_MACHINE , .class_init = mps2_an511_class_init, }; +TYPE_INFO (mps2_an511_info) -static void mps2_machine_init (void ) -{ -type_register_static (&mps2_info); -type_register_static (&mps2_an385_info); -type_register_static (&mps2_an511_info); -} -type_init (mps2_machine_init);
hw/arm/msf2-soc.c +1 -5
@@ -234,10 +234,6 @@ static const TypeInfo m2sxxx_soc_info = { .instance_init = m2sxxx_soc_initfn, .class_init = m2sxxx_soc_class_init, }; +TYPE_INFO (m2sxxx_soc_info) -static void m2sxxx_soc_types (void ) -{ -type_register_static (&m2sxxx_soc_info); -} -type_init (m2sxxx_soc_types)
hw/arm/musca.c +3 -7
@@ -647,24 +647,20 @@ static const TypeInfo musca_info = { .class_size = sizeof(MuscaMachineClass), .class_init = musca_class_init, }; +TYPE_INFO (musca_info) static const TypeInfo musca_a_info = { .name =TYPE_MUSCA_A_MACHINE , .parent =TYPE_MUSCA_MACHINE , .class_init = musca_a_class_init, }; +TYPE_INFO (musca_a_info) static const TypeInfo musca_b1_info = { .name =TYPE_MUSCA_B1_MACHINE , .parent =TYPE_MUSCA_MACHINE , .class_init = musca_b1_class_init, }; +TYPE_INFO (musca_b1_info) -static void musca_machine_init (void ) -{ -type_register_static (&musca_info); -type_register_static (&musca_a_info); -type_register_static (&musca_b1_info); -} -type_init (musca_machine_init);
hw/arm/musicpal.c +9 -13
@@ -447,6 +447,7 @@ static const TypeInfo mv88w8618_eth_info = { .instance_init = mv88w8618_eth_init, .class_init = mv88w8618_eth_class_init, }; +TYPE_INFO (mv88w8618_eth_info) /* LCD register offsets */#define MP_LCD_IRQCTRL 0x180
@@ -678,6 +679,7 @@ static const TypeInfo musicpal_lcd_info = { .instance_init = musicpal_lcd_init, .class_init = musicpal_lcd_class_init, }; +TYPE_INFO (musicpal_lcd_info) /* PIC register offsets */#define MP_PIC_STATUS 0x00
@@ -800,6 +802,7 @@ static const TypeInfo mv88w8618_pic_info = { .instance_init = mv88w8618_pic_init, .class_init = mv88w8618_pic_class_init, }; +TYPE_INFO (mv88w8618_pic_info) /* PIT register offsets */#define MP_PIT_TIMER1_LENGTH 0x00
@@ -984,6 +987,7 @@ static const TypeInfo mv88w8618_pit_info = { .instance_init = mv88w8618_pit_init, .class_init = mv88w8618_pit_class_init, }; +TYPE_INFO (mv88w8618_pit_info) /* Flash config register offsets */#define MP_FLASHCFG_CFGR0 0x04
@@ -1069,6 +1073,7 @@ static const TypeInfo mv88w8618_flashcfg_info = { .instance_init = mv88w8618_flashcfg_init, .class_init = mv88w8618_flashcfg_class_init, }; +TYPE_INFO (mv88w8618_flashcfg_info) /* Misc register offsets */#define MP_MISC_BOARD_REVISION 0x18
@@ -1123,6 +1128,7 @@ static const TypeInfo musicpal_misc_info = { .instance_init = musicpal_misc_init, .instance_size = sizeof(MusicPalMiscState), }; +TYPE_INFO (musicpal_misc_info) /* WLAN register offsets */#define MP_WLAN_MAGIC1 0x11c
@@ -1411,6 +1417,7 @@ static const TypeInfo musicpal_gpio_info = { .instance_init = musicpal_gpio_init, .class_init = musicpal_gpio_class_init, }; +TYPE_INFO (musicpal_gpio_info) /* Keyboard codes & masks */#define KEY_RELEASED 0x80
@@ -1570,6 +1577,7 @@ static const TypeInfo musicpal_key_info = { .instance_init = musicpal_key_init, .class_init = musicpal_key_class_init, }; +TYPE_INFO (musicpal_key_info) static struct arm_boot_info musicpal_binfo = { .loader_start =0x0 ,
@@ -1725,18 +1733,6 @@ static const TypeInfo mv88w8618_wlan_info = { .instance_size = sizeof(SysBusDevice), .class_init = mv88w8618_wlan_class_init, }; +TYPE_INFO (mv88w8618_wlan_info) -static void musicpal_register_types (void ) -{ -type_register_static (&mv88w8618_pic_info); -type_register_static (&mv88w8618_pit_info); -type_register_static (&mv88w8618_flashcfg_info); -type_register_static (&mv88w8618_eth_info); -type_register_static (&mv88w8618_wlan_info); -type_register_static (&musicpal_lcd_info); -type_register_static (&musicpal_gpio_info); -type_register_static (&musicpal_key_info); -type_register_static (&musicpal_misc_info); -} -type_init (musicpal_register_types)
hw/arm/nrf51_soc.c +1 -5
@@ -219,9 +219,5 @@ static const TypeInfo nrf51_soc_info = { .instance_init = nrf51_soc_init, .class_init = nrf51_soc_class_init, }; +TYPE_INFO (nrf51_soc_info) -static void nrf51_soc_types (void ) -{ -type_register_static (&nrf51_soc_info); -} -type_init (nrf51_soc_types)
hw/arm/nseries.c +2 -6
@@ -1441,6 +1441,7 @@ static const TypeInfo n800_type = { .parent = TYPE_MACHINE, .class_init = n800_class_init, }; +TYPE_INFO (n800_type) static void n810_class_init(ObjectClass *oc, void *data) {
@@ -1461,11 +1462,6 @@ static const TypeInfo n810_type = { .parent = TYPE_MACHINE, .class_init = n810_class_init, }; +TYPE_INFO (n810_type) -static void nseries_machine_init (void ) -{ -type_register_static (&n800_type); -type_register_static (&n810_type); -} -type_init (nseries_machine_init)
hw/arm/omap_sx1.c +2 -6
@@ -229,6 +229,7 @@ static const TypeInfo sx1_machine_v2_type = { .parent = TYPE_MACHINE, .class_init = sx1_machine_v2_class_init, }; +TYPE_INFO (sx1_machine_v2_type) static void sx1_machine_v1_class_init(ObjectClass *oc, void *data) {
@@ -247,11 +248,6 @@ static const TypeInfo sx1_machine_v1_type = { .parent = TYPE_MACHINE, .class_init = sx1_machine_v1_class_init, }; +TYPE_INFO (sx1_machine_v1_type) -static void sx1_machine_init (void ) -{ -type_register_static (&sx1_machine_v1_type); -type_register_static (&sx1_machine_v2_type); -} -type_init (sx1_machine_init)
hw/arm/palm.c +1 -5
@@ -183,6 +183,7 @@ static const TypeInfo palm_misc_gpio_info = {* need to set up reset or vmstate, and has no realize method. */ }; +TYPE_INFO (palm_misc_gpio_info) static void palmte_gpio_setup(struct omap_mpu_state_s *cpu) {
@@ -313,9 +314,4 @@ static void palmte_machine_init(MachineClass *mc)DEFINE_MACHINE ("cheetah" , palmte_machine_init) -static void palm_register_types (void ) -{ -type_register_static (&palm_misc_gpio_info); -} -type_init (palm_register_types)
hw/arm/pxa2xx.c +5 -9
@@ -1238,6 +1238,7 @@ static const TypeInfo pxa2xx_rtc_sysbus_info = { .instance_init = pxa2xx_rtc_init, .class_init = pxa2xx_rtc_sysbus_class_init, }; +TYPE_INFO (pxa2xx_rtc_sysbus_info)/* I2C Interface */
@@ -1498,6 +1499,7 @@ static const TypeInfo pxa2xx_i2c_slave_info = { .instance_size = sizeof(PXA2xxI2CSlaveState), .class_init = pxa2xx_i2c_slave_class_init, }; +TYPE_INFO (pxa2xx_i2c_slave_info) PXA2xxI2CState *pxa2xx_i2c_init(hwaddr base,qemu_irq irq,uint32_t region_size)
@@ -1568,6 +1570,7 @@ static const TypeInfo pxa2xx_i2c_info = { .instance_init = pxa2xx_i2c_initfn, .class_init = pxa2xx_i2c_class_init, }; +TYPE_INFO (pxa2xx_i2c_info)/* PXA Inter-IC Sound Controller */ static void pxa2xx_i2s_reset(PXA2xxI2SState *i2s)
@@ -2058,6 +2061,7 @@ static const TypeInfo pxa2xx_fir_info = { .class_init = pxa2xx_fir_class_init, .instance_init = pxa2xx_fir_instance_init, }; +TYPE_INFO (pxa2xx_fir_info) static PXA2xxFIrState *pxa2xx_fir_init(MemoryRegion *sysmem, hwaddr base,
@@ -2372,14 +2376,6 @@ static const TypeInfo pxa2xx_ssp_info = { .instance_init = pxa2xx_ssp_init, .class_init = pxa2xx_ssp_class_init, }; +TYPE_INFO (pxa2xx_ssp_info) -static void pxa2xx_register_types (void ) -{ -type_register_static (&pxa2xx_i2c_slave_info); -type_register_static (&pxa2xx_ssp_info); -type_register_static (&pxa2xx_i2c_info); -type_register_static (&pxa2xx_rtc_sysbus_info); -type_register_static (&pxa2xx_fir_info); -} -type_init (pxa2xx_register_types)
hw/arm/pxa2xx_gpio.c +1 -5
@@ -361,10 +361,6 @@ static const TypeInfo pxa2xx_gpio_info = { .instance_init = pxa2xx_gpio_initfn, .class_init = pxa2xx_gpio_class_init, }; +TYPE_INFO (pxa2xx_gpio_info) -static void pxa2xx_gpio_register_types (void ) -{ -type_register_static (&pxa2xx_gpio_info); -} -type_init (pxa2xx_gpio_register_types)
hw/arm/pxa2xx_pic.c +1 -5
@@ -330,10 +330,6 @@ static const TypeInfo pxa2xx_pic_info = { .instance_size = sizeof(PXA2xxPICState), .class_init = pxa2xx_pic_class_init, }; +TYPE_INFO (pxa2xx_pic_info) -static void pxa2xx_pic_register_types (void ) -{ -type_register_static (&pxa2xx_pic_info); -} -type_init (pxa2xx_pic_register_types)
hw/arm/realview.c +4 -8
@@ -406,6 +406,7 @@ static const TypeInfo realview_eb_type = { .parent = TYPE_MACHINE, .class_init = realview_eb_class_init, }; +TYPE_INFO (realview_eb_type) static void realview_eb_mpcore_class_init(ObjectClass *oc, void *data) {
@@ -424,6 +425,7 @@ static const TypeInfo realview_eb_mpcore_type = { .parent = TYPE_MACHINE, .class_init = realview_eb_mpcore_class_init, }; +TYPE_INFO (realview_eb_mpcore_type) static void realview_pb_a8_class_init(ObjectClass *oc, void *data) {
@@ -440,6 +442,7 @@ static const TypeInfo realview_pb_a8_type = { .parent = TYPE_MACHINE, .class_init = realview_pb_a8_class_init, }; +TYPE_INFO (realview_pb_a8_type) static void realview_pbx_a9_class_init(ObjectClass *oc, void *data) {
@@ -457,13 +460,6 @@ static const TypeInfo realview_pbx_a9_type = { .parent = TYPE_MACHINE, .class_init = realview_pbx_a9_class_init, }; +TYPE_INFO (realview_pbx_a9_type) -static void realview_machine_init (void ) -{ -type_register_static (&realview_eb_type); -type_register_static (&realview_eb_mpcore_type); -type_register_static (&realview_pb_a8_type); -type_register_static (&realview_pbx_a9_type); -} -type_init (realview_machine_init)
hw/arm/sbsa-ref.c +1 -5
@@ -797,10 +797,6 @@ static const TypeInfo sbsa_ref_info = { .class_init = sbsa_ref_class_init, .instance_size = sizeof(SBSAMachineState), }; +TYPE_INFO (sbsa_ref_info) -static void sbsa_ref_machine_init (void ) -{ -type_register_static (&sbsa_ref_info); -} -type_init (sbsa_ref_machine_init);
hw/arm/smmu-common.c +1 -5
@@ -553,11 +553,7 @@ static const TypeInfo smmu_base_info = { .class_init = smmu_base_class_init, .abstract = true, }; +TYPE_INFO (smmu_base_info) -static void smmu_base_register_types (void ) -{ -type_register_static (&smmu_base_info); -} -type_init (smmu_base_register_types)
hw/arm/spitz.c +10 -18
@@ -1055,6 +1055,7 @@ static const TypeInfo spitz_common_info = { .class_size = sizeof(SpitzMachineClass), .class_init = spitz_common_class_init, }; +TYPE_INFO (spitz_common_info) static void akitapda_class_init(ObjectClass *oc, void *data) {
@@ -1072,6 +1073,7 @@ static const TypeInfo akitapda_type = { .parent = TYPE_SPITZ_MACHINE, .class_init = akitapda_class_init, }; +TYPE_INFO (akitapda_type) static void spitzpda_class_init(ObjectClass *oc, void *data) {
@@ -1089,6 +1091,7 @@ static const TypeInfo spitzpda_type = { .parent = TYPE_SPITZ_MACHINE, .class_init = spitzpda_class_init, }; +TYPE_INFO (spitzpda_type) static void borzoipda_class_init(ObjectClass *oc, void *data) {
@@ -1106,6 +1109,7 @@ static const TypeInfo borzoipda_type = { .parent = TYPE_SPITZ_MACHINE, .class_init = borzoipda_class_init, }; +TYPE_INFO (borzoipda_type) static void terrierpda_class_init(ObjectClass *oc, void *data) {
@@ -1123,17 +1127,9 @@ static const TypeInfo terrierpda_type = { .parent = TYPE_SPITZ_MACHINE, .class_init = terrierpda_class_init, }; +TYPE_INFO (terrierpda_type) -static void spitz_machine_init (void ) -{ -type_register_static (&spitz_common_info); -type_register_static (&akitapda_type); -type_register_static (&spitzpda_type); -type_register_static (&borzoipda_type); -type_register_static (&terrierpda_type); -} -type_init (spitz_machine_init) static bool is_version_0(void *opaque, int version_id) {
@@ -1175,6 +1171,7 @@ static const TypeInfo sl_nand_info = { .instance_init = sl_nand_init, .class_init = sl_nand_class_init, }; +TYPE_INFO (sl_nand_info) static VMStateDescription vmstate_spitz_kbd = { .name ="spitz-keyboard" ,
@@ -1204,6 +1201,7 @@ static const TypeInfo spitz_keyboard_info = { .instance_init = spitz_keyboard_init, .class_init = spitz_keyboard_class_init, }; +TYPE_INFO (spitz_keyboard_info) static const VMStateDescription vmstate_corgi_ssp_regs = { .name ="corgi-ssp" ,
@@ -1232,6 +1230,7 @@ static const TypeInfo corgi_ssp_info = { .instance_size = sizeof(CorgiSSPState), .class_init = corgi_ssp_class_init, }; +TYPE_INFO (corgi_ssp_info) static const VMStateDescription vmstate_spitz_lcdtg_regs = { .name ="spitz-lcdtg" ,
@@ -1261,6 +1260,7 @@ static const TypeInfo spitz_lcdtg_info = { .instance_size = sizeof(SpitzLCDTG), .class_init = spitz_lcdtg_class_init, }; +TYPE_INFO (spitz_lcdtg_info) static const TypeInfo spitz_misc_gpio_info = { .name =TYPE_SPITZ_MISC_GPIO ,
@@ -1272,14 +1272,6 @@ static const TypeInfo spitz_misc_gpio_info = {* need to set up reset or vmstate, and does not have a realize method. */ }; +TYPE_INFO (spitz_misc_gpio_info) -static void spitz_register_types (void ) -{ -type_register_static (&corgi_ssp_info); -type_register_static (&spitz_lcdtg_info); -type_register_static (&spitz_keyboard_info); -type_register_static (&sl_nand_info); -type_register_static (&spitz_misc_gpio_info); -} -type_init (spitz_register_types)
hw/arm/stellaris.c +5 -13
@@ -1482,6 +1482,7 @@ static const TypeInfo lm3s811evb_type = { .parent = TYPE_MACHINE, .class_init = lm3s811evb_class_init, }; +TYPE_INFO (lm3s811evb_type) static void lm3s6965evb_class_init(ObjectClass *oc, void *data) {
@@ -1498,14 +1499,9 @@ static const TypeInfo lm3s6965evb_type = { .parent = TYPE_MACHINE, .class_init = lm3s6965evb_class_init, }; +TYPE_INFO (lm3s6965evb_type) -static void stellaris_machine_init (void ) -{ -type_register_static (&lm3s811evb_type); -type_register_static (&lm3s6965evb_type); -} -type_init (stellaris_machine_init) static void stellaris_i2c_class_init(ObjectClass *klass, void *data) {
@@ -1521,6 +1517,7 @@ static const TypeInfo stellaris_i2c_info = { .instance_init = stellaris_i2c_init, .class_init = stellaris_i2c_class_init, }; +TYPE_INFO (stellaris_i2c_info) static void stellaris_gptm_class_init(ObjectClass *klass, void *data) {
@@ -1537,6 +1534,7 @@ static const TypeInfo stellaris_gptm_info = { .instance_init = stellaris_gptm_init, .class_init = stellaris_gptm_class_init, }; +TYPE_INFO (stellaris_gptm_info) static void stellaris_adc_class_init(ObjectClass *klass, void *data) {
@@ -1552,12 +1550,6 @@ static const TypeInfo stellaris_adc_info = { .instance_init = stellaris_adc_init, .class_init = stellaris_adc_class_init, }; +TYPE_INFO (stellaris_adc_info) -static void stellaris_register_types (void ) -{ -type_register_static (&stellaris_i2c_info); -type_register_static (&stellaris_gptm_info); -type_register_static (&stellaris_adc_info); -} -type_init (stellaris_register_types)
hw/arm/stm32f205_soc.c +1 -5
@@ -195,10 +195,6 @@ static const TypeInfo stm32f205_soc_info = { .instance_init = stm32f205_soc_initfn, .class_init = stm32f205_soc_class_init, }; +TYPE_INFO (stm32f205_soc_info) -static void stm32f205_soc_types (void ) -{ -type_register_static (&stm32f205_soc_info); -} -type_init (stm32f205_soc_types)
hw/arm/stm32f405_soc.c +1 -5
@@ -271,10 +271,6 @@ static const TypeInfo stm32f405_soc_info = { .instance_init = stm32f405_soc_initfn, .class_init = stm32f405_soc_class_init, }; +TYPE_INFO (stm32f405_soc_info) -static void stm32f405_soc_types (void ) -{ -type_register_static (&stm32f405_soc_info); -} -type_init (stm32f405_soc_types)
hw/arm/strongarm.c +6 -10
@@ -235,6 +235,7 @@ static const TypeInfo strongarm_pic_info = { .instance_init = strongarm_pic_initfn, .class_init = strongarm_pic_class_init, }; +TYPE_INFO (strongarm_pic_info) /* Real-Time Clock */#define RTAR 0x00/* RTC Alarm register */
@@ -466,6 +467,7 @@ static const TypeInfo strongarm_rtc_sysbus_info = { .instance_init = strongarm_rtc_init, .class_init = strongarm_rtc_sysbus_class_init, }; +TYPE_INFO (strongarm_rtc_sysbus_info) /* GPIO */#define GPLR 0x00
@@ -708,6 +710,7 @@ static const TypeInfo strongarm_gpio_info = { .instance_init = strongarm_gpio_initfn, .class_init = strongarm_gpio_class_init, }; +TYPE_INFO (strongarm_gpio_info) /* Peripheral Pin Controller */#define PPDR 0x00
@@ -878,6 +881,7 @@ static const TypeInfo strongarm_ppc_info = { .instance_init = strongarm_ppc_init, .class_init = strongarm_ppc_class_init, }; +TYPE_INFO (strongarm_ppc_info) /* UART Ports */#define UTCR0 0x00
@@ -1345,6 +1349,7 @@ static const TypeInfo strongarm_uart_info = { .instance_init = strongarm_uart_init, .class_init = strongarm_uart_class_init, }; +TYPE_INFO (strongarm_uart_info)/* Synchronous Serial Ports */
@@ -1591,6 +1596,7 @@ static const TypeInfo strongarm_ssp_info = { .instance_init = strongarm_ssp_init, .class_init = strongarm_ssp_class_init, }; +TYPE_INFO (strongarm_ssp_info)/* Main CPU functions */ StrongARMState *sa1110_init(const char *cpu_type)
@@ -1643,14 +1649,4 @@ StrongARMState *sa1110_init(const char *cpu_type)return s; } -static void strongarm_register_types (void ) -{ -type_register_static (&strongarm_pic_info); -type_register_static (&strongarm_rtc_sysbus_info); -type_register_static (&strongarm_gpio_info); -type_register_static (&strongarm_ppc_info); -type_register_static (&strongarm_uart_info); -type_register_static (&strongarm_ssp_info); -} -type_init (strongarm_register_types)
hw/arm/tosa.c +3 -7
@@ -299,6 +299,7 @@ static const TypeInfo tosa_dac_info = { .instance_size = sizeof(TosaDACState), .class_init = tosa_dac_class_init, }; +TYPE_INFO (tosa_dac_info) static void tosa_ssp_class_init(ObjectClass *klass, void *data) {
@@ -314,6 +315,7 @@ static const TypeInfo tosa_ssp_info = { .instance_size = sizeof(SSISlave), .class_init = tosa_ssp_class_init, }; +TYPE_INFO (tosa_ssp_info) static const TypeInfo tosa_misc_gpio_info = { .name ="tosa-misc-gpio" ,
@@ -325,12 +327,6 @@ static const TypeInfo tosa_misc_gpio_info = {* need to set up reset or vmstate, and has no realize method. */ }; +TYPE_INFO (tosa_misc_gpio_info) -static void tosa_register_types (void ) -{ -type_register_static (&tosa_dac_info); -type_register_static (&tosa_ssp_info); -type_register_static (&tosa_misc_gpio_info); -} -type_init (tosa_register_types)
hw/arm/versatilepb.c +3 -11
@@ -426,6 +426,7 @@ static const TypeInfo versatilepb_type = { .parent = TYPE_MACHINE, .class_init = versatilepb_class_init, }; +TYPE_INFO (versatilepb_type) static void versatileab_class_init(ObjectClass *oc, void *data) {
@@ -444,14 +445,9 @@ static const TypeInfo versatileab_type = { .parent = TYPE_MACHINE, .class_init = versatileab_class_init, }; +TYPE_INFO (versatileab_type) -static void versatile_machine_init (void ) -{ -type_register_static (&versatilepb_type); -type_register_static (&versatileab_type); -} -type_init (versatile_machine_init) static void vpb_sic_class_init(ObjectClass *klass, void *data) {
@@ -467,10 +463,6 @@ static const TypeInfo vpb_sic_info = { .instance_init = vpb_sic_init, .class_init = vpb_sic_class_init, }; +TYPE_INFO (vpb_sic_info) -static void versatilepb_register_types (void ) -{ -type_register_static (&vpb_sic_info); -} -type_init (versatilepb_register_types)
hw/arm/vexpress.c +3 -7
@@ -833,6 +833,7 @@ static const TypeInfo vexpress_info = { .class_size = sizeof(VexpressMachineClass), .class_init = vexpress_class_init, }; +TYPE_INFO (vexpress_info) static const TypeInfo vexpress_a9_info = { .name =TYPE_VEXPRESS_A9_MACHINE ,
@@ -840,6 +841,7 @@ static const TypeInfo vexpress_a9_info = { .class_init = vexpress_a9_class_init, .instance_init = vexpress_a9_instance_init, }; +TYPE_INFO (vexpress_a9_info) static const TypeInfo vexpress_a15_info = { .name =TYPE_VEXPRESS_A15_MACHINE ,
@@ -847,12 +849,6 @@ static const TypeInfo vexpress_a15_info = { .class_init = vexpress_a15_class_init, .instance_init = vexpress_a15_instance_init, }; +TYPE_INFO (vexpress_a15_info) -static void vexpress_machine_init (void ) -{ -type_register_static (&vexpress_info); -type_register_static (&vexpress_a9_info); -type_register_static (&vexpress_a15_info); -} -type_init (vexpress_machine_init);
hw/arm/virt.c +1 -5
@@ -2539,12 +2539,8 @@ static const TypeInfo virt_machine_info = { { } }, }; +TYPE_INFO (virt_machine_info) -static void machvirt_machine_init (void ) -{ -type_register_static (&virt_machine_info); -} -type_init (machvirt_machine_init); static void virt_machine_5_2_options(MachineClass *mc) {
hw/arm/xilinx_zynq.c +1 -5
@@ -355,10 +355,6 @@ static const TypeInfo zynq_machine_type = { .class_init = zynq_machine_class_init, .instance_size = sizeof(ZynqMachineState), }; +TYPE_INFO (zynq_machine_type) -static void zynq_machine_register_types (void ) -{ -type_register_static (&zynq_machine_type); -} -type_init (zynq_machine_register_types)
hw/arm/xlnx-versal-virt.c +1 -5
@@ -574,11 +574,7 @@ static const TypeInfo versal_virt_machine_init_typeinfo = { .instance_init = versal_virt_machine_instance_init, .instance_size = sizeof(VersalVirt), }; +TYPE_INFO (versal_virt_machine_init_typeinfo) -static void versal_virt_machine_init_register_types (void ) -{ -type_register_static (&versal_virt_machine_init_typeinfo); -} -type_init (versal_virt_machine_init_register_types)
hw/arm/xlnx-versal.c +1 -5
@@ -378,10 +378,6 @@ static const TypeInfo versal_info = { .instance_init = versal_init, .class_init = versal_class_init, }; +TYPE_INFO (versal_info) -static void versal_register_types (void ) -{ -type_register_static (&versal_info); -} -type_init (versal_register_types);
hw/arm/xlnx-zcu102.c +1 -5
@@ -244,10 +244,6 @@ static const TypeInfo xlnx_zcu102_machine_init_typeinfo = { .instance_init = xlnx_zcu102_machine_instance_init, .instance_size = sizeof(XlnxZCU102), }; +TYPE_INFO (xlnx_zcu102_machine_init_typeinfo) -static void xlnx_zcu102_machine_init_register_types (void ) -{ -type_register_static (&xlnx_zcu102_machine_init_typeinfo); -} -type_init (xlnx_zcu102_machine_init_register_types)
hw/arm/xlnx-zynqmp.c +1 -5
@@ -637,10 +637,6 @@ static const TypeInfo xlnx_zynqmp_type_info = { .instance_init = xlnx_zynqmp_init, .class_init = xlnx_zynqmp_class_init, }; +TYPE_INFO (xlnx_zynqmp_type_info) -static void xlnx_zynqmp_register_types (void ) -{ -type_register_static (&xlnx_zynqmp_type_info); -} -type_init (xlnx_zynqmp_register_types)
hw/audio/cs4231.c +1 -5
@@ -178,10 +178,6 @@ static const TypeInfo cs4231_info = { .instance_init = cs4231_init, .class_init = cs4231_class_init, }; +TYPE_INFO (cs4231_info) -static void cs4231_register_types (void ) -{ -type_register_static (&cs4231_info); -} -type_init (cs4231_register_types)
hw/audio/hda-codec.c +4 -8
@@ -901,6 +901,7 @@ static const TypeInfo hda_audio_info = { .class_init = hda_audio_base_class_init, .abstract = true, }; +TYPE_INFO (hda_audio_info) static void hda_audio_output_class_init(ObjectClass *klass, void *data) {
@@ -917,6 +918,7 @@ static const TypeInfo hda_audio_output_info = { .instance_size = sizeof(HDAAudioState), .class_init = hda_audio_output_class_init, }; +TYPE_INFO (hda_audio_output_info) static void hda_audio_duplex_class_init(ObjectClass *klass, void *data) {
@@ -933,6 +935,7 @@ static const TypeInfo hda_audio_duplex_info = { .instance_size = sizeof(HDAAudioState), .class_init = hda_audio_duplex_class_init, }; +TYPE_INFO (hda_audio_duplex_info) static void hda_audio_micro_class_init(ObjectClass *klass, void *data) {
@@ -949,13 +952,6 @@ static const TypeInfo hda_audio_micro_info = { .instance_size = sizeof(HDAAudioState), .class_init = hda_audio_micro_class_init, }; +TYPE_INFO (hda_audio_micro_info) -static void hda_audio_register_types (void ) -{ -type_register_static (&hda_audio_info); -type_register_static (&hda_audio_output_info); -type_register_static (&hda_audio_duplex_info); -type_register_static (&hda_audio_micro_info); -} -type_init (hda_audio_register_types)
hw/audio/intel-hda.c +5 -5
@@ -46,6 +46,7 @@ static const TypeInfo hda_codec_bus_info = { .parent = TYPE_BUS, .instance_size = sizeof(HDACodecBus), }; +TYPE_INFO(hda_codec_bus_info) void hda_codec_bus_init(DeviceState *dev, HDACodecBus *bus, size_t bus_size, hda_codec_response_func response,
@@ -1266,18 +1267,21 @@ static const TypeInfo intel_hda_info = { { }, }, }; +TYPE_INFO (intel_hda_info) static const TypeInfo intel_hda_info_ich6 = { .name ="intel-hda" , .parent =TYPE_INTEL_HDA_GENERIC , .class_init = intel_hda_class_init_ich6, }; +TYPE_INFO (intel_hda_info_ich6) static const TypeInfo intel_hda_info_ich9 = { .name ="ich9-intel-hda" , .parent =TYPE_INTEL_HDA_GENERIC , .class_init = intel_hda_class_init_ich9, }; +TYPE_INFO (intel_hda_info_ich9) static void hda_codec_device_class_init(ObjectClass *klass, void *data) {
@@ -1297,6 +1301,7 @@ static const TypeInfo hda_codec_device_type_info = { .class_size = sizeof(HDACodecDeviceClass), .class_init = hda_codec_device_class_init, }; +TYPE_INFO (hda_codec_device_type_info)/* * create intel hda controller with codec attached to it,
@@ -1319,11 +1324,6 @@ static int intel_hda_and_codec_init(PCIBus *bus)static void intel_hda_register_types (void ) { -type_register_static (&hda_codec_bus_info); -type_register_static (&intel_hda_info); -type_register_static (&intel_hda_info_ich6); -type_register_static (&intel_hda_info_ich9); -type_register_static (&hda_codec_device_type_info);pci_register_soundhw ("hda" ,"Intel HD Audio" , intel_hda_and_codec_init); }
hw/audio/marvell_88w8618.c +1 -5
@@ -304,10 +304,6 @@ static const TypeInfo mv88w8618_audio_info = { .instance_init = mv88w8618_audio_init, .class_init = mv88w8618_audio_class_init, }; +TYPE_INFO (mv88w8618_audio_info) -static void mv88w8618_register_types (void ) -{ -type_register_static (&mv88w8618_audio_info); -} -type_init (mv88w8618_register_types)
hw/audio/milkymist-ac97.c +1 -5
@@ -352,10 +352,6 @@ static const TypeInfo milkymist_ac97_info = { .instance_init = milkymist_ac97_init, .class_init = milkymist_ac97_class_init, }; +TYPE_INFO (milkymist_ac97_info) -static void milkymist_ac97_register_types (void ) -{ -type_register_static (&milkymist_ac97_info); -} -type_init (milkymist_ac97_register_types)
hw/audio/pcspk.c +1 -1
@@ -244,6 +244,7 @@ static const TypeInfo pcspk_info = { .instance_init = pcspk_initfn, .class_init = pcspk_class_initfn, }; +TYPE_INFO (pcspk_info) static int pcspk_audio_init_soundhw(ISABus *bus) {
@@ -256,7 +257,6 @@ static int pcspk_audio_init_soundhw(ISABus *bus)static void pcspk_register (void ) { -type_register_static (&pcspk_info);isa_register_soundhw ("pcspk" ,"PC speaker" , pcspk_audio_init_soundhw); }type_init (pcspk_register)
hw/audio/pl041.c +1 -5
@@ -650,10 +650,6 @@ static const TypeInfo pl041_device_info = { .instance_init = pl041_init, .class_init = pl041_device_class_init, }; +TYPE_INFO (pl041_device_info) -static void pl041_register_types (void ) -{ -type_register_static (&pl041_device_info); -} -type_init (pl041_register_types)
hw/audio/wm8750.c +1 -5
@@ -726,10 +726,6 @@ static const TypeInfo wm8750_info = { .instance_size = sizeof(WM8750State), .class_init = wm8750_class_init, }; +TYPE_INFO (wm8750_info) -static void wm8750_register_types (void ) -{ -type_register_static (&wm8750_info); -} -type_init (wm8750_register_types)
hw/block/fdc.c +6 -10
@@ -80,6 +80,7 @@ static const TypeInfo floppy_bus_info = { .parent = TYPE_BUS, .instance_size = sizeof(FloppyBus), }; +TYPE_INFO (floppy_bus_info) static void floppy_bus_create(FDCtrl *fdc, FloppyBus *bus, DeviceState *dev) {
@@ -620,6 +621,7 @@ static const TypeInfo floppy_drive_info = { .instance_size = sizeof(FloppyDrive), .class_init = floppy_drive_class_init, }; +TYPE_INFO (floppy_drive_info)/********************************************************/ /* Intel 82078 floppy disk controller emulation */
@@ -2940,6 +2942,7 @@ static const TypeInfo isa_fdc_info = { .class_init = isabus_fdc_class_init, .instance_init = isabus_fdc_instance_init, }; +TYPE_INFO (isa_fdc_info) static const VMStateDescription vmstate_sysbus_fdc ={ .name ="fdc" ,
@@ -2980,6 +2983,7 @@ static const TypeInfo sysbus_fdc_info = { .instance_init = sysbus_fdc_initfn, .class_init = sysbus_fdc_class_init, }; +TYPE_INFO (sysbus_fdc_info) static Property sun4m_fdc_properties[] = {DEFINE_PROP_DRIVE ("drive" , FDCtrlSysBus, state.qdev_for_drives[0 ].blk),
@@ -3006,6 +3010,7 @@ static const TypeInfo sun4m_fdc_info = { .instance_init = sun4m_fdc_initfn, .class_init = sun4m_fdc_class_init, }; +TYPE_INFO (sun4m_fdc_info) static void sysbus_fdc_common_class_init(ObjectClass *klass, void *data) {
@@ -3024,15 +3029,6 @@ static const TypeInfo sysbus_fdc_type_info = { .abstract = true, .class_init = sysbus_fdc_common_class_init, }; +TYPE_INFO (sysbus_fdc_type_info) -static void fdc_register_types (void ) -{ -type_register_static (&isa_fdc_info); -type_register_static (&sysbus_fdc_type_info); -type_register_static (&sysbus_fdc_info); -type_register_static (&sun4m_fdc_info); -type_register_static (&floppy_bus_info); -type_register_static (&floppy_drive_info); -} -type_init (fdc_register_types)
hw/block/m25p80.c +1 -1
@@ -1407,12 +1407,12 @@ static const TypeInfo m25p80_info = { .class_size = sizeof(M25P80Class), .abstract = true, }; +TYPE_INFO (m25p80_info) static void m25p80_register_types(void) {int i; -type_register_static (&m25p80_info);for (i =0 ; i <ARRAY_SIZE (known_devices); ++i) {TypeInfo ti = { .name = known_devices[i].part_name,
hw/block/nand.c +1 -5
@@ -457,11 +457,8 @@ static const TypeInfo nand_info = { .instance_size = sizeof(NANDFlashState), .class_init = nand_class_init, }; +TYPE_INFO (nand_info) -static void nand_register_types (void ) -{ -type_register_static (&nand_info); -}/* * Chip inputs are CLE, ALE, CE, WP, GND and eight I/O pins. Chip
@@ -655,7 +652,6 @@ DeviceState *nand_init(BlockBackend *blk, int manf_id, int chip_id) return dev; } -type_init(nand_register_types)#else
hw/block/nvme.c +1 -5
@@ -1697,10 +1697,6 @@ static const TypeInfo nvme_info = { { } }, }; +TYPE_INFO (nvme_info) -static void nvme_register_types (void ) -{ -type_register_static (&nvme_info); -} -type_init (nvme_register_types)
hw/block/onenand.c +1 -5
@@ -854,11 +854,8 @@ static const TypeInfo onenand_info = { .instance_size = sizeof(OneNANDState), .class_init = onenand_class_init, }; +TYPE_INFO (onenand_info) -static void onenand_register_types (void ) -{ -type_register_static (&onenand_info); -} void *onenand_raw_otp(DeviceState *onenand_device) {
@@ -867,4 +864,3 @@ void *onenand_raw_otp(DeviceState *onenand_device)return s->otp; } -type_init (onenand_register_types)
hw/block/pflash_cfi01.c +1 -5
@@ -940,13 +940,9 @@ static const TypeInfo pflash_cfi01_info = { .instance_size = sizeof(PFlashCFI01), .class_init = pflash_cfi01_class_init, }; +TYPE_INFO (pflash_cfi01_info) -static void pflash_cfi01_register_types (void ) -{ -type_register_static (&pflash_cfi01_info); -} -type_init (pflash_cfi01_register_types) PFlashCFI01 *pflash_cfi01_register(hwaddr base, const char *name,
hw/block/pflash_cfi02.c +1 -5
@@ -977,13 +977,9 @@ static const TypeInfo pflash_cfi02_info = { .instance_size = sizeof(PFlashCFI02), .class_init = pflash_cfi02_class_init, }; +TYPE_INFO (pflash_cfi02_info) -static void pflash_cfi02_register_types (void ) -{ -type_register_static (&pflash_cfi02_info); -} -type_init (pflash_cfi02_register_types) PFlashCFI02 *pflash_cfi02_register(hwaddr base, const char *name,
hw/block/swim.c +3 -7
@@ -252,12 +252,14 @@ static const TypeInfo swim_drive_info = { .instance_size = sizeof(SWIMDrive), .class_init = swim_drive_class_init, }; +TYPE_INFO (swim_drive_info) static const TypeInfo swim_bus_info = { .name =TYPE_SWIM_BUS , .parent =TYPE_BUS , .instance_size =sizeof (SWIMBus), }; +TYPE_INFO (swim_bus_info) static void iwmctrl_write(void *opaque, hwaddr reg, uint64_t value,unsigned size)
@@ -481,12 +483,6 @@ static const TypeInfo sysbus_swim_info = { .instance_init = sysbus_swim_init, .class_init = sysbus_swim_class_init, }; +TYPE_INFO (sysbus_swim_info) -static void swim_register_types (void ) -{ -type_register_static (&sysbus_swim_info); -type_register_static (&swim_bus_info); -type_register_static (&swim_drive_info); -} -type_init (swim_register_types)
hw/block/vhost-user-blk.c +1 -5
@@ -561,10 +561,6 @@ static const TypeInfo vhost_user_blk_info = { .instance_init = vhost_user_blk_instance_init, .class_init = vhost_user_blk_class_init, }; +TYPE_INFO (vhost_user_blk_info) -static void virtio_register_types (void ) -{ -type_register_static (&vhost_user_blk_info); -} -type_init (virtio_register_types)
hw/block/virtio-blk.c +1 -5
@@ -1327,10 +1327,6 @@ static const TypeInfo virtio_blk_info = { .instance_init = virtio_blk_instance_init, .class_init = virtio_blk_class_init, }; +TYPE_INFO (virtio_blk_info) -static void virtio_register_types (void ) -{ -type_register_static (&virtio_blk_info); -} -type_init (virtio_register_types)
hw/block/xen-block.c +3 -7
@@ -555,6 +555,7 @@ static const TypeInfo xen_block_type_info = { .class_size = sizeof(XenBlockDeviceClass), .class_init = xen_block_class_init, }; +TYPE_INFO (xen_block_type_info) static void xen_disk_unrealize(XenBlockDevice *blockdev) {
@@ -594,6 +595,7 @@ static const TypeInfo xen_disk_type_info = { .instance_size = sizeof(XenDiskDevice), .class_init = xen_disk_class_init, }; +TYPE_INFO (xen_disk_type_info) static void xen_cdrom_unrealize(XenBlockDevice *blockdev) {
@@ -641,15 +643,9 @@ static const TypeInfo xen_cdrom_type_info = { .instance_size = sizeof(XenCDRomDevice), .class_init = xen_cdrom_class_init, }; +TYPE_INFO (xen_cdrom_type_info) -static void xen_block_register_types (void ) -{ -type_register_static (&xen_block_type_info); -type_register_static (&xen_disk_type_info); -type_register_static (&xen_cdrom_type_info); -} -type_init (xen_block_register_types) static void xen_block_blockdev_del(const char *node_name, Error **errp) {
hw/char/avr_usart.c +1 -5
@@ -311,10 +311,6 @@ static const TypeInfo avr_usart_info = { .instance_init = avr_usart_init, .class_init = avr_usart_class_init, }; +TYPE_INFO (avr_usart_info) -static void avr_usart_register_types (void ) -{ -type_register_static (&avr_usart_info); -} -type_init (avr_usart_register_types)
hw/char/bcm2835_aux.c +1 -5
@@ -309,10 +309,6 @@ static const TypeInfo bcm2835_aux_info = { .instance_init = bcm2835_aux_init, .class_init = bcm2835_aux_class_init, }; +TYPE_INFO (bcm2835_aux_info) -static void bcm2835_aux_register_types (void ) -{ -type_register_static (&bcm2835_aux_info); -} -type_init (bcm2835_aux_register_types)
hw/char/cadence_uart.c +1 -5
@@ -613,10 +613,6 @@ static const TypeInfo cadence_uart_info = { .instance_init = cadence_uart_init, .class_init = cadence_uart_class_init, }; +TYPE_INFO (cadence_uart_info) -static void cadence_uart_register_types (void ) -{ -type_register_static (&cadence_uart_info); -} -type_init (cadence_uart_register_types)
hw/char/cmsdk-apb-uart.c +1 -5
@@ -399,10 +399,6 @@ static const TypeInfo cmsdk_apb_uart_info = { .instance_init = cmsdk_apb_uart_init, .class_init = cmsdk_apb_uart_class_init, }; +TYPE_INFO (cmsdk_apb_uart_info) -static void cmsdk_apb_uart_register_types (void ) -{ -type_register_static (&cmsdk_apb_uart_info); -} -type_init (cmsdk_apb_uart_register_types);
hw/char/debugcon.c +1 -5
@@ -135,10 +135,6 @@ static const TypeInfo debugcon_isa_info = { .instance_size = sizeof(ISADebugconState), .class_init = debugcon_isa_class_initfn, }; +TYPE_INFO (debugcon_isa_info) -static void debugcon_register_types (void ) -{ -type_register_static (&debugcon_isa_info); -} -type_init (debugcon_register_types)
hw/char/digic-uart.c +1 -5
@@ -193,10 +193,6 @@ static const TypeInfo digic_uart_info = { .instance_init = digic_uart_init, .class_init = digic_uart_class_init, }; +TYPE_INFO (digic_uart_info) -static void digic_uart_register_types (void ) -{ -type_register_static (&digic_uart_info); -} -type_init (digic_uart_register_types)
hw/char/escc.c +1 -5
@@ -876,10 +876,6 @@ static const TypeInfo escc_info = { .instance_init = escc_init1, .class_init = escc_class_init, }; +TYPE_INFO (escc_info) -static void escc_register_types (void ) -{ -type_register_static (&escc_info); -} -type_init (escc_register_types)
hw/char/etraxfs_ser.c +1 -5
@@ -255,10 +255,6 @@ static const TypeInfo etraxfs_ser_info = { .instance_init = etraxfs_ser_init, .class_init = etraxfs_ser_class_init, }; +TYPE_INFO (etraxfs_ser_info) -static void etraxfs_serial_register_types (void ) -{ -type_register_static (&etraxfs_ser_info); -} -type_init (etraxfs_serial_register_types)
hw/char/exynos4210_uart.c +1 -5
@@ -723,10 +723,6 @@ static const TypeInfo exynos4210_uart_info = { .instance_init = exynos4210_uart_init, .class_init = exynos4210_uart_class_init, }; +TYPE_INFO (exynos4210_uart_info) -static void exynos4210_uart_register (void ) -{ -type_register_static (&exynos4210_uart_info); -} -type_init (exynos4210_uart_register)
hw/char/grlib_apbuart.c +1 -5
@@ -294,10 +294,6 @@ static const TypeInfo grlib_apbuart_info = { .instance_size = sizeof(UART), .class_init = grlib_apbuart_class_init, }; +TYPE_INFO (grlib_apbuart_info) -static void grlib_apbuart_register_types (void ) -{ -type_register_static (&grlib_apbuart_info); -} -type_init (grlib_apbuart_register_types)
hw/char/ibex_uart.c +1 -5
@@ -507,10 +507,6 @@ static const TypeInfo ibex_uart_info = { .instance_init = ibex_uart_init, .class_init = ibex_uart_class_init, }; +TYPE_INFO (ibex_uart_info) -static void ibex_uart_register_types (void ) -{ -type_register_static (&ibex_uart_info); -} -type_init (ibex_uart_register_types)
hw/char/imx_serial.c +1 -5
@@ -382,10 +382,6 @@ static const TypeInfo imx_serial_info = { .instance_init = imx_serial_init, .class_init = imx_serial_class_init, }; +TYPE_INFO (imx_serial_info) -static void imx_serial_register_types (void ) -{ -type_register_static (&imx_serial_info); -} -type_init (imx_serial_register_types)
hw/char/ipoctal232.c +1 -5
@@ -598,10 +598,6 @@ static const TypeInfo ipoctal_info = { .instance_size = sizeof(IPOctalState), .class_init = ipoctal_class_init, }; +TYPE_INFO (ipoctal_info) -static void ipoctal_register_types (void ) -{ -type_register_static (&ipoctal_info); -} -type_init (ipoctal_register_types)
hw/char/lm32_juart.c +1 -5
@@ -156,10 +156,6 @@ static const TypeInfo lm32_juart_info = { .instance_size = sizeof(LM32JuartState), .class_init = lm32_juart_class_init, }; +TYPE_INFO (lm32_juart_info) -static void lm32_juart_register_types (void ) -{ -type_register_static (&lm32_juart_info); -} -type_init (lm32_juart_register_types)
hw/char/lm32_uart.c +1 -5
@@ -304,10 +304,6 @@ static const TypeInfo lm32_uart_info = { .instance_init = lm32_uart_init, .class_init = lm32_uart_class_init, }; +TYPE_INFO (lm32_uart_info) -static void lm32_uart_register_types (void ) -{ -type_register_static (&lm32_uart_info); -} -type_init (lm32_uart_register_types)
hw/char/mcf_uart.c +1 -5
@@ -332,13 +332,9 @@ static const TypeInfo mcf_uart_info = { .instance_init = mcf_uart_instance_init, .class_init = mcf_uart_class_init, }; +TYPE_INFO (mcf_uart_info) -static void mcf_uart_register (void ) -{ -type_register_static (&mcf_uart_info); -} -type_init (mcf_uart_register) void *mcf_uart_init(qemu_irq irq, Chardev *chrdrv) {
hw/char/milkymist-uart.c +1 -5
@@ -249,10 +249,6 @@ static const TypeInfo milkymist_uart_info = { .instance_init = milkymist_uart_init, .class_init = milkymist_uart_class_init, }; +TYPE_INFO (milkymist_uart_info) -static void milkymist_uart_register_types (void ) -{ -type_register_static (&milkymist_uart_info); -} -type_init (milkymist_uart_register_types)
hw/char/nrf51_uart.c +1 -5
@@ -325,10 +325,6 @@ static const TypeInfo nrf51_uart_info = { .instance_init = nrf51_uart_init, .class_init = nrf51_uart_class_init }; +TYPE_INFO (nrf51_uart_info) -static void nrf51_uart_register_types (void ) -{ -type_register_static (&nrf51_uart_info); -} -type_init (nrf51_uart_register_types)
hw/char/parallel.c +1 -5
@@ -659,10 +659,6 @@ static const TypeInfo parallel_isa_info = { .instance_size = sizeof(ISAParallelState), .class_init = parallel_isa_class_initfn, }; +TYPE_INFO (parallel_isa_info) -static void parallel_register_types (void ) -{ -type_register_static (¶llel_isa_info); -} -type_init (parallel_register_types)
hw/char/pl011.c +2 -6
@@ -366,6 +366,7 @@ static const TypeInfo pl011_arm_info = { .instance_init = pl011_init, .class_init = pl011_class_init, }; +TYPE_INFO (pl011_arm_info) static void pl011_luminary_init(Object *obj) {
@@ -379,11 +380,6 @@ static const TypeInfo pl011_luminary_info = { .parent = TYPE_PL011, .instance_init = pl011_luminary_init, }; +TYPE_INFO (pl011_luminary_info) -static void pl011_register_types (void ) -{ -type_register_static (&pl011_arm_info); -type_register_static (&pl011_luminary_info); -} -type_init (pl011_register_types)
hw/char/renesas_sci.c +1 -5
@@ -341,10 +341,6 @@ static const TypeInfo rsci_info = { .instance_init = rsci_init, .class_init = rsci_class_init, }; +TYPE_INFO (rsci_info) -static void rsci_register_types (void ) -{ -type_register_static (&rsci_info); -} -type_init (rsci_register_types)
hw/char/sclpconsole-lm.c +1 -5
@@ -361,10 +361,6 @@ static const TypeInfo sclp_console_info = { .class_init = console_class_init, .class_size = sizeof(SCLPEventClass), }; +TYPE_INFO (sclp_console_info) -static void register_types (void ) -{ -type_register_static (&sclp_console_info); -} -type_init (register_types)
hw/char/sclpconsole.c +1 -5
@@ -277,10 +277,6 @@ static const TypeInfo sclp_console_info = { .class_init = console_class_init, .class_size = sizeof(SCLPEventClass), }; +TYPE_INFO (sclp_console_info) -static void register_types (void ) -{ -type_register_static (&sclp_console_info); -} -type_init (register_types)
hw/char/serial-isa.c +1 -5
@@ -146,13 +146,9 @@ static const TypeInfo serial_isa_info = { .instance_init = serial_isa_initfn, .class_init = serial_isa_class_initfn, }; +TYPE_INFO (serial_isa_info) -static void serial_register_types (void ) -{ -type_register_static (&serial_isa_info); -} -type_init (serial_register_types) static void serial_isa_init(ISABus *bus, int index, Chardev *chr) {
hw/char/serial-pci-multi.c +2 -6
@@ -199,6 +199,7 @@ static const TypeInfo multi_2x_serial_pci_info = { { }, }, }; +TYPE_INFO (multi_2x_serial_pci_info) static const TypeInfo multi_4x_serial_pci_info = { .name ="pci-serial-4x" ,
@@ -211,11 +212,6 @@ static const TypeInfo multi_4x_serial_pci_info = { { }, }, }; +TYPE_INFO (multi_4x_serial_pci_info) -static void multi_serial_pci_register_types (void ) -{ -type_register_static (&multi_2x_serial_pci_info); -type_register_static (&multi_4x_serial_pci_info); -} -type_init (multi_serial_pci_register_types)
hw/char/serial-pci.c +1 -5
@@ -119,10 +119,6 @@ static const TypeInfo serial_pci_info = { { }, }, }; +TYPE_INFO (serial_pci_info) -static void serial_pci_register_types (void ) -{ -type_register_static (&serial_pci_info); -} -type_init (serial_pci_register_types)
hw/char/serial.c +3 -7
@@ -1024,6 +1024,7 @@ static const TypeInfo serial_io_info = { .instance_init = serial_io_instance_init, .class_init = serial_io_class_init, }; +TYPE_INFO (serial_io_info) static Property serial_properties[] = {DEFINE_PROP_CHR ("chardev" , SerialState, chr),
@@ -1048,6 +1049,7 @@ static const TypeInfo serial_info = { .instance_size = sizeof(SerialState), .class_init = serial_class_init, }; +TYPE_INFO(serial_info) /* Memory mapped interface */ static uint64_t serial_mm_read(void *opaque, hwaddr addr,
@@ -1174,12 +1176,6 @@ static const TypeInfo serial_mm_info = { .instance_size = sizeof(SerialMM), .class_init = serial_mm_class_init, }; +TYPE_INFO (serial_mm_info) -static void serial_register_types (void ) -{ -type_register_static (&serial_info); -type_register_static (&serial_io_info); -type_register_static (&serial_mm_info); -} -type_init (serial_register_types)
hw/char/spapr_vty.c +1 -1
@@ -203,6 +203,7 @@ static const TypeInfo spapr_vty_info = { .instance_size = sizeof(SpaprVioVty), .class_init = spapr_vty_class_init, }; +TYPE_INFO (spapr_vty_info) SpaprVioDevice *spapr_vty_get_default(SpaprVioBus *bus) {
@@ -266,7 +267,6 @@ static void spapr_vty_register_types(void) {spapr_register_hypercall (H_PUT_TERM_CHAR , h_put_term_char);spapr_register_hypercall (H_GET_TERM_CHAR , h_get_term_char); -type_register_static (&spapr_vty_info); }type_init (spapr_vty_register_types)
hw/char/stm32f2xx_usart.c +1 -5
@@ -233,10 +233,6 @@ static const TypeInfo stm32f2xx_usart_info = { .instance_init = stm32f2xx_usart_init, .class_init = stm32f2xx_usart_class_init, }; +TYPE_INFO (stm32f2xx_usart_info) -static void stm32f2xx_usart_register_types (void ) -{ -type_register_static (&stm32f2xx_usart_info); -} -type_init (stm32f2xx_usart_register_types)
hw/char/terminal3270.c +1 -5
@@ -302,10 +302,6 @@ static const TypeInfo ccw_terminal_info = { .class_init = terminal_class_init, .class_size = sizeof(EmulatedCcw3270Class), }; +TYPE_INFO (ccw_terminal_info) -static void register_types (void ) -{ -type_register_static (&ccw_terminal_info); -} -type_init (register_types)
hw/char/virtio-console.c +2 -6
@@ -270,6 +270,7 @@ static const TypeInfo virtconsole_info = { .parent = TYPE_VIRTIO_CONSOLE_SERIAL_PORT, .class_init = virtconsole_class_init, }; +TYPE_INFO (virtconsole_info) static Property virtserialport_properties[] = {DEFINE_PROP_CHR ("chardev" , VirtConsole, chr),
@@ -296,11 +297,6 @@ static const TypeInfo virtserialport_info = { .instance_size = sizeof(VirtConsole), .class_init = virtserialport_class_init, }; +TYPE_INFO (virtserialport_info) -static void virtconsole_register_types (void ) -{ -type_register_static (&virtserialport_info); -type_register_static (&virtconsole_info); -} -type_init (virtconsole_register_types)
hw/char/virtio-serial-bus.c +3 -7
@@ -855,6 +855,7 @@ static const TypeInfo virtser_bus_info = { .instance_size = sizeof(VirtIOSerialBus), .class_init = virtser_bus_class_init, }; +TYPE_INFO (virtser_bus_info) static void virtser_bus_dev_print(Monitor *mon, DeviceState *qdev, int indent) {
@@ -1117,6 +1118,7 @@ static const TypeInfo virtio_serial_port_type_info = { .class_size = sizeof(VirtIOSerialPortClass), .class_init = virtio_serial_port_class_init, }; +TYPE_INFO (virtio_serial_port_type_info) static void virtio_serial_device_unrealize(DeviceState *dev) {
@@ -1201,12 +1203,6 @@ static const TypeInfo virtio_device_info = { { } } }; +TYPE_INFO (virtio_device_info) -static void virtio_serial_register_types (void ) -{ -type_register_static (&virtser_bus_info); -type_register_static (&virtio_serial_port_type_info); -type_register_static (&virtio_device_info); -} -type_init (virtio_serial_register_types)
hw/char/xilinx_uartlite.c +1 -5
@@ -247,10 +247,6 @@ static const TypeInfo xilinx_uartlite_info = { .instance_init = xilinx_uartlite_init, .class_init = xilinx_uartlite_class_init, }; +TYPE_INFO (xilinx_uartlite_info) -static void xilinx_uart_register_types (void ) -{ -type_register_static (&xilinx_uartlite_info); -} -type_init (xilinx_uart_register_types)
hw/core/bus.c +1 -5
@@ -325,10 +325,6 @@ static const TypeInfo bus_info = { { } }, }; +TYPE_INFO (bus_info) -static void bus_register_types (void ) -{ -type_register_static (&bus_info); -} -type_init (bus_register_types)
hw/core/clock.c +1 -5
@@ -121,10 +121,6 @@ static const TypeInfo clock_info = { .instance_init = clock_initfn, .instance_finalize = clock_finalizefn, }; +TYPE_INFO (clock_info) -static void clock_register_types (void ) -{ -type_register_static (&clock_info); -} -type_init (clock_register_types)
hw/core/cpu.c +1 -5
@@ -449,10 +449,6 @@ static const TypeInfo cpu_type_info = { .class_size = sizeof(CPUClass), .class_init = cpu_class_init, }; +TYPE_INFO (cpu_type_info) -static void cpu_register_types (void ) -{ -type_register_static (&cpu_type_info); -} -type_init (cpu_register_types)
hw/core/fw-path-provider.c +1 -5
@@ -45,10 +45,6 @@ static const TypeInfo fw_path_provider_info = { .parent = TYPE_INTERFACE, .class_size = sizeof(FWPathProviderClass), }; +TYPE_INFO (fw_path_provider_info) -static void fw_path_provider_register_types (void ) -{ -type_register_static (&fw_path_provider_info); -} -type_init (fw_path_provider_register_types)
hw/core/generic-loader.c +1 -5
@@ -212,10 +212,6 @@ static TypeInfo generic_loader_info = { .instance_size = sizeof(GenericLoaderState), .class_init = generic_loader_class_init, }; +TYPE_INFO (generic_loader_info) -static void generic_loader_register_type (void ) -{ -type_register_static (&generic_loader_info); -} -type_init (generic_loader_register_type)
hw/core/hotplug.c +1 -5
@@ -62,10 +62,6 @@ static const TypeInfo hotplug_handler_info = { .parent = TYPE_INTERFACE, .class_size = sizeof(HotplugHandlerClass), }; +TYPE_INFO (hotplug_handler_info) -static void hotplug_handler_register_types (void ) -{ -type_register_static (&hotplug_handler_info); -} -type_init (hotplug_handler_register_types)
hw/core/irq.c +1 -5
@@ -136,10 +136,6 @@ static const TypeInfo irq_type_info = { .parent = TYPE_OBJECT, .instance_size = sizeof(struct IRQState), }; +TYPE_INFO (irq_type_info) -static void irq_register_types (void ) -{ -type_register_static (&irq_type_info); -} -type_init (irq_register_types)
hw/core/machine.c +1 -5
@@ -1149,10 +1149,6 @@ static const TypeInfo machine_info = { .instance_init = machine_initfn, .instance_finalize = machine_finalize, }; +TYPE_INFO (machine_info) -static void machine_register_types (void ) -{ -type_register_static (&machine_info); -} -type_init (machine_register_types)
hw/core/nmi.c +1 -5
@@ -79,10 +79,6 @@ static const TypeInfo nmi_info = { .parent = TYPE_INTERFACE, .class_size = sizeof(NMIClass), }; +TYPE_INFO (nmi_info) -static void nmi_register_types (void ) -{ -type_register_static (&nmi_info); -} -type_init (nmi_register_types)
hw/core/or-irq.c +1 -5
@@ -140,10 +140,6 @@ static const TypeInfo or_irq_type_info = { .instance_init = or_irq_init, .class_init = or_irq_class_init, }; +TYPE_INFO (or_irq_type_info) -static void or_irq_register_types (void ) -{ -type_register_static (&or_irq_type_info); -} -type_init (or_irq_register_types)
hw/core/platform-bus.c +1 -5
@@ -221,10 +221,6 @@ static const TypeInfo platform_bus_info = { .instance_size = sizeof(PlatformBusDevice), .class_init = platform_bus_class_init, }; +TYPE_INFO (platform_bus_info) -static void platform_bus_register_types (void ) -{ -type_register_static (&platform_bus_info); -} -type_init (platform_bus_register_types)
hw/core/qdev.c +1 -5
@@ -1251,10 +1251,6 @@ static const TypeInfo device_type_info = { { } } }; +TYPE_INFO (device_type_info) -static void qdev_register_types (void ) -{ -type_register_static (&device_type_info); -} -type_init (qdev_register_types)
hw/core/register.c +1 -5
@@ -330,10 +330,6 @@ static const TypeInfo register_info = { .parent = TYPE_DEVICE, .class_init = register_class_init, }; +TYPE_INFO (register_info) -static void register_register_types (void ) -{ -type_register_static (®ister_info); -} -type_init (register_register_types)
hw/core/resettable.c +1 -5
@@ -292,10 +292,6 @@ static const TypeInfo resettable_interface_info = { .parent = TYPE_INTERFACE, .class_size = sizeof(ResettableClass), }; +TYPE_INFO (resettable_interface_info) -static void reset_register_types (void ) -{ -type_register_static (&resettable_interface_info); -} -type_init (reset_register_types)
hw/core/split-irq.c +1 -5
@@ -83,10 +83,6 @@ static const TypeInfo split_irq_type_info = { .instance_init = split_irq_init, .class_init = split_irq_class_init, }; +TYPE_INFO (split_irq_type_info) -static void split_irq_register_types (void ) -{ -type_register_static (&split_irq_type_info); -} -type_init (split_irq_register_types)
hw/core/stream.c +1 -5
@@ -24,11 +24,7 @@ static const TypeInfo stream_slave_info = { .parent = TYPE_INTERFACE, .class_size = sizeof(StreamSlaveClass), }; +TYPE_INFO (stream_slave_info) -static void stream_slave_register_types (void ) -{ -type_register_static (&stream_slave_info); -} -type_init (stream_slave_register_types)
hw/core/sysbus.c +2 -6
@@ -86,6 +86,7 @@ static const TypeInfo system_bus_info = { .instance_size = sizeof(BusState), .class_init = system_bus_class_init, }; +TYPE_INFO (system_bus_info)/* Check whether an IRQ source exists */ bool sysbus_has_irq(SysBusDevice *dev, int n)
@@ -334,6 +335,7 @@ static const TypeInfo sysbus_device_type_info = { .class_size = sizeof(SysBusDeviceClass), .class_init = sysbus_device_class_init, }; +TYPE_INFO (sysbus_device_type_info) static BusState *main_system_bus;
@@ -355,10 +357,4 @@ BusState *sysbus_get_default(void)return main_system_bus; } -static void sysbus_register_types (void ) -{ -type_register_static (&system_bus_info); -type_register_static (&sysbus_device_type_info); -} -type_init (sysbus_register_types)
hw/core/vmstate-if.c +1 -5
@@ -14,10 +14,6 @@ static const TypeInfo vmstate_if_info = { .parent = TYPE_INTERFACE, .class_size = sizeof(VMStateIfClass), }; +TYPE_INFO (vmstate_if_info) -static void vmstate_register_types (void ) -{ -type_register_static (&vmstate_if_info); -} -type_init (vmstate_register_types);
hw/cpu/a15mpcore.c +1 -5
@@ -171,10 +171,6 @@ static const TypeInfo a15mp_priv_info = { .instance_init = a15mp_priv_initfn, .class_init = a15mp_priv_class_init, }; +TYPE_INFO (a15mp_priv_info) -static void a15mp_register_types (void ) -{ -type_register_static (&a15mp_priv_info); -} -type_init (a15mp_register_types)
hw/cpu/a9mpcore.c +1 -5
@@ -185,10 +185,6 @@ static const TypeInfo a9mp_priv_info = { .instance_init = a9mp_priv_initfn, .class_init = a9mp_priv_class_init, }; +TYPE_INFO (a9mp_priv_info) -static void a9mp_register_types (void ) -{ -type_register_static (&a9mp_priv_info); -} -type_init (a9mp_register_types)
hw/cpu/arm11mpcore.c +1 -5
@@ -160,10 +160,6 @@ static const TypeInfo mpcore_priv_info = { .instance_init = mpcore_priv_initfn, .class_init = mpcore_priv_class_init, }; +TYPE_INFO (mpcore_priv_info) -static void arm11mpcore_register_types (void ) -{ -type_register_static (&mpcore_priv_info); -} -type_init (arm11mpcore_register_types)
hw/cpu/cluster.c +1 -5
@@ -91,10 +91,6 @@ static const TypeInfo cpu_cluster_type_info = { .instance_size = sizeof(CPUClusterState), .class_init = cpu_cluster_class_init, }; +TYPE_INFO (cpu_cluster_type_info) -static void cpu_cluster_register_types (void ) -{ -type_register_static (&cpu_cluster_type_info); -} -type_init (cpu_cluster_register_types)
hw/cpu/core.c +1 -5
@@ -91,10 +91,6 @@ static const TypeInfo cpu_core_type_info = { .instance_size = sizeof(CPUCore), .instance_init = cpu_core_instance_init, }; +TYPE_INFO (cpu_core_type_info) -static void cpu_core_register_types (void ) -{ -type_register_static (&cpu_core_type_info); -} -type_init (cpu_core_register_types)
hw/cpu/realview_mpcore.c +1 -5
@@ -128,10 +128,6 @@ static const TypeInfo mpcore_rirq_info = { .instance_init = mpcore_rirq_init, .class_init = mpcore_rirq_class_init, }; +TYPE_INFO (mpcore_rirq_info) -static void realview_mpcore_register_types (void ) -{ -type_register_static (&mpcore_rirq_info); -} -type_init (realview_mpcore_register_types)
hw/display/ads7846.c +1 -5
@@ -174,10 +174,6 @@ static const TypeInfo ads7846_info = { .instance_size = sizeof(ADS7846State), .class_init = ads7846_class_init, }; +TYPE_INFO (ads7846_info) -static void ads7846_register_types (void ) -{ -type_register_static (&ads7846_info); -} -type_init (ads7846_register_types)
hw/display/artist.c +1 -5
@@ -1434,10 +1434,6 @@ static const TypeInfo artist_info = { .instance_init = artist_initfn, .class_init = artist_class_init, }; +TYPE_INFO (artist_info) -static void artist_register_types (void ) -{ -type_register_static (&artist_info); -} -type_init (artist_register_types)
hw/display/ati.c +1 -5
@@ -1043,10 +1043,6 @@ static const TypeInfo ati_vga_info = { { }, }, }; +TYPE_INFO (ati_vga_info) -static void ati_vga_register_types (void ) -{ -type_register_static (&ati_vga_info); -} -type_init (ati_vga_register_types)
hw/display/bcm2835_fb.c +1 -5
@@ -461,10 +461,6 @@ static TypeInfo bcm2835_fb_info = { .class_init = bcm2835_fb_class_init, .instance_init = bcm2835_fb_init, }; +TYPE_INFO (bcm2835_fb_info) -static void bcm2835_fb_register_types (void ) -{ -type_register_static (&bcm2835_fb_info); -} -type_init (bcm2835_fb_register_types)
hw/display/bochs-display.c +1 -5
@@ -381,10 +381,6 @@ static const TypeInfo bochs_display_type_info = { { }, }, }; +TYPE_INFO (bochs_display_type_info) -static void bochs_display_register_types (void ) -{ -type_register_static (&bochs_display_type_info); -} -type_init (bochs_display_register_types)
hw/display/cg3.c +1 -5
@@ -385,10 +385,6 @@ static const TypeInfo cg3_info = { .instance_init = cg3_initfn, .class_init = cg3_class_init, }; +TYPE_INFO (cg3_info) -static void cg3_register_types (void ) -{ -type_register_static (&cg3_info); -} -type_init (cg3_register_types)
hw/display/cirrus_vga.c +1 -5
@@ -3028,10 +3028,6 @@ static const TypeInfo cirrus_vga_info = { { }, }, }; +TYPE_INFO (cirrus_vga_info) -static void cirrus_vga_register_types (void ) -{ -type_register_static (&cirrus_vga_info); -} -type_init (cirrus_vga_register_types)
hw/display/cirrus_vga_isa.c +1 -5
@@ -90,10 +90,6 @@ static const TypeInfo isa_cirrus_vga_info = { .instance_size = sizeof(ISACirrusVGAState), .class_init = isa_cirrus_vga_class_init, }; +TYPE_INFO (isa_cirrus_vga_info) -static void cirrus_vga_isa_register_types (void ) -{ -type_register_static (&isa_cirrus_vga_info); -} -type_init (cirrus_vga_isa_register_types)
hw/display/dpcd.c +1 -5
@@ -156,10 +156,6 @@ static const TypeInfo dpcd_info = { .class_init = dpcd_class_init, .instance_init = dpcd_init, }; +TYPE_INFO (dpcd_info) -static void dpcd_register_types (void ) -{ -type_register_static (&dpcd_info); -} -type_init (dpcd_register_types)
hw/display/exynos4210_fimd.c +1 -5
@@ -1961,10 +1961,6 @@ static const TypeInfo exynos4210_fimd_info = { .instance_init = exynos4210_fimd_init, .class_init = exynos4210_fimd_class_init, }; +TYPE_INFO (exynos4210_fimd_info) -static void exynos4210_fimd_register_types (void ) -{ -type_register_static (&exynos4210_fimd_info); -} -type_init (exynos4210_fimd_register_types)
hw/display/g364fb.c +1 -5
@@ -536,10 +536,6 @@ static const TypeInfo g364fb_sysbus_info = { .instance_size = sizeof(G364SysBusState), .class_init = g364fb_sysbus_class_init, }; +TYPE_INFO (g364fb_sysbus_info) -static void g364fb_register_types (void ) -{ -type_register_static (&g364fb_sysbus_info); -} -type_init (g364fb_register_types)
hw/display/i2c-ddc.c +1 -5
@@ -120,10 +120,6 @@ static TypeInfo i2c_ddc_info = { .instance_init = i2c_ddc_init, .class_init = i2c_ddc_class_init }; +TYPE_INFO (i2c_ddc_info) -static void ddc_register_devices (void ) -{ -type_register_static (&i2c_ddc_info); -} -type_init (ddc_register_devices);
hw/display/jazz_led.c +1 -5
@@ -310,10 +310,6 @@ static const TypeInfo jazz_led_info = { .instance_init = jazz_led_init, .class_init = jazz_led_class_init, }; +TYPE_INFO (jazz_led_info) -static void jazz_led_register (void ) -{ -type_register_static (&jazz_led_info); -} -type_init (jazz_led_register);
hw/display/macfb.c +2 -6
@@ -459,6 +459,7 @@ static TypeInfo macfb_sysbus_info = { .instance_size = sizeof(MacfbSysBusState), .class_init = macfb_sysbus_class_init, }; +TYPE_INFO (macfb_sysbus_info) static TypeInfo macfb_nubus_info = { .name =TYPE_NUBUS_MACFB ,
@@ -467,11 +468,6 @@ static TypeInfo macfb_nubus_info = { .class_init = macfb_nubus_class_init, .class_size = sizeof(MacfbNubusDeviceClass), }; +TYPE_INFO (macfb_nubus_info) -static void macfb_register_types (void ) -{ -type_register_static (&macfb_sysbus_info); -type_register_static (&macfb_nubus_info); -} -type_init (macfb_register_types)
hw/display/milkymist-tmu2.c +1 -5
@@ -495,13 +495,9 @@ static const TypeInfo milkymist_tmu2_info = { .instance_init = milkymist_tmu2_init, .class_init = milkymist_tmu2_class_init, }; +TYPE_INFO (milkymist_tmu2_info) -static void milkymist_tmu2_register_types (void ) -{
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.26.2
Part of the diff is not shown here. View the raw message.
PATCH v3 4/74 pl110: Rename pl110_version enum values
In reply to Eduardo HabkostThe PL110 enum value name will conflict with the PL110 type cast checker, when we replace the existing macro with an inline function. Add a VERSION_ prefix to all pl110_version enum values, to avoid conflicts.
---
Changes v2 -> v3: none
Changes v1 -> v2:
* Fixed typo on commit message
* Rename all enum values to VERSION_* (Philippe Mathieu-Daudé)
---
Cc: Peter Maydell <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- hw/display/pl110.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-)
hw/display/pl110.c +11 -11
@@ -42,9 +42,9 @@ enum pl110_bppmode/* The Versatile/PB uses a slightly modified PL110 controller. */ enum pl110_version { -PL110 , -PL110_VERSATILE , -PL111 +VERSION_PL110 , +VERSION_PL110_VERSATILE , +VERSION_PL111 };#define TYPE_PL110 "pl110"
@@ -189,7 +189,7 @@ static void pl110_update_display(void *opaque)else bpp_offset =24 ; -if ((s->version !=PL111 ) && (s->bpp ==BPP_16 )) { +if ((s->version !=VERSION_PL111 ) && (s->bpp ==BPP_16 )) {/* The PL110's native 16 bit mode is 5551; however * most boards with a PL110 implement an external * mux which allows bits to be reshuffled to give
@@ -372,12 +372,12 @@ static uint64_t pl110_read(void *opaque, hwaddr offset,case 5 :/* LCDLPBASE */ return s->lpbase;case 6 :/* LCDIMSC */ -if (s->version !=PL110 ) { +if (s->version !=VERSION_PL110 ) {return s->cr; }return s->int_mask;case 7 :/* LCDControl */ -if (s->version !=PL110 ) { +if (s->version !=VERSION_PL110 ) {return s->int_mask; }return s->cr;
@@ -437,7 +437,7 @@ static void pl110_write(void *opaque, hwaddr offset, s->lpbase = val;break ;case 6 :/* LCDIMSC */ -if (s->version !=PL110 ) { +if (s->version !=VERSION_PL110 ) { goto control; } imsc:
@@ -445,7 +445,7 @@ static void pl110_write(void *opaque, hwaddr offset,pl110_update (s);break ;case 7 :/* LCDControl */ -if (s->version !=PL110 ) { +if (s->version !=VERSION_PL110 ) { goto imsc; } control:
@@ -513,21 +513,21 @@ static void pl110_init(Object *obj) {PL110State *s =PL110 (obj); - s->version =PL110 ; + s->version =VERSION_PL110 ; }static void pl110_versatile_init (Object *obj) {PL110State *s =PL110 (obj); - s->version =PL110_VERSATILE ; + s->version =VERSION_PL110_VERSATILE ; }static void pl111_init (Object *obj) {PL110State *s =PL110 (obj); - s->version =PL111 ; + s->version =VERSION_PL111 ; }static void pl110_class_init (ObjectClass *klass,void *data)
Signature · 1 line
2.26.2
PATCH v3 10/74 aspeed_timer: Fix ASPEED_TIMER macro definition
In reply to Eduardo HabkostThe macro definition had an extra semicolon. This was never noticed because the macro was only being used where it didn't make a difference.
---
Changes v2 -> v3: none
Changes v1 -> v2: none
---
Cc: "Cédric Le Goater" <[email protected]>
Cc: Peter Maydell <[email protected]>
Cc: Andrew Jeffery <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- include/hw/timer/aspeed_timer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/timer/aspeed_timer.h +1 -1
@@ -26,7 +26,7 @@#include "hw/misc/aspeed_scu.h" #define ASPEED_TIMER (obj) \ - OBJECT_CHECK(AspeedTimerCtrlState, (obj), TYPE_ASPEED_TIMER); + OBJECT_CHECK(AspeedTimerCtrlState, (obj), TYPE_ASPEED_TIMER)#define TYPE_ASPEED_TIMER "aspeed.timer"#define TYPE_ASPEED_2400_TIMER TYPE_ASPEED_TIMER "-ast2400"#define TYPE_ASPEED_2500_TIMER TYPE_ASPEED_TIMER "-ast2500"
Signature · 1 line
2.26.2
PATCH v3 5/74 allwinner-h3: Rename memmap enum constants
In reply to Eduardo HabkostSome of the enum constant names conflict with the QOM type check macros (AW_H3_CCU, AW_H3_SYSCTRL). This needs to be addressed to allow us to transform the QOM type check macros into functions generated by OBJECT_DECLARE_TYPE().
Rename all the constants to AW_H3_DEV_*, to avoid conflicts.
---
Changes v2 -> v3: none
Changes v1 -> v2:
* Added more details to commit message
---
Cc: Beniamino Galvani <[email protected]>
Cc: Peter Maydell <[email protected]>
Cc: Niek Linnenbank <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- include/hw/arm/allwinner-h3.h | 62 ++++++++--------- hw/arm/allwinner-h3.c | 124 +++++++++++++++++----------------- hw/arm/orangepi.c | 6 +- 3 files changed, 96 insertions(+), 96 deletions(-)
include/hw/arm/allwinner-h3.h +31 -31
@@ -61,37 +61,37 @@* @see AwH3State */ enum { -AW_H3_SRAM_A1 , -AW_H3_SRAM_A2 , -AW_H3_SRAM_C , -AW_H3_SYSCTRL , -AW_H3_MMC0 , -AW_H3_SID , -AW_H3_EHCI0 , -AW_H3_OHCI0 , -AW_H3_EHCI1 , -AW_H3_OHCI1 , -AW_H3_EHCI2 , -AW_H3_OHCI2 , -AW_H3_EHCI3 , -AW_H3_OHCI3 , -AW_H3_CCU , -AW_H3_PIT , -AW_H3_UART0 , -AW_H3_UART1 , -AW_H3_UART2 , -AW_H3_UART3 , -AW_H3_EMAC , -AW_H3_DRAMCOM , -AW_H3_DRAMCTL , -AW_H3_DRAMPHY , -AW_H3_GIC_DIST , -AW_H3_GIC_CPU , -AW_H3_GIC_HYP , -AW_H3_GIC_VCPU , -AW_H3_RTC , -AW_H3_CPUCFG , -AW_H3_SDRAM +AW_H3_DEV_SRAM_A1 , +AW_H3_DEV_SRAM_A2 , +AW_H3_DEV_SRAM_C , +AW_H3_DEV_SYSCTRL , +AW_H3_DEV_MMC0 , +AW_H3_DEV_SID , +AW_H3_DEV_EHCI0 , +AW_H3_DEV_OHCI0 , +AW_H3_DEV_EHCI1 , +AW_H3_DEV_OHCI1 , +AW_H3_DEV_EHCI2 , +AW_H3_DEV_OHCI2 , +AW_H3_DEV_EHCI3 , +AW_H3_DEV_OHCI3 , +AW_H3_DEV_CCU , +AW_H3_DEV_PIT , +AW_H3_DEV_UART0 , +AW_H3_DEV_UART1 , +AW_H3_DEV_UART2 , +AW_H3_DEV_UART3 , +AW_H3_DEV_EMAC , +AW_H3_DEV_DRAMCOM , +AW_H3_DEV_DRAMCTL , +AW_H3_DEV_DRAMPHY , +AW_H3_DEV_GIC_DIST , +AW_H3_DEV_GIC_CPU , +AW_H3_DEV_GIC_HYP , +AW_H3_DEV_GIC_VCPU , +AW_H3_DEV_RTC , +AW_H3_DEV_CPUCFG , +AW_H3_DEV_SDRAM };/** Total number of CPU cores in the H3 SoC */
hw/arm/allwinner-h3.c +62 -62
218 lines not on this page · raw message
hw/arm/orangepi.c +3 -3
@@ -79,7 +79,7 @@ static void orangepi_init(MachineState *machine)object_property_set_int (OBJECT (&h3->emac),"phy-addr" ,1 , &error_abort);/* DRAMC */ -object_property_set_uint (OBJECT (h3),"ram-addr" , h3->memmap[AW_H3_SDRAM ], +object_property_set_uint (OBJECT (h3),"ram-addr" , h3->memmap[AW_H3_DEV_SDRAM ], &error_abort);object_property_set_int (OBJECT (h3),"ram-size" , machine->ram_size / MiB, &error_abort);
@@ -98,7 +98,7 @@ static void orangepi_init(MachineState *machine)qdev_realize_and_unref (carddev, bus, &error_fatal);/* SDRAM */ -memory_region_add_subregion (get_system_memory (), h3->memmap[AW_H3_SDRAM ], +memory_region_add_subregion (get_system_memory (), h3->memmap[AW_H3_DEV_SDRAM ], machine->ram);/* Load target kernel or start using BootROM */
@@ -106,7 +106,7 @@ static void orangepi_init(MachineState *machine)/* Use Boot ROM to copy data from SD card to SRAM */ allwinner_h3_bootrom_setup (h3, blk); } - orangepi_binfo.loader_start = h3->memmap[AW_H3_SDRAM ]; + orangepi_binfo.loader_start = h3->memmap[AW_H3_DEV_SDRAM ]; orangepi_binfo.ram_size = machine->ram_size;arm_load_kernel (ARM_CPU (first_cpu), machine, &orangepi_binfo); }
Signature · 1 line
2.26.2
PATCH v3 69/74 Use OBJECT_DECLARE_TYPE where possible
In reply to Eduardo HabkostReplace DECLARE_OBJ_CHECKERS with OBJECT_DECLARE_TYPE where the typedefs can be safely removed.
Generated running:
$ ./scripts/codeconverter/converter.py -i \ --pattern=DeclareObjCheckers $(git grep -l '' -- '*.[ch]')
---
Changes v2 -> v3:
* Removed hunk due to rebase conflict: include/hw/ppc/xive.h
* Reviewed-by line from Daniel was kept, as no additional hunks are introduced in this version
Changes v1 -> v2:
* Script re-run after typedefs and macros were moved, and now the patch also touches:
- TYPE_ARM_SSE
- TYPE_SD_BUS
---
Cc: "Marc-André Lureau" <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: "Daniel P. Berrangé" <[email protected]>
Cc: Peter Maydell <[email protected]>
Cc: Corey Minyard <[email protected]>
Cc: "Cédric Le Goater" <[email protected]>
Cc: David Gibson <[email protected]>
Cc: Cornelia Huck <[email protected]>
Cc: Thomas Huth <[email protected]>
Cc: Halil Pasic <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: "Philippe Mathieu-Daudé" <[email protected]>
Cc: Alistair Francis <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Laurent Vivier <[email protected]>
Cc: Amit Shah <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Anthony Perard <[email protected]>
Cc: Paul Durrant <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Fam Zheng <[email protected]>
Cc: "Gonglei (Arei)" <[email protected]>
Cc: Eduardo Habkost <[email protected]>
Cc: Igor Mammedov <[email protected]>
Cc: Stefan Berger <[email protected]>
Cc: Richard Henderson <[email protected]>
Cc: Michael Rolnik <[email protected]>
Cc: Sarah Harris <[email protected]>
Cc: "Edgar E. Iglesias" <[email protected]>
Cc: Michael Walle <[email protected]>
Cc: Aleksandar Markovic <[email protected]>
Cc: Aurelien Jarno <[email protected]>
Cc: Jiaxun Yang <[email protected]>
Cc: Aleksandar Rikalo <[email protected]>
Cc: Anthony Green <[email protected]>
Cc: Chris Wulff <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Stafford Horne <[email protected]>
Cc: Palmer Dabbelt <[email protected]>
Cc: Sagar Karandikar <[email protected]>
Cc: Bastian Koppelmann <[email protected]>
Cc: Yoshinori Sato <[email protected]>
Cc: Mark Cave-Ayland <[email protected]>
Cc: Artyom Tarasenko <[email protected]>
Cc: Guan Xuetao <[email protected]>
Cc: Max Filippov <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
--- hw/audio/intel-hda.h | 6 ++---- hw/display/virtio-vga.h | 6 ++---- include/authz/base.h | 6 ++---- include/authz/list.h | 6 ++---- include/authz/listfile.h | 6 ++---- include/authz/pamacct.h | 6 ++---- include/authz/simple.h | 6 ++---- include/crypto/secret_common.h | 6 ++---- include/crypto/secret_keyring.h | 6 ++---- include/hw/arm/armsse.h | 6 ++---- include/hw/hyperv/vmbus.h | 6 ++---- include/hw/i2c/i2c.h | 6 ++---- include/hw/i2c/smbus_slave.h | 6 ++---- include/hw/ipack/ipack.h | 6 ++---- include/hw/ipmi/ipmi.h | 6 ++---- include/hw/mem/pc-dimm.h | 6 ++---- include/hw/ppc/pnv.h | 6 ++---- include/hw/ppc/pnv_core.h | 6 ++---- include/hw/ppc/pnv_homer.h | 6 ++---- include/hw/ppc/pnv_occ.h | 6 ++---- include/hw/ppc/pnv_psi.h | 6 ++---- include/hw/ppc/pnv_xive.h | 6 ++---- include/hw/ppc/spapr_cpu_core.h | 6 ++---- include/hw/ppc/spapr_drc.h | 6 ++---- include/hw/ppc/spapr_vio.h | 6 ++---- include/hw/ppc/spapr_xive.h | 6 ++---- include/hw/ppc/xics.h | 6 ++---- include/hw/s390x/event-facility.h | 6 ++---- include/hw/s390x/s390_flic.h | 6 ++---- include/hw/s390x/sclp.h | 6 ++---- include/hw/sd/sd.h | 6 ++---- include/hw/ssi/ssi.h | 6 ++---- include/hw/sysbus.h | 6 ++---- include/hw/virtio/virtio-gpu.h | 6 ++---- include/hw/virtio/virtio-input.h | 6 ++---- include/hw/virtio/virtio-mem.h | 6 ++---- include/hw/virtio/virtio-pmem.h | 6 ++---- include/hw/virtio/virtio-serial.h | 6 ++---- include/hw/xen/xen-bus.h | 6 ++---- include/io/channel.h | 6 ++---- include/io/dns-resolver.h | 6 ++---- include/io/net-listener.h | 6 ++---- include/scsi/pr-manager.h | 6 ++---- include/sysemu/cryptodev.h | 6 ++---- include/sysemu/hostmem.h | 6 ++---- include/sysemu/rng.h | 6 ++---- include/sysemu/tpm_backend.h | 6 ++---- include/sysemu/vhost-user-backend.h | 6 ++---- target/alpha/cpu-qom.h | 6 ++---- target/arm/cpu-qom.h | 6 ++---- target/avr/cpu-qom.h | 6 ++---- target/cris/cpu-qom.h | 6 ++---- target/hppa/cpu-qom.h | 6 ++---- target/i386/cpu-qom.h | 6 ++---- target/lm32/cpu-qom.h | 6 ++---- target/m68k/cpu-qom.h | 6 ++---- target/microblaze/cpu-qom.h | 6 ++---- target/mips/cpu-qom.h | 6 ++---- target/moxie/cpu.h | 6 ++---- target/nios2/cpu.h | 6 ++---- target/openrisc/cpu.h | 6 ++---- target/ppc/cpu-qom.h | 6 ++---- target/riscv/cpu.h | 6 ++---- target/s390x/cpu-qom.h | 6 ++---- target/sh4/cpu-qom.h | 6 ++---- target/sparc/cpu-qom.h | 6 ++---- target/tilegx/cpu.h | 6 ++---- target/tricore/cpu-qom.h | 6 ++---- target/unicore32/cpu-qom.h | 6 ++---- target/xtensa/cpu-qom.h | 6 ++---- backends/dbus-vmstate.c | 6 ++---- ui/input-barrier.c | 6 ++---- ui/input-linux.c | 6 ++---- 73 files changed, 146 insertions(+), 292 deletions(-)
hw/audio/intel-hda.h +2 -4
@@ -8,10 +8,8 @@/* hda bus */ #define TYPE_HDA_CODEC_DEVICE "hda-codec" -typedef struct HDACodecDevice HDACodecDevice ; -typedef struct HDACodecDeviceClass HDACodecDeviceClass ; -DECLARE_OBJ_CHECKERS (HDACodecDevice, HDACodecDeviceClass, - HDA_CODEC_DEVICE, TYPE_HDA_CODEC_DEVICE) +OBJECT_DECLARE_TYPE (HDACodecDevice, HDACodecDeviceClass, + hda_codec_device, HDA_CODEC_DEVICE)#define TYPE_HDA_BUS "HDA"typedef struct HDACodecBus HDACodecBus ;
hw/display/virtio-vga.h +2 -4
@@ -9,10 +9,8 @@* virtio-vga-base: This extends VirtioPCIProxy. */ #define TYPE_VIRTIO_VGA_BASE "virtio-vga-base" -typedef struct VirtIOVGABase VirtIOVGABase ; -typedef struct VirtIOVGABaseClass VirtIOVGABaseClass ; -DECLARE_OBJ_CHECKERS (VirtIOVGABase, VirtIOVGABaseClass, - VIRTIO_VGA_BASE, TYPE_VIRTIO_VGA_BASE) +OBJECT_DECLARE_TYPE (VirtIOVGABase, VirtIOVGABaseClass, + virtio_vga_base, VIRTIO_VGA_BASE)struct VirtIOVGABase {VirtIOPCIProxy parent_obj;
include/authz/base.h +2 -4
@@ -27,10 +27,8 @@#define TYPE_QAUTHZ "authz" -typedef struct QAuthZ QAuthZ ; -typedef struct QAuthZClass QAuthZClass ; -DECLARE_OBJ_CHECKERS (QAuthZ, QAuthZClass, -QAUTHZ ,TYPE_QAUTHZ ) +OBJECT_DECLARE_TYPE (QAuthZ, QAuthZClass, + qauthz,QAUTHZ )/**
include/authz/list.h +2 -4
@@ -27,10 +27,8 @@#define TYPE_QAUTHZ_LIST "authz-list" -typedef struct QAuthZList QAuthZList ; -typedef struct QAuthZListClass QAuthZListClass ; -DECLARE_OBJ_CHECKERS (QAuthZList, QAuthZListClass, -QAUTHZ_LIST ,TYPE_QAUTHZ_LIST ) +OBJECT_DECLARE_TYPE (QAuthZList, QAuthZListClass, + qauthz_list,QAUTHZ_LIST )
include/authz/listfile.h +2 -4
@@ -27,10 +27,8 @@#define TYPE_QAUTHZ_LIST_FILE "authz-list-file" -typedef struct QAuthZListFile QAuthZListFile ; -typedef struct QAuthZListFileClass QAuthZListFileClass ; -DECLARE_OBJ_CHECKERS (QAuthZListFile, QAuthZListFileClass, -QAUTHZ_LIST_FILE ,TYPE_QAUTHZ_LIST_FILE ) +OBJECT_DECLARE_TYPE (QAuthZListFile, QAuthZListFileClass, + qauthz_list_file,QAUTHZ_LIST_FILE )
include/authz/pamacct.h +2 -4
@@ -27,10 +27,8 @@#define TYPE_QAUTHZ_PAM "authz-pam" -typedef struct QAuthZPAM QAuthZPAM ; -typedef struct QAuthZPAMClass QAuthZPAMClass ; -DECLARE_OBJ_CHECKERS (QAuthZPAM, QAuthZPAMClass, -QAUTHZ_PAM ,TYPE_QAUTHZ_PAM ) +OBJECT_DECLARE_TYPE (QAuthZPAM, QAuthZPAMClass, + qauthz_pam,QAUTHZ_PAM )
include/authz/simple.h +2 -4
@@ -26,10 +26,8 @@#define TYPE_QAUTHZ_SIMPLE "authz-simple" -typedef struct QAuthZSimple QAuthZSimple ; -typedef struct QAuthZSimpleClass QAuthZSimpleClass ; -DECLARE_OBJ_CHECKERS (QAuthZSimple, QAuthZSimpleClass, -QAUTHZ_SIMPLE ,TYPE_QAUTHZ_SIMPLE ) +OBJECT_DECLARE_TYPE (QAuthZSimple, QAuthZSimpleClass, + qauthz_simple,QAUTHZ_SIMPLE )
include/crypto/secret_common.h +2 -4
@@ -25,10 +25,8 @@#include "qom/object.h" #define TYPE_QCRYPTO_SECRET_COMMON "secret_common" -typedef struct QCryptoSecretCommon QCryptoSecretCommon ; -typedef struct QCryptoSecretCommonClass QCryptoSecretCommonClass ; -DECLARE_OBJ_CHECKERS (QCryptoSecretCommon, QCryptoSecretCommonClass, - QCRYPTO_SECRET_COMMON, TYPE_QCRYPTO_SECRET_COMMON) +OBJECT_DECLARE_TYPE (QCryptoSecretCommon, QCryptoSecretCommonClass, + qcrypto_secret_common, QCRYPTO_SECRET_COMMON)struct QCryptoSecretCommon {
include/crypto/secret_keyring.h +2 -4
@@ -26,10 +26,8 @@#include "crypto/secret_common.h" #define TYPE_QCRYPTO_SECRET_KEYRING "secret_keyring" -typedef struct QCryptoSecretKeyring QCryptoSecretKeyring ; -typedef struct QCryptoSecretKeyringClass QCryptoSecretKeyringClass ; -DECLARE_OBJ_CHECKERS (QCryptoSecretKeyring, QCryptoSecretKeyringClass, - QCRYPTO_SECRET_KEYRING, TYPE_QCRYPTO_SECRET_KEYRING) +OBJECT_DECLARE_TYPE (QCryptoSecretKeyring, QCryptoSecretKeyringClass, + qcrypto_secret_keyring, QCRYPTO_SECRET_KEYRING)struct QCryptoSecretKeyring {
include/hw/arm/armsse.h +2 -4
@@ -108,10 +108,8 @@#include "qom/object.h" #define TYPE_ARM_SSE "arm-sse" -typedef struct ARMSSE ARMSSE ; -typedef struct ARMSSEClass ARMSSEClass ; -DECLARE_OBJ_CHECKERS (ARMSSE , ARMSSEClass, -ARM_SSE ,TYPE_ARM_SSE ) +OBJECT_DECLARE_TYPE (ARMSSE , ARMSSEClass, + arm_sse,ARM_SSE )/* * These type names are for specific IoTKit subsystems; other than
include/hw/hyperv/vmbus.h +2 -4
@@ -20,10 +20,8 @@#define TYPE_VMBUS_DEVICE "vmbus-dev" -typedef struct VMBusDevice VMBusDevice ; -typedef struct VMBusDeviceClass VMBusDeviceClass ; -DECLARE_OBJ_CHECKERS (VMBusDevice, VMBusDeviceClass, - VMBUS_DEVICE, TYPE_VMBUS_DEVICE) +OBJECT_DECLARE_TYPE (VMBusDevice, VMBusDeviceClass, + vmbus_device, VMBUS_DEVICE)#define TYPE_VMBUS "vmbus"typedef struct VMBus VMBus ;
include/hw/i2c/i2c.h +2 -4
@@ -16,12 +16,10 @@ enum i2c_event {I2C_NACK /* Masker NACKed a receive byte. */ }; -typedef struct I2CSlave I2CSlave ;#define TYPE_I2C_SLAVE "i2c-slave" -typedef struct I2CSlaveClass I2CSlaveClass ; -DECLARE_OBJ_CHECKERS (I2CSlave, I2CSlaveClass, - I2C_SLAVE, TYPE_I2C_SLAVE) +OBJECT_DECLARE_TYPE (I2CSlave, I2CSlaveClass, + i2c_slave, I2C_SLAVE)struct I2CSlaveClass {DeviceClass parent_class;
include/hw/i2c/smbus_slave.h +2 -4
@@ -29,10 +29,8 @@#include "qom/object.h" #define TYPE_SMBUS_DEVICE "smbus-device" -typedef struct SMBusDevice SMBusDevice ; -typedef struct SMBusDeviceClass SMBusDeviceClass ; -DECLARE_OBJ_CHECKERS (SMBusDevice, SMBusDeviceClass, - SMBUS_DEVICE, TYPE_SMBUS_DEVICE) +OBJECT_DECLARE_TYPE (SMBusDevice, SMBusDeviceClass, + smbus_device, SMBUS_DEVICE)struct SMBusDeviceClass {
include/hw/ipack/ipack.h +2 -4
@@ -30,12 +30,10 @@ struct IPackBus {qemu_irq_handler set_irq; }; -typedef struct IPackDevice IPackDevice ; -typedef struct IPackDeviceClass IPackDeviceClass ;#define TYPE_IPACK_DEVICE "ipack-device" -DECLARE_OBJ_CHECKERS (IPackDevice, IPackDeviceClass, - IPACK_DEVICE, TYPE_IPACK_DEVICE) +OBJECT_DECLARE_TYPE (IPackDevice, IPackDeviceClass, + ipack_device, IPACK_DEVICE)struct IPackDeviceClass {/*< private >*/
include/hw/ipmi/ipmi.h +2 -4
@@ -175,10 +175,8 @@ struct IPMIInterfaceClass {* Define a BMC simulator (or perhaps a connection to a real BMC) */ #define TYPE_IPMI_BMC "ipmi-bmc" -typedef struct IPMIBmc IPMIBmc ; -typedef struct IPMIBmcClass IPMIBmcClass ; -DECLARE_OBJ_CHECKERS (IPMIBmc, IPMIBmcClass, - IPMI_BMC, TYPE_IPMI_BMC) +OBJECT_DECLARE_TYPE (IPMIBmc, IPMIBmcClass, + ipmi_bmc, IPMI_BMC)struct IPMIBmc {DeviceState parent;
include/hw/mem/pc-dimm.h +2 -4
@@ -21,10 +21,8 @@#include "qom/object.h" #define TYPE_PC_DIMM "pc-dimm" -typedef struct PCDIMMDevice PCDIMMDevice ; -typedef struct PCDIMMDeviceClass PCDIMMDeviceClass ; -DECLARE_OBJ_CHECKERS (PCDIMMDevice, PCDIMMDeviceClass, - PC_DIMM, TYPE_PC_DIMM) +OBJECT_DECLARE_TYPE (PCDIMMDevice, PCDIMMDeviceClass, + pc_dimm, PC_DIMM)#define PC_DIMM_ADDR_PROP "addr"#define PC_DIMM_SLOT_PROP "slot"
include/hw/ppc/pnv.h +2 -4
@@ -35,10 +35,8 @@#include "qom/object.h" #define TYPE_PNV_CHIP "pnv-chip" -typedef struct PnvChip PnvChip ; -typedef struct PnvChipClass PnvChipClass ; -DECLARE_OBJ_CHECKERS (PnvChip, PnvChipClass, - PNV_CHIP, TYPE_PNV_CHIP) +OBJECT_DECLARE_TYPE (PnvChip, PnvChipClass, + pnv_chip, PNV_CHIP)struct PnvChip {/*< private >*/
include/hw/ppc/pnv_core.h +2 -4
@@ -25,10 +25,8 @@#include "qom/object.h" #define TYPE_PNV_CORE "powernv-cpu-core" -typedef struct PnvCore PnvCore ; -typedef struct PnvCoreClass PnvCoreClass ; -DECLARE_OBJ_CHECKERS (PnvCore, PnvCoreClass, - PNV_CORE, TYPE_PNV_CORE) +OBJECT_DECLARE_TYPE (PnvCore, PnvCoreClass, + pnv_core, PNV_CORE)typedef struct PnvChip PnvChip ;
include/hw/ppc/pnv_homer.h +2 -4
@@ -24,10 +24,8 @@#include "qom/object.h" #define TYPE_PNV_HOMER "pnv-homer" -typedef struct PnvHomer PnvHomer ; -typedef struct PnvHomerClass PnvHomerClass ; -DECLARE_OBJ_CHECKERS (PnvHomer, PnvHomerClass, - PNV_HOMER, TYPE_PNV_HOMER) +OBJECT_DECLARE_TYPE (PnvHomer, PnvHomerClass, + pnv_homer, PNV_HOMER)#define TYPE_PNV8_HOMER TYPE_PNV_HOMER "-POWER8"DECLARE_INSTANCE_CHECKER (PnvHomer,PNV8_HOMER ,TYPE_PNV8_HOMER )
include/hw/ppc/pnv_occ.h +2 -4
@@ -24,10 +24,8 @@#include "qom/object.h" #define TYPE_PNV_OCC "pnv-occ" -typedef struct PnvOCC PnvOCC ; -typedef struct PnvOCCClass PnvOCCClass ; -DECLARE_OBJ_CHECKERS (PnvOCC, PnvOCCClass, - PNV_OCC, TYPE_PNV_OCC) +OBJECT_DECLARE_TYPE (PnvOCC, PnvOCCClass, + pnv_occ, PNV_OCC)#define TYPE_PNV8_OCC TYPE_PNV_OCC "-POWER8"DECLARE_INSTANCE_CHECKER (PnvOCC,PNV8_OCC ,TYPE_PNV8_OCC )
include/hw/ppc/pnv_psi.h +2 -4
@@ -26,10 +26,8 @@#include "qom/object.h" #define TYPE_PNV_PSI "pnv-psi" -typedef struct PnvPsi PnvPsi ; -typedef struct PnvPsiClass PnvPsiClass ; -DECLARE_OBJ_CHECKERS (PnvPsi, PnvPsiClass, - PNV_PSI, TYPE_PNV_PSI) +OBJECT_DECLARE_TYPE (PnvPsi, PnvPsiClass, + pnv_psi, PNV_PSI)#define PSIHB_XSCOM_MAX 0x20
include/hw/ppc/pnv_xive.h +2 -4
@@ -16,10 +16,8 @@struct PnvChip ;#define TYPE_PNV_XIVE "pnv-xive" -typedef struct PnvXive PnvXive ; -typedef struct PnvXiveClass PnvXiveClass ; -DECLARE_OBJ_CHECKERS (PnvXive, PnvXiveClass, - PNV_XIVE, TYPE_PNV_XIVE) +OBJECT_DECLARE_TYPE (PnvXive, PnvXiveClass, + pnv_xive, PNV_XIVE)#define XIVE_BLOCK_MAX 16
include/hw/ppc/spapr_cpu_core.h +2 -4
@@ -16,10 +16,8 @@#include "qom/object.h" #define TYPE_SPAPR_CPU_CORE "spapr-cpu-core" -typedef struct SpaprCpuCore SpaprCpuCore ; -typedef struct SpaprCpuCoreClass SpaprCpuCoreClass ; -DECLARE_OBJ_CHECKERS (SpaprCpuCore, SpaprCpuCoreClass, - SPAPR_CPU_CORE, TYPE_SPAPR_CPU_CORE) +OBJECT_DECLARE_TYPE (SpaprCpuCore, SpaprCpuCoreClass, + spapr_cpu_core, SPAPR_CPU_CORE)#define SPAPR_CPU_CORE_TYPE_NAME (model) model "-" TYPE_SPAPR_CPU_CORE
include/hw/ppc/spapr_drc.h +2 -4
@@ -20,10 +20,8 @@#include "qapi/error.h" #define TYPE_SPAPR_DR_CONNECTOR "spapr-dr-connector" -typedef struct SpaprDrc SpaprDrc ; -typedef struct SpaprDrcClass SpaprDrcClass ; -DECLARE_OBJ_CHECKERS (SpaprDrc, SpaprDrcClass, - SPAPR_DR_CONNECTOR, TYPE_SPAPR_DR_CONNECTOR) +OBJECT_DECLARE_TYPE (SpaprDrc, SpaprDrcClass, + spapr_dr_connector, SPAPR_DR_CONNECTOR)#define TYPE_SPAPR_DRC_PHYSICAL "spapr-drc-physical"typedef struct SpaprDrcPhysical SpaprDrcPhysical ;
include/hw/ppc/spapr_vio.h +2 -4
@@ -28,10 +28,8 @@#include "qom/object.h" #define TYPE_VIO_SPAPR_DEVICE "vio-spapr-device" -typedef struct SpaprVioDevice SpaprVioDevice ; -typedef struct SpaprVioDeviceClass SpaprVioDeviceClass ; -DECLARE_OBJ_CHECKERS (SpaprVioDevice, SpaprVioDeviceClass, - VIO_SPAPR_DEVICE, TYPE_VIO_SPAPR_DEVICE) +OBJECT_DECLARE_TYPE (SpaprVioDevice, SpaprVioDeviceClass, + vio_spapr_device, VIO_SPAPR_DEVICE)#define TYPE_SPAPR_VIO_BUS "spapr-vio-bus"typedef struct SpaprVioBus SpaprVioBus ;
include/hw/ppc/spapr_xive.h +2 -4
@@ -15,10 +15,8 @@#include "qom/object.h" #define TYPE_SPAPR_XIVE "spapr-xive" -typedef struct SpaprXive SpaprXive ; -typedef struct SpaprXiveClass SpaprXiveClass ; -DECLARE_OBJ_CHECKERS (SpaprXive, SpaprXiveClass, - SPAPR_XIVE, TYPE_SPAPR_XIVE) +OBJECT_DECLARE_TYPE (SpaprXive, SpaprXiveClass, + spapr_xive, SPAPR_XIVE)struct SpaprXive {XiveRouter parent;
include/hw/ppc/xics.h +2 -4
@@ -41,8 +41,6 @@* (the kernel implementation supports more but we don't exploit * that yet) */ -typedef struct ICPStateClass ICPStateClass ; -typedef struct ICPState ICPState ;typedef struct PnvICPState PnvICPState ;typedef struct ICSStateClass ICSStateClass ;typedef struct ICSState ICSState ;
@@ -50,8 +48,8 @@ typedef struct ICSIRQState ICSIRQState;typedef struct XICSFabric XICSFabric ;#define TYPE_ICP "icp" -DECLARE_OBJ_CHECKERS (ICPState, ICPStateClass, - ICP, TYPE_ICP) +OBJECT_DECLARE_TYPE (ICPState, ICPStateClass, + icp, ICP)#define TYPE_PNV_ICP "pnv-icp" DECLARE_INSTANCE_CHECKER(PnvICPState, PNV_ICP,
include/hw/s390x/event-facility.h +2 -4
@@ -42,10 +42,8 @@#define SCLP_SELECTIVE_READ 0x01#define TYPE_SCLP_EVENT "s390-sclp-event-type" -typedef struct SCLPEvent SCLPEvent ; -typedef struct SCLPEventClass SCLPEventClass ; -DECLARE_OBJ_CHECKERS (SCLPEvent, SCLPEventClass, - SCLP_EVENT, TYPE_SCLP_EVENT) +OBJECT_DECLARE_TYPE (SCLPEvent, SCLPEventClass, + sclp_event, SCLP_EVENT)#define TYPE_SCLP_CPU_HOTPLUG "sclp-cpu-hotplug"#define TYPE_SCLP_QUIESCE "sclpquiesce"
include/hw/s390x/s390_flic.h +2 -4
@@ -39,10 +39,8 @@ extern const VMStateDescription vmstate_adapter_routes; VMSTATE_STRUCT(_f, _s, 1, vmstate_adapter_routes, AdapterRoutes)#define TYPE_S390_FLIC_COMMON "s390-flic" -typedef struct S390FLICState S390FLICState ; -typedef struct S390FLICStateClass S390FLICStateClass ; -DECLARE_OBJ_CHECKERS (S390FLICState, S390FLICStateClass, - S390_FLIC_COMMON, TYPE_S390_FLIC_COMMON) +OBJECT_DECLARE_TYPE (S390FLICState, S390FLICStateClass, + s390_flic_common, S390_FLIC_COMMON)struct S390FLICState {SysBusDevice parent_obj;
include/hw/s390x/sclp.h +2 -4
@@ -182,10 +182,8 @@ typedef struct SCCB { }QEMU_PACKED SCCB ;#define TYPE_SCLP "sclp" -typedef struct SCLPDevice SCLPDevice ; -typedef struct SCLPDeviceClass SCLPDeviceClass ; -DECLARE_OBJ_CHECKERS (SCLPDevice, SCLPDeviceClass, - SCLP, TYPE_SCLP) +OBJECT_DECLARE_TYPE (SCLPDevice, SCLPDeviceClass, + sclp, SCLP)struct SCLPEventFacility ;
include/hw/sd/sd.h +2 -4
@@ -90,7 +90,6 @@ typedef struct { } SDRequest;typedef struct SDState SDState ; -typedef struct SDBus SDBus ;#define TYPE_SD_CARD "sd-card"typedef struct SDCardClass SDCardClass ;
@@ -130,9 +129,8 @@ struct SDCardClass { };#define TYPE_SD_BUS "sd-bus" -typedef struct SDBusClass SDBusClass ; -DECLARE_OBJ_CHECKERS (SDBus, SDBusClass, - SD_BUS, TYPE_SD_BUS) +OBJECT_DECLARE_TYPE (SDBus, SDBusClass, + sd_bus, SD_BUS)struct SDBus {BusState qbus;
include/hw/ssi/ssi.h +2 -4
@@ -14,13 +14,11 @@#include "hw/qdev-core.h" #include "qom/object.h" -typedef struct SSISlave SSISlave ; -typedef struct SSISlaveClass SSISlaveClass ;typedef enum SSICSMode SSICSMode ;#define TYPE_SSI_SLAVE "ssi-slave" -DECLARE_OBJ_CHECKERS (SSISlave, SSISlaveClass, - SSI_SLAVE, TYPE_SSI_SLAVE) +OBJECT_DECLARE_TYPE (SSISlave, SSISlaveClass, + ssi_slave, SSI_SLAVE)#define SSI_GPIO_CS "ssi-gpio-cs"
include/hw/sysbus.h +2 -4
@@ -14,12 +14,10 @@DECLARE_INSTANCE_CHECKER (BusState,SYSTEM_BUS , TYPE_SYSTEM_BUS) -typedef struct SysBusDevice SysBusDevice ;#define TYPE_SYS_BUS_DEVICE "sys-bus-device" -typedef struct SysBusDeviceClass SysBusDeviceClass ; -DECLARE_OBJ_CHECKERS (SysBusDevice, SysBusDeviceClass, -SYS_BUS_DEVICE ,TYPE_SYS_BUS_DEVICE ) +OBJECT_DECLARE_TYPE (SysBusDevice, SysBusDeviceClass, + sys_bus_device,SYS_BUS_DEVICE )/** * SysBusDeviceClass:
include/hw/virtio/virtio-gpu.h +2 -4
@@ -25,10 +25,8 @@#include "qom/object.h" #define TYPE_VIRTIO_GPU_BASE "virtio-gpu-base" -typedef struct VirtIOGPUBase VirtIOGPUBase ; -typedef struct VirtIOGPUBaseClass VirtIOGPUBaseClass ; -DECLARE_OBJ_CHECKERS (VirtIOGPUBase, VirtIOGPUBaseClass, - VIRTIO_GPU_BASE, TYPE_VIRTIO_GPU_BASE) +OBJECT_DECLARE_TYPE (VirtIOGPUBase, VirtIOGPUBaseClass, + virtio_gpu_base, VIRTIO_GPU_BASE)#define TYPE_VIRTIO_GPU "virtio-gpu-device"typedef struct VirtIOGPU VirtIOGPU ;
include/hw/virtio/virtio-input.h +2 -4
@@ -19,10 +19,8 @@ typedef struct virtio_input_event virtio_input_event;/* qemu internals */ #define TYPE_VIRTIO_INPUT "virtio-input-device" -typedef struct VirtIOInput VirtIOInput ; -typedef struct VirtIOInputClass VirtIOInputClass ; -DECLARE_OBJ_CHECKERS (VirtIOInput, VirtIOInputClass, - VIRTIO_INPUT, TYPE_VIRTIO_INPUT) +OBJECT_DECLARE_TYPE (VirtIOInput, VirtIOInputClass, + virtio_input, VIRTIO_INPUT)#define VIRTIO_INPUT_GET_PARENT_CLASS (obj) \ OBJECT_GET_PARENT_CLASS(obj, TYPE_VIRTIO_INPUT)
include/hw/virtio/virtio-mem.h +2 -4
@@ -21,10 +21,8 @@#define TYPE_VIRTIO_MEM "virtio-mem" -typedef struct VirtIOMEM VirtIOMEM ; -typedef struct VirtIOMEMClass VirtIOMEMClass ; -DECLARE_OBJ_CHECKERS (VirtIOMEM, VirtIOMEMClass, - VIRTIO_MEM, TYPE_VIRTIO_MEM) +OBJECT_DECLARE_TYPE (VirtIOMEM, VirtIOMEMClass, + virtio_mem, VIRTIO_MEM)#define VIRTIO_MEM_MEMDEV_PROP "memdev"#define VIRTIO_MEM_NODE_PROP "node"
include/hw/virtio/virtio-pmem.h +2 -4
@@ -20,10 +20,8 @@#define TYPE_VIRTIO_PMEM "virtio-pmem" -typedef struct VirtIOPMEM VirtIOPMEM ; -typedef struct VirtIOPMEMClass VirtIOPMEMClass ; -DECLARE_OBJ_CHECKERS (VirtIOPMEM, VirtIOPMEMClass, - VIRTIO_PMEM, TYPE_VIRTIO_PMEM) +OBJECT_DECLARE_TYPE (VirtIOPMEM, VirtIOPMEMClass, + virtio_pmem, VIRTIO_PMEM)#define VIRTIO_PMEM_ADDR_PROP "memaddr"#define VIRTIO_PMEM_MEMDEV_PROP "memdev"
include/hw/virtio/virtio-serial.h +2 -4
@@ -26,10 +26,8 @@ struct virtio_serial_conf { };#define TYPE_VIRTIO_SERIAL_PORT "virtio-serial-port" -typedef struct VirtIOSerialPort VirtIOSerialPort ; -typedef struct VirtIOSerialPortClass VirtIOSerialPortClass ; -DECLARE_OBJ_CHECKERS (VirtIOSerialPort, VirtIOSerialPortClass, - VIRTIO_SERIAL_PORT, TYPE_VIRTIO_SERIAL_PORT) +OBJECT_DECLARE_TYPE (VirtIOSerialPort, VirtIOSerialPortClass, + virtio_serial_port, VIRTIO_SERIAL_PORT)typedef struct VirtIOSerial VirtIOSerial ;
include/hw/xen/xen-bus.h +2 -4
@@ -71,17 +71,15 @@ struct XenBus {XenWatch *backend_watch; QLIST_HEAD(, XenDevice) inactive_devices; }; -typedef struct XenBus XenBus ;struct XenBusClass {/*< private >*/ BusClass parent_class; }; -typedef struct XenBusClass XenBusClass ;#define TYPE_XEN_BUS "xen-bus" -DECLARE_OBJ_CHECKERS (XenBus, XenBusClass, - XEN_BUS, TYPE_XEN_BUS) +OBJECT_DECLARE_TYPE (XenBus, XenBusClass, + xen_bus, XEN_BUS)void xen_bus_init (void );
include/io/channel.h +2 -4
@@ -26,10 +26,8 @@#include "block/aio.h" #define TYPE_QIO_CHANNEL "qio-channel" -typedef struct QIOChannel QIOChannel ; -typedef struct QIOChannelClass QIOChannelClass ; -DECLARE_OBJ_CHECKERS (QIOChannel, QIOChannelClass, - QIO_CHANNEL, TYPE_QIO_CHANNEL) +OBJECT_DECLARE_TYPE (QIOChannel, QIOChannelClass, + qio_channel, QIO_CHANNEL)#define QIO_CHANNEL_ERR_BLOCK -2
include/io/dns-resolver.h +2 -4
@@ -26,10 +26,8 @@#include "io/task.h" #define TYPE_QIO_DNS_RESOLVER "qio-dns-resolver" -typedef struct QIODNSResolver QIODNSResolver ; -typedef struct QIODNSResolverClass QIODNSResolverClass ; -DECLARE_OBJ_CHECKERS (QIODNSResolver, QIODNSResolverClass, -QIO_DNS_RESOLVER ,TYPE_QIO_DNS_RESOLVER ) +OBJECT_DECLARE_TYPE (QIODNSResolver, QIODNSResolverClass, + qio_dns_resolver,QIO_DNS_RESOLVER )/**
include/io/net-listener.h +2 -4
@@ -25,10 +25,8 @@#include "qom/object.h" #define TYPE_QIO_NET_LISTENER "qio-net-listener" -typedef struct QIONetListener QIONetListener ; -typedef struct QIONetListenerClass QIONetListenerClass ; -DECLARE_OBJ_CHECKERS (QIONetListener, QIONetListenerClass, - QIO_NET_LISTENER, TYPE_QIO_NET_LISTENER) +OBJECT_DECLARE_TYPE (QIONetListener, QIONetListenerClass, + qio_net_listener, QIO_NET_LISTENER) typedef void (*QIONetListenerClientFunc)(QIONetListener *listener,
include/scsi/pr-manager.h +2 -4
@@ -9,10 +9,8 @@#define TYPE_PR_MANAGER "pr-manager" -typedef struct PRManager PRManager ; -typedef struct PRManagerClass PRManagerClass ; -DECLARE_OBJ_CHECKERS (PRManager, PRManagerClass, - PR_MANAGER, TYPE_PR_MANAGER) +OBJECT_DECLARE_TYPE (PRManager, PRManagerClass, + pr_manager, PR_MANAGER)struct sg_io_hdr ;
include/sysemu/cryptodev.h +2 -4
@@ -37,10 +37,8 @@#define TYPE_CRYPTODEV_BACKEND "cryptodev-backend" -typedef struct CryptoDevBackend CryptoDevBackend ; -typedef struct CryptoDevBackendClass CryptoDevBackendClass ; -DECLARE_OBJ_CHECKERS (CryptoDevBackend, CryptoDevBackendClass, - CRYPTODEV_BACKEND, TYPE_CRYPTODEV_BACKEND) +OBJECT_DECLARE_TYPE (CryptoDevBackend, CryptoDevBackendClass, + cryptodev_backend, CRYPTODEV_BACKEND)#define MAX_CRYPTO_QUEUE_NUM 64
include/sysemu/hostmem.h +2 -4
@@ -20,10 +20,8 @@#include "qemu/bitmap.h" #define TYPE_MEMORY_BACKEND "memory-backend" -typedef struct HostMemoryBackend HostMemoryBackend ; -typedef struct HostMemoryBackendClass HostMemoryBackendClass ; -DECLARE_OBJ_CHECKERS (HostMemoryBackend, HostMemoryBackendClass, -MEMORY_BACKEND ,TYPE_MEMORY_BACKEND ) +OBJECT_DECLARE_TYPE (HostMemoryBackend, HostMemoryBackendClass, + memory_backend,MEMORY_BACKEND )/* hostmem-ram.c */ /**
include/sysemu/rng.h +2 -4
@@ -17,10 +17,8 @@#include "qom/object.h" #define TYPE_RNG_BACKEND "rng-backend" -typedef struct RngBackend RngBackend ; -typedef struct RngBackendClass RngBackendClass ; -DECLARE_OBJ_CHECKERS (RngBackend, RngBackendClass, - RNG_BACKEND, TYPE_RNG_BACKEND) +OBJECT_DECLARE_TYPE (RngBackend, RngBackendClass, + rng_backend, RNG_BACKEND)#define TYPE_RNG_BUILTIN "rng-builtin"
include/sysemu/tpm_backend.h +2 -4
@@ -19,10 +19,8 @@#include "qapi/error.h" #define TYPE_TPM_BACKEND "tpm-backend" -typedef struct TPMBackend TPMBackend ; -typedef struct TPMBackendClass TPMBackendClass ; -DECLARE_OBJ_CHECKERS (TPMBackend, TPMBackendClass, - TPM_BACKEND, TYPE_TPM_BACKEND) +OBJECT_DECLARE_TYPE (TPMBackend, TPMBackendClass, + tpm_backend, TPM_BACKEND) typedef struct TPMBackendCmd {
include/sysemu/vhost-user-backend.h +2 -4
@@ -22,10 +22,8 @@#include "io/channel.h" #define TYPE_VHOST_USER_BACKEND "vhost-user-backend" -typedef struct VhostUserBackend VhostUserBackend ; -typedef struct VhostUserBackendClass VhostUserBackendClass ; -DECLARE_OBJ_CHECKERS (VhostUserBackend, VhostUserBackendClass, - VHOST_USER_BACKEND, TYPE_VHOST_USER_BACKEND) +OBJECT_DECLARE_TYPE (VhostUserBackend, VhostUserBackendClass, + vhost_user_backend, VHOST_USER_BACKEND)struct VhostUserBackendClass {
target/alpha/cpu-qom.h +2 -4
@@ -25,10 +25,8 @@#define TYPE_ALPHA_CPU "alpha-cpu" -typedef struct AlphaCPU AlphaCPU ; -typedef struct AlphaCPUClass AlphaCPUClass ; -DECLARE_OBJ_CHECKERS (AlphaCPU, AlphaCPUClass, -ALPHA_CPU ,TYPE_ALPHA_CPU ) +OBJECT_DECLARE_TYPE (AlphaCPU, AlphaCPUClass, + alpha_cpu,ALPHA_CPU )/** * AlphaCPUClass:
target/arm/cpu-qom.h +2 -4
@@ -27,10 +27,8 @@ struct arm_boot_info;#define TYPE_ARM_CPU "arm-cpu" -typedef struct ARMCPU ARMCPU ; -typedef struct ARMCPUClass ARMCPUClass ; -DECLARE_OBJ_CHECKERS (ARMCPU , ARMCPUClass, - ARM_CPU, TYPE_ARM_CPU) +OBJECT_DECLARE_TYPE (ARMCPU , ARMCPUClass, + arm_cpu, ARM_CPU)#define TYPE_ARM_MAX_CPU "max-" TYPE_ARM_CPU
target/avr/cpu-qom.h +2 -4
@@ -26,10 +26,8 @@#define TYPE_AVR_CPU "avr-cpu" -typedef struct AVRCPU AVRCPU ; -typedef struct AVRCPUClass AVRCPUClass ; -DECLARE_OBJ_CHECKERS (AVRCPU , AVRCPUClass, -AVR_CPU ,TYPE_AVR_CPU ) +OBJECT_DECLARE_TYPE (AVRCPU , AVRCPUClass, + avr_cpu,AVR_CPU )/** * AVRCPUClass:
target/cris/cpu-qom.h +2 -4
@@ -25,10 +25,8 @@#define TYPE_CRIS_CPU "cris-cpu" -typedef struct CRISCPU CRISCPU ; -typedef struct CRISCPUClass CRISCPUClass ; -DECLARE_OBJ_CHECKERS (CRISCPU , CRISCPUClass, -CRIS_CPU ,TYPE_CRIS_CPU ) +OBJECT_DECLARE_TYPE (CRISCPU , CRISCPUClass, + cris_cpu,CRIS_CPU )/** * CRISCPUClass:
target/hppa/cpu-qom.h +2 -4
@@ -25,10 +25,8 @@#define TYPE_HPPA_CPU "hppa-cpu" -typedef struct HPPACPU HPPACPU ; -typedef struct HPPACPUClass HPPACPUClass ; -DECLARE_OBJ_CHECKERS (HPPACPU , HPPACPUClass, -HPPA_CPU ,TYPE_HPPA_CPU ) +OBJECT_DECLARE_TYPE (HPPACPU , HPPACPUClass, + hppa_cpu,HPPA_CPU )/** * HPPACPUClass:
target/i386/cpu-qom.h +2 -4
@@ -30,10 +30,8 @@#define TYPE_X86_CPU "i386-cpu"#endif -typedef struct X86CPU X86CPU ; -typedef struct X86CPUClass X86CPUClass ; -DECLARE_OBJ_CHECKERS (X86CPU , X86CPUClass, - X86_CPU, TYPE_X86_CPU) +OBJECT_DECLARE_TYPE (X86CPU , X86CPUClass, + x86_cpu, X86_CPU)typedef struct X86CPUModel X86CPUModel ;
target/lm32/cpu-qom.h +2 -4
@@ -25,10 +25,8 @@#define TYPE_LM32_CPU "lm32-cpu" -typedef struct LM32CPU LM32CPU ; -typedef struct LM32CPUClass LM32CPUClass ; -DECLARE_OBJ_CHECKERS (LM32CPU , LM32CPUClass, -LM32_CPU ,TYPE_LM32_CPU ) +OBJECT_DECLARE_TYPE (LM32CPU , LM32CPUClass, + lm32_cpu,LM32_CPU )/** * LM32CPUClass:
target/m68k/cpu-qom.h +2 -4
@@ -25,10 +25,8 @@#define TYPE_M68K_CPU "m68k-cpu" -typedef struct M68kCPU M68kCPU ; -typedef struct M68kCPUClass M68kCPUClass ; -DECLARE_OBJ_CHECKERS (M68kCPU, M68kCPUClass, -M68K_CPU ,TYPE_M68K_CPU ) +OBJECT_DECLARE_TYPE (M68kCPU, M68kCPUClass, + m68k_cpu,M68K_CPU )/* * M68kCPUClass:
target/microblaze/cpu-qom.h +2 -4
@@ -25,10 +25,8 @@#define TYPE_MICROBLAZE_CPU "microblaze-cpu" -typedef struct MicroBlazeCPU MicroBlazeCPU ; -typedef struct MicroBlazeCPUClass MicroBlazeCPUClass ; -DECLARE_OBJ_CHECKERS (MicroBlazeCPU, MicroBlazeCPUClass, -MICROBLAZE_CPU ,TYPE_MICROBLAZE_CPU ) +OBJECT_DECLARE_TYPE (MicroBlazeCPU, MicroBlazeCPUClass, + microblaze_cpu,MICROBLAZE_CPU )/** * MicroBlazeCPUClass:
target/mips/cpu-qom.h +2 -4
@@ -29,10 +29,8 @@#define TYPE_MIPS_CPU "mips-cpu"#endif -typedef struct MIPSCPU MIPSCPU ; -typedef struct MIPSCPUClass MIPSCPUClass ; -DECLARE_OBJ_CHECKERS (MIPSCPU , MIPSCPUClass, -MIPS_CPU ,TYPE_MIPS_CPU ) +OBJECT_DECLARE_TYPE (MIPSCPU , MIPSCPUClass, + mips_cpu,MIPS_CPU )/** * MIPSCPUClass:
target/moxie/cpu.h +2 -4
@@ -51,10 +51,8 @@ typedef struct CPUMoxieState {#define TYPE_MOXIE_CPU "moxie-cpu" -typedef struct MoxieCPU MoxieCPU ; -typedef struct MoxieCPUClass MoxieCPUClass ; -DECLARE_OBJ_CHECKERS (MoxieCPU, MoxieCPUClass, -MOXIE_CPU ,TYPE_MOXIE_CPU ) +OBJECT_DECLARE_TYPE (MoxieCPU, MoxieCPUClass, + moxie_cpu,MOXIE_CPU )/** * MoxieCPUClass:
target/nios2/cpu.h +2 -4
@@ -32,10 +32,8 @@ typedef struct CPUNios2State CPUNios2State;#define TYPE_NIOS2_CPU "nios2-cpu" -typedef struct Nios2CPU Nios2CPU ; -typedef struct Nios2CPUClass Nios2CPUClass ; -DECLARE_OBJ_CHECKERS (Nios2CPU, Nios2CPUClass, -NIOS2_CPU ,TYPE_NIOS2_CPU ) +OBJECT_DECLARE_TYPE (Nios2CPU, Nios2CPUClass, + nios2_cpu,NIOS2_CPU )/** * Nios2CPUClass:
target/openrisc/cpu.h +2 -4
@@ -29,10 +29,8 @@ struct OpenRISCCPU;#define TYPE_OPENRISC_CPU "or1k-cpu" -typedef struct OpenRISCCPU OpenRISCCPU ; -typedef struct OpenRISCCPUClass OpenRISCCPUClass ; -DECLARE_OBJ_CHECKERS (OpenRISCCPU, OpenRISCCPUClass, -OPENRISC_CPU ,TYPE_OPENRISC_CPU ) +OBJECT_DECLARE_TYPE (OpenRISCCPU, OpenRISCCPUClass, + openrisc_cpu,OPENRISC_CPU )/** * OpenRISCCPUClass:
target/ppc/cpu-qom.h +2 -4
@@ -29,10 +29,8 @@#define TYPE_POWERPC_CPU "powerpc-cpu"#endif -typedef struct PowerPCCPU PowerPCCPU ; -typedef struct PowerPCCPUClass PowerPCCPUClass ; -DECLARE_OBJ_CHECKERS (PowerPCCPU, PowerPCCPUClass, - POWERPC_CPU, TYPE_POWERPC_CPU) +OBJECT_DECLARE_TYPE (PowerPCCPU, PowerPCCPUClass, + powerpc_cpu, POWERPC_CPU)typedef struct CPUPPCState CPUPPCState ;typedef struct ppc_tb_t ppc_tb_t ;
target/riscv/cpu.h +2 -4
@@ -232,10 +232,8 @@ struct CPURISCVState {QEMUTimer *timer;/* Internal timer */ }; -typedef struct RISCVCPU RISCVCPU ; -typedef struct RISCVCPUClass RISCVCPUClass ; -DECLARE_OBJ_CHECKERS (RISCVCPU , RISCVCPUClass, -RISCV_CPU ,TYPE_RISCV_CPU ) +OBJECT_DECLARE_TYPE (RISCVCPU , RISCVCPUClass, + riscv_cpu,RISCV_CPU )/** * RISCVCPUClass:
target/s390x/cpu-qom.h +2 -4
@@ -25,10 +25,8 @@#define TYPE_S390_CPU "s390x-cpu" -typedef struct S390CPU S390CPU ; -typedef struct S390CPUClass S390CPUClass ; -DECLARE_OBJ_CHECKERS (S390CPU , S390CPUClass, - S390_CPU, TYPE_S390_CPU) +OBJECT_DECLARE_TYPE (S390CPU , S390CPUClass, + s390_cpu, S390_CPU)typedef struct S390CPUModel S390CPUModel ;typedef struct S390CPUDef S390CPUDef ;
target/sh4/cpu-qom.h +2 -4
@@ -29,10 +29,8 @@#define TYPE_SH7751R_CPU SUPERH_CPU_TYPE_NAME("sh7751r")#define TYPE_SH7785_CPU SUPERH_CPU_TYPE_NAME("sh7785") -typedef struct SuperHCPU SuperHCPU ; -typedef struct SuperHCPUClass SuperHCPUClass ; -DECLARE_OBJ_CHECKERS (SuperHCPU, SuperHCPUClass, -SUPERH_CPU ,TYPE_SUPERH_CPU ) +OBJECT_DECLARE_TYPE (SuperHCPU, SuperHCPUClass, + superh_cpu,SUPERH_CPU )/** * SuperHCPUClass:
target/sparc/cpu-qom.h +2 -4
@@ -29,10 +29,8 @@#define TYPE_SPARC_CPU "sparc-cpu"#endif -typedef struct SPARCCPU SPARCCPU ; -typedef struct SPARCCPUClass SPARCCPUClass ; -DECLARE_OBJ_CHECKERS (SPARCCPU , SPARCCPUClass, - SPARC_CPU, TYPE_SPARC_CPU) +OBJECT_DECLARE_TYPE (SPARCCPU , SPARCCPUClass, + sparc_cpu, SPARC_CPU)typedef struct sparc_def_t sparc_def_t ;/**
target/tilegx/cpu.h +2 -4
@@ -99,10 +99,8 @@ typedef struct CPUTLGState {#define TYPE_TILEGX_CPU "tilegx-cpu" -typedef struct TileGXCPU TileGXCPU ; -typedef struct TileGXCPUClass TileGXCPUClass ; -DECLARE_OBJ_CHECKERS (TileGXCPU, TileGXCPUClass, -TILEGX_CPU ,TYPE_TILEGX_CPU ) +OBJECT_DECLARE_TYPE (TileGXCPU, TileGXCPUClass, + tilegx_cpu,TILEGX_CPU )/** * TileGXCPUClass:
target/tricore/cpu-qom.h +2 -4
@@ -24,10 +24,8 @@#define TYPE_TRICORE_CPU "tricore-cpu" -typedef struct TriCoreCPU TriCoreCPU ; -typedef struct TriCoreCPUClass TriCoreCPUClass ; -DECLARE_OBJ_CHECKERS (TriCoreCPU, TriCoreCPUClass, - TRICORE_CPU, TYPE_TRICORE_CPU) +OBJECT_DECLARE_TYPE (TriCoreCPU, TriCoreCPUClass, + tricore_cpu, TRICORE_CPU)struct TriCoreCPUClass {/*< private >*/
target/unicore32/cpu-qom.h +2 -4
@@ -16,10 +16,8 @@#define TYPE_UNICORE32_CPU "unicore32-cpu" -typedef struct UniCore32CPU UniCore32CPU ; -typedef struct UniCore32CPUClass UniCore32CPUClass ; -DECLARE_OBJ_CHECKERS (UniCore32CPU, UniCore32CPUClass, -UNICORE32_CPU ,TYPE_UNICORE32_CPU ) +OBJECT_DECLARE_TYPE (UniCore32CPU, UniCore32CPUClass, + unicore32_cpu,UNICORE32_CPU )/** * UniCore32CPUClass:
target/xtensa/cpu-qom.h +2 -4
@@ -34,10 +34,8 @@#define TYPE_XTENSA_CPU "xtensa-cpu" -typedef struct XtensaCPU XtensaCPU ; -typedef struct XtensaCPUClass XtensaCPUClass ; -DECLARE_OBJ_CHECKERS (XtensaCPU, XtensaCPUClass, - XTENSA_CPU, TYPE_XTENSA_CPU) +OBJECT_DECLARE_TYPE (XtensaCPU, XtensaCPUClass, + xtensa_cpu, XTENSA_CPU)typedef struct XtensaConfig XtensaConfig ;
backends/dbus-vmstate.c +2 -4
@@ -21,12 +21,10 @@#include "trace.h" #include "qom/object.h" -typedef struct DBusVMState DBusVMState ; -typedef struct DBusVMStateClass DBusVMStateClass ;#define TYPE_DBUS_VMSTATE "dbus-vmstate" -DECLARE_OBJ_CHECKERS (DBusVMState, DBusVMStateClass, - DBUS_VMSTATE, TYPE_DBUS_VMSTATE) +OBJECT_DECLARE_TYPE (DBusVMState, DBusVMStateClass, + dbus_vmstate, DBUS_VMSTATE)struct DBusVMStateClass {ObjectClass parent_class;
ui/input-barrier.c +2 -4
@@ -20,10 +20,8 @@#include "input-barrier.h" #define TYPE_INPUT_BARRIER "input-barrier" -typedef struct InputBarrier InputBarrier ; -typedef struct InputBarrierClass InputBarrierClass ; -DECLARE_OBJ_CHECKERS (InputBarrier, InputBarrierClass, - INPUT_BARRIER, TYPE_INPUT_BARRIER) +OBJECT_DECLARE_TYPE (InputBarrier, InputBarrierClass, + input_barrier, INPUT_BARRIER)#define MAX_HELLO_LENGTH 1024
ui/input-linux.c +2 -4
@@ -31,10 +31,8 @@ static bool linux_is_button(unsigned int lnx) }#define TYPE_INPUT_LINUX "input-linux" -typedef struct InputLinux InputLinux ; -typedef struct InputLinuxClass InputLinuxClass ; -DECLARE_OBJ_CHECKERS (InputLinux, InputLinuxClass, - INPUT_LINUX, TYPE_INPUT_LINUX) +OBJECT_DECLARE_TYPE (InputLinux, InputLinuxClass, + input_linux, INPUT_LINUX)struct InputLinux {
Signature · 1 line
2.26.2
PATCH v3 72/74 Remove redundant instance_size/class_size fields
In reply to Eduardo HabkostThis will remove instance_size/class_size fields from TypeInfo variables when the value is exactly the same as the one in the parent class.
Generated by:
$ ./scripts/codeconverter/converter.py -i \ --pattern=RedundantTypeSizes $(git grep -l TypeInfo -- '*.[ch]')
---
Changes series v2 -> v3: this is a new patch in series v3
---
Cc: "Marc-André Lureau" <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: "Daniel P. Berrangé" <[email protected]>
Cc: "Cédric Le Goater" <[email protected]>
Cc: Peter Maydell <[email protected]>
Cc: Andrew Jeffery <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Jan Kiszka <[email protected]>
Cc: Eduardo Habkost <[email protected]>
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Marcel Apfelbaum <[email protected]>
Cc: Richard Henderson <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Anthony Perard <[email protected]>
Cc: Paul Durrant <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Cc: Aleksandar Markovic <[email protected]>
Cc: "Philippe Mathieu-Daudé" <[email protected]>
Cc: Aurelien Jarno <[email protected]>
Cc: Jiaxun Yang <[email protected]>
Cc: Aleksandar Rikalo <[email protected]>
Cc: Laurent Vivier <[email protected]>
Cc: Mark Cave-Ayland <[email protected]>
Cc: David Gibson <[email protected]>
Cc: Cornelia Huck <[email protected]>
Cc: Thomas Huth <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Halil Pasic <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: Fam Zheng <[email protected]>
Cc: Beniamino Galvani <[email protected]>
Cc: Andrew Baumann <[email protected]>
Cc: Michael Walle <[email protected]>
Cc: Andrzej Zaborowski <[email protected]>
Cc: Yoshinori Sato <[email protected]>
Cc: Alex Williamson <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
Cc: "Marc-André Lureau" <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: "Daniel P. Berrangé" <[email protected]>
Cc: "Cédric Le Goater" <[email protected]>
Cc: Peter Maydell <[email protected]>
Cc: Andrew Jeffery <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Jan Kiszka <[email protected]>
Cc: Eduardo Habkost <[email protected]>
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Marcel Apfelbaum <[email protected]>
Cc: Richard Henderson <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Anthony Perard <[email protected]>
Cc: Paul Durrant <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Cc: Aleksandar Markovic <[email protected]>
Cc: "Philippe Mathieu-Daudé" <[email protected]>
Cc: Aurelien Jarno <[email protected]>
Cc: Jiaxun Yang <[email protected]>
Cc: Aleksandar Rikalo <[email protected]>
Cc: Laurent Vivier <[email protected]>
Cc: Mark Cave-Ayland <[email protected]>
Cc: David Gibson <[email protected]>
Cc: Cornelia Huck <[email protected]>
Cc: Halil Pasic <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: Thomas Huth <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Fam Zheng <[email protected]>
Cc: Beniamino Galvani <[email protected]>
Cc: Andrew Baumann <[email protected]>
Cc: Michael Walle <[email protected]>
Cc: Andrzej Zaborowski <[email protected]>
Cc: Yoshinori Sato <[email protected]>
Cc: Alex Williamson <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
--- chardev/char-null.c | 1 - crypto/tls-cipher-suites.c | 2 -- hw/arm/aspeed_ast2600.c | 2 -- hw/arm/aspeed_soc.c | 2 -- hw/arm/musicpal.c | 1 - hw/core/sysbus.c | 1 - hw/i386/kvm/apic.c | 1 - hw/i386/pc_piix.c | 1 - hw/i386/xen/xen_apic.c | 1 - hw/input/virtio-input-hid.c | 3 --- hw/intc/apic.c | 1 - hw/intc/ioapic.c | 1 - hw/isa/isa-bus.c | 1 - hw/mips/gt64xxx_pci.c | 1 - hw/misc/aspeed_scu.c | 3 --- hw/misc/ivshmem.c | 2 -- hw/nubus/nubus-bridge.c | 1 - hw/pci-bridge/dec.c | 2 -- hw/pci-bridge/pci_bridge_dev.c | 1 - hw/pci-host/grackle.c | 1 - hw/pci-host/uninorth.c | 4 ---- hw/pci-host/versatile.c | 1 - hw/pci-host/xen_igd_pt.c | 1 - hw/ppc/pnv_homer.c | 2 -- hw/ppc/pnv_occ.c | 2 -- hw/ppc/ppc4xx_pci.c | 1 - hw/s390x/s390-skeys-kvm.c | 2 -- hw/s390x/sclpcpu.c | 2 -- hw/s390x/sclpquiesce.c | 2 -- hw/s390x/tod-kvm.c | 2 -- hw/s390x/tod-qemu.c | 2 -- hw/s390x/virtio-ccw-input.c | 3 --- hw/scsi/scsi-generic.c | 1 - hw/sd/allwinner-sdhost.c | 1 - hw/sd/bcm2835_sdhost.c | 1 - hw/sd/milkymist-memcard.c | 1 - hw/sd/pl181.c | 1 - hw/sd/pxa2xx_mmci.c | 1 - hw/sd/sdhci.c | 1 - hw/sh4/sh_pci.c | 1 - hw/timer/pxa2xx_timer.c | 2 -- hw/vfio/pci.c | 1 - hw/virtio/virtio-mmio.c | 1 - hw/watchdog/wdt_aspeed.c | 3 --- hw/xen/xen-legacy-backend.c | 1 - 45 files changed, 69 deletions(-)
chardev/char-null.c +0 -1
@@ -44,7 +44,6 @@ static void char_null_class_init(ObjectClass *oc, void *data)static const TypeInfo char_null_type_info = { .name =TYPE_CHARDEV_NULL , .parent =TYPE_CHARDEV , - .instance_size =sizeof (Chardev), .class_init = char_null_class_init, };TYPE_INFO (char_null_type_info)
crypto/tls-cipher-suites.c +0 -2
@@ -108,8 +108,6 @@ static void qcrypto_tls_cipher_suites_class_init(ObjectClass *oc, void *data)static const TypeInfo qcrypto_tls_cipher_suites_info = { .parent =TYPE_QCRYPTO_TLS_CREDS , .name =TYPE_QCRYPTO_TLS_CIPHER_SUITES , - .instance_size =sizeof (QCryptoTLSCreds), - .class_size =sizeof (QCryptoTLSCredsClass), .class_init = qcrypto_tls_cipher_suites_class_init, .interfaces = (InterfaceInfo []) { {TYPE_USER_CREATABLE },
hw/arm/aspeed_ast2600.c +0 -2
@@ -496,10 +496,8 @@ static void aspeed_soc_ast2600_class_init(ObjectClass *oc, void *data)static const TypeInfo aspeed_soc_ast2600_type_info = { .name ="ast2600-a1" , .parent =TYPE_ASPEED_SOC , - .instance_size =sizeof (AspeedSoCState), .instance_init = aspeed_soc_ast2600_init, .class_init = aspeed_soc_ast2600_class_init, - .class_size =sizeof (AspeedSoCClass), };static void aspeed_soc_register_types (void )
hw/arm/aspeed_soc.c +0 -2
@@ -442,7 +442,6 @@ static const TypeInfo aspeed_soc_ast2400_type_info = { .name = "ast2400-a1", .parent = TYPE_ASPEED_SOC, .instance_init = aspeed_soc_init, - .instance_size = sizeof(AspeedSoCState), .class_init = aspeed_soc_ast2400_class_init, };
@@ -467,7 +466,6 @@ static const TypeInfo aspeed_soc_ast2500_type_info = { .name = "ast2500-a1", .parent = TYPE_ASPEED_SOC, .instance_init = aspeed_soc_init, - .instance_size = sizeof(AspeedSoCState), .class_init = aspeed_soc_ast2500_class_init, };static void aspeed_soc_register_types (void )
hw/arm/musicpal.c +0 -1
@@ -1739,7 +1739,6 @@ static void mv88w8618_wlan_class_init(ObjectClass *klass, void *data)static const TypeInfo mv88w8618_wlan_info = { .name ="mv88w8618_wlan" , .parent =TYPE_SYS_BUS_DEVICE , - .instance_size =sizeof (SysBusDevice), .class_init = mv88w8618_wlan_class_init, };TYPE_INFO (mv88w8618_wlan_info)
hw/core/sysbus.c +0 -1
@@ -83,7 +83,6 @@ static void system_bus_class_init(ObjectClass *klass, void *data)static const TypeInfo system_bus_info = { .name =TYPE_SYSTEM_BUS , .parent =TYPE_BUS , - .instance_size =sizeof (BusState), .class_init = system_bus_class_init, };TYPE_INFO (system_bus_info)
hw/i386/kvm/apic.c +0 -1
@@ -254,7 +254,6 @@ static void kvm_apic_class_init(ObjectClass *klass, void *data)static const TypeInfo kvm_apic_info = { .name ="kvm-apic" , .parent =TYPE_APIC_COMMON , - .instance_size =sizeof (APICCommonState), .class_init = kvm_apic_class_init, };TYPE_INFO (kvm_apic_info)
hw/i386/pc_piix.c +0 -1
@@ -911,7 +911,6 @@ static void isa_bridge_class_init(ObjectClass *klass, void *data)static TypeInfo isa_bridge_info = { .name ="igd-passthrough-isa-bridge" , .parent =TYPE_PCI_DEVICE , - .instance_size =sizeof (PCIDevice), .class_init = isa_bridge_class_init, .interfaces = (InterfaceInfo []) { {INTERFACE_CONVENTIONAL_PCI_DEVICE },
hw/i386/xen/xen_apic.c +0 -1
@@ -91,7 +91,6 @@ static void xen_apic_class_init(ObjectClass *klass, void *data)static const TypeInfo xen_apic_info = { .name ="xen-apic" , .parent =TYPE_APIC_COMMON , - .instance_size =sizeof (APICCommonState), .class_init = xen_apic_class_init, };TYPE_INFO (xen_apic_info)
hw/input/virtio-input-hid.c +0 -3
@@ -289,7 +289,6 @@ static void virtio_keyboard_init(Object *obj)static const TypeInfo virtio_keyboard_info = { .name =TYPE_VIRTIO_KEYBOARD , .parent =TYPE_VIRTIO_INPUT_HID , - .instance_size =sizeof (VirtIOInputHID), .instance_init = virtio_keyboard_init, };TYPE_INFO (virtio_keyboard_info)
@@ -382,7 +381,6 @@ static void virtio_mouse_init(Object *obj)static const TypeInfo virtio_mouse_info = { .name =TYPE_VIRTIO_MOUSE , .parent =TYPE_VIRTIO_INPUT_HID , - .instance_size =sizeof (VirtIOInputHID), .instance_init = virtio_mouse_init, .class_init = virtio_mouse_class_init, };
@@ -507,7 +505,6 @@ static void virtio_tablet_init(Object *obj)static const TypeInfo virtio_tablet_info = { .name =TYPE_VIRTIO_TABLET , .parent =TYPE_VIRTIO_INPUT_HID , - .instance_size =sizeof (VirtIOInputHID), .instance_init = virtio_tablet_init, .class_init = virtio_tablet_class_init, };
hw/intc/apic.c +0 -1
@@ -911,7 +911,6 @@ static void apic_class_init(ObjectClass *klass, void *data)static const TypeInfo apic_info = { .name =TYPE_APIC , - .instance_size =sizeof (APICCommonState), .parent =TYPE_APIC_COMMON , .class_init = apic_class_init, };
hw/intc/ioapic.c +0 -1
@@ -502,7 +502,6 @@ static void ioapic_class_init(ObjectClass *klass, void *data)static const TypeInfo ioapic_info = { .name =TYPE_IOAPIC , .parent =TYPE_IOAPIC_COMMON , - .instance_size =sizeof (IOAPICCommonState), .class_init = ioapic_class_init, };TYPE_INFO (ioapic_info)
hw/isa/isa-bus.c +0 -1
@@ -247,7 +247,6 @@ static void isabus_bridge_class_init(ObjectClass *klass, void *data)static const TypeInfo isabus_bridge_info = { .name ="isabus-bridge" , .parent =TYPE_SYS_BUS_DEVICE , - .instance_size =sizeof (SysBusDevice), .class_init = isabus_bridge_class_init, };TYPE_INFO (isabus_bridge_info)
hw/mips/gt64xxx_pci.c +0 -1
@@ -1259,7 +1259,6 @@ static void gt64120_pci_class_init(ObjectClass *klass, void *data)static const TypeInfo gt64120_pci_info = { .name ="gt64120_pci" , .parent =TYPE_PCI_DEVICE , - .instance_size =sizeof (PCIDevice), .class_init = gt64120_pci_class_init, .interfaces = (InterfaceInfo []) { {INTERFACE_CONVENTIONAL_PCI_DEVICE },
hw/misc/aspeed_scu.c +0 -3
@@ -519,7 +519,6 @@ static void aspeed_2400_scu_class_init(ObjectClass *klass, void *data)static const TypeInfo aspeed_2400_scu_info = { .name =TYPE_ASPEED_2400_SCU , .parent =TYPE_ASPEED_SCU , - .instance_size =sizeof (AspeedSCUState), .class_init = aspeed_2400_scu_class_init, };TYPE_INFO (aspeed_2400_scu_info)
@@ -540,7 +539,6 @@ static void aspeed_2500_scu_class_init(ObjectClass *klass, void *data)static const TypeInfo aspeed_2500_scu_info = { .name =TYPE_ASPEED_2500_SCU , .parent =TYPE_ASPEED_SCU , - .instance_size =sizeof (AspeedSCUState), .class_init = aspeed_2500_scu_class_init, };TYPE_INFO (aspeed_2500_scu_info)
@@ -696,7 +694,6 @@ static void aspeed_2600_scu_class_init(ObjectClass *klass, void *data)static const TypeInfo aspeed_2600_scu_info = { .name =TYPE_ASPEED_2600_SCU , .parent =TYPE_ASPEED_SCU , - .instance_size =sizeof (AspeedSCUState), .class_init = aspeed_2600_scu_class_init, };TYPE_INFO (aspeed_2600_scu_info)
hw/misc/ivshmem.c +0 -2
@@ -1061,7 +1061,6 @@ static void ivshmem_plain_class_init(ObjectClass *klass, void *data)static const TypeInfo ivshmem_plain_info = { .name =TYPE_IVSHMEM_PLAIN , .parent =TYPE_IVSHMEM_COMMON , - .instance_size =sizeof (IVShmemState), .class_init = ivshmem_plain_class_init, };TYPE_INFO (ivshmem_plain_info)
@@ -1122,7 +1121,6 @@ static void ivshmem_doorbell_class_init(ObjectClass *klass, void *data)static const TypeInfo ivshmem_doorbell_info = { .name =TYPE_IVSHMEM_DOORBELL , .parent =TYPE_IVSHMEM_COMMON , - .instance_size =sizeof (IVShmemState), .instance_init = ivshmem_doorbell_init, .class_init = ivshmem_doorbell_class_init, };
hw/nubus/nubus-bridge.c +0 -1
@@ -22,7 +22,6 @@ static void nubus_bridge_class_init(ObjectClass *klass, void *data)static const TypeInfo nubus_bridge_info = { .name =TYPE_NUBUS_BRIDGE , .parent =TYPE_SYS_BUS_DEVICE , - .instance_size =sizeof (SysBusDevice), .class_init = nubus_bridge_class_init, };TYPE_INFO (nubus_bridge_info)
hw/pci-bridge/dec.c +0 -2
@@ -72,7 +72,6 @@ static void dec_21154_pci_bridge_class_init(ObjectClass *klass, void *data)static const TypeInfo dec_21154_pci_bridge_info = { .name ="dec-21154-p2p-bridge" , .parent =TYPE_PCI_BRIDGE , - .instance_size =sizeof (PCIBridge), .class_init = dec_21154_pci_bridge_class_init, .interfaces = (InterfaceInfo []) { {INTERFACE_CONVENTIONAL_PCI_DEVICE },
@@ -135,7 +134,6 @@ static void dec_21154_pci_host_class_init(ObjectClass *klass, void *data)static const TypeInfo dec_21154_pci_host_info = { .name ="dec-21154" , .parent =TYPE_PCI_DEVICE , - .instance_size =sizeof (PCIDevice), .class_init = dec_21154_pci_host_class_init, .interfaces = (InterfaceInfo []) { {INTERFACE_CONVENTIONAL_PCI_DEVICE },
hw/pci-bridge/pci_bridge_dev.c +0 -1
@@ -298,7 +298,6 @@ static void pci_bridge_dev_seat_class_init(ObjectClass *klass, void *data)static const TypeInfo pci_bridge_dev_seat_info = { .name =TYPE_PCI_BRIDGE_SEAT_DEV , .parent =TYPE_PCI_BRIDGE_DEV , - .instance_size =sizeof (PCIBridgeDev), .class_init = pci_bridge_dev_seat_class_init, };TYPE_INFO (pci_bridge_dev_seat_info)
hw/pci-host/grackle.c +0 -1
@@ -144,7 +144,6 @@ static void grackle_pci_class_init(ObjectClass *klass, void *data)static const TypeInfo grackle_pci_info = { .name ="grackle" , .parent =TYPE_PCI_DEVICE , - .instance_size =sizeof (PCIDevice), .class_init = grackle_pci_class_init, .interfaces = (InterfaceInfo []) { {INTERFACE_CONVENTIONAL_PCI_DEVICE },
hw/pci-host/uninorth.c +0 -4
@@ -373,7 +373,6 @@ static void unin_main_pci_host_class_init(ObjectClass *klass, void *data)static const TypeInfo unin_main_pci_host_info = { .name ="uni-north-pci" , .parent =TYPE_PCI_DEVICE , - .instance_size =sizeof (PCIDevice), .class_init = unin_main_pci_host_class_init, .interfaces = (InterfaceInfo []) { {INTERFACE_CONVENTIONAL_PCI_DEVICE },
@@ -402,7 +401,6 @@ static void u3_agp_pci_host_class_init(ObjectClass *klass, void *data)static const TypeInfo u3_agp_pci_host_info = { .name ="u3-agp" , .parent =TYPE_PCI_DEVICE , - .instance_size =sizeof (PCIDevice), .class_init = u3_agp_pci_host_class_init, .interfaces = (InterfaceInfo []) { {INTERFACE_CONVENTIONAL_PCI_DEVICE },
@@ -431,7 +429,6 @@ static void unin_agp_pci_host_class_init(ObjectClass *klass, void *data)static const TypeInfo unin_agp_pci_host_info = { .name ="uni-north-agp" , .parent =TYPE_PCI_DEVICE , - .instance_size =sizeof (PCIDevice), .class_init = unin_agp_pci_host_class_init, .interfaces = (InterfaceInfo []) { {INTERFACE_CONVENTIONAL_PCI_DEVICE },
@@ -460,7 +457,6 @@ static void unin_internal_pci_host_class_init(ObjectClass *klass, void *data)static const TypeInfo unin_internal_pci_host_info = { .name ="uni-north-internal-pci" , .parent =TYPE_PCI_DEVICE , - .instance_size =sizeof (PCIDevice), .class_init = unin_internal_pci_host_class_init, .interfaces = (InterfaceInfo []) { {INTERFACE_CONVENTIONAL_PCI_DEVICE },
hw/pci-host/versatile.c +0 -1
@@ -489,7 +489,6 @@ static void versatile_pci_host_class_init(ObjectClass *klass, void *data)static const TypeInfo versatile_pci_host_info = { .name =TYPE_VERSATILE_PCI_HOST , .parent =TYPE_PCI_DEVICE , - .instance_size =sizeof (PCIDevice), .class_init = versatile_pci_host_class_init, .interfaces = (InterfaceInfo []) { {INTERFACE_CONVENTIONAL_PCI_DEVICE },
hw/pci-host/xen_igd_pt.c +0 -1
@@ -107,7 +107,6 @@ static void igd_passthrough_i440fx_class_init(ObjectClass *klass, void *data)static const TypeInfo igd_passthrough_i440fx_info = { .name =TYPE_IGD_PASSTHROUGH_I440FX_PCI_DEVICE , .parent =TYPE_I440FX_PCI_DEVICE , - .instance_size =sizeof (PCII440FXState), .class_init = igd_passthrough_i440fx_class_init, };TYPE_INFO (igd_passthrough_i440fx_info)
hw/ppc/pnv_homer.c +0 -2
@@ -185,7 +185,6 @@ static void pnv_homer_power8_class_init(ObjectClass *klass, void *data)static const TypeInfo pnv_homer_power8_type_info = { .name =TYPE_PNV8_HOMER , .parent =TYPE_PNV_HOMER , - .instance_size =sizeof (PnvHomer), .class_init = pnv_homer_power8_class_init, };TYPE_INFO (pnv_homer_power8_type_info)
@@ -329,7 +328,6 @@ static void pnv_homer_power9_class_init(ObjectClass *klass, void *data)static const TypeInfo pnv_homer_power9_type_info = { .name =TYPE_PNV9_HOMER , .parent =TYPE_PNV_HOMER , - .instance_size =sizeof (PnvHomer), .class_init = pnv_homer_power9_class_init, };TYPE_INFO (pnv_homer_power9_type_info)
hw/ppc/pnv_occ.c +0 -2
@@ -174,7 +174,6 @@ static void pnv_occ_power8_class_init(ObjectClass *klass, void *data)static const TypeInfo pnv_occ_power8_type_info = { .name =TYPE_PNV8_OCC , .parent =TYPE_PNV_OCC , - .instance_size =sizeof (PnvOCC), .class_init = pnv_occ_power8_class_init, };TYPE_INFO (pnv_occ_power8_type_info)
@@ -246,7 +245,6 @@ static void pnv_occ_power9_class_init(ObjectClass *klass, void *data)static const TypeInfo pnv_occ_power9_type_info = { .name =TYPE_PNV9_OCC , .parent =TYPE_PNV_OCC , - .instance_size =sizeof (PnvOCC), .class_init = pnv_occ_power9_class_init, };TYPE_INFO (pnv_occ_power9_type_info)
hw/ppc/ppc4xx_pci.c +0 -1
@@ -360,7 +360,6 @@ static void ppc4xx_host_bridge_class_init(ObjectClass *klass, void *data)static const TypeInfo ppc4xx_host_bridge_info = { .name ="ppc4xx-host-bridge" , .parent =TYPE_PCI_DEVICE , - .instance_size =sizeof (PCIDevice), .class_init = ppc4xx_host_bridge_class_init, .interfaces = (InterfaceInfo []) { {INTERFACE_CONVENTIONAL_PCI_DEVICE },
hw/s390x/s390-skeys-kvm.c +0 -2
@@ -68,9 +68,7 @@ static void kvm_s390_skeys_class_init(ObjectClass *oc, void *data)static const TypeInfo kvm_s390_skeys_info = { .name =TYPE_KVM_S390_SKEYS , .parent =TYPE_S390_SKEYS , - .instance_size =sizeof (S390SKeysState), .class_init = kvm_s390_skeys_class_init, - .class_size =sizeof (S390SKeysClass), };TYPE_INFO (kvm_s390_skeys_info)
hw/s390x/sclpcpu.c +0 -2
@@ -94,9 +94,7 @@ static void cpu_class_init(ObjectClass *oc, void *data)static const TypeInfo sclp_cpu_info = { .name =TYPE_SCLP_CPU_HOTPLUG , .parent =TYPE_SCLP_EVENT , - .instance_size =sizeof (SCLPEvent), .class_init = cpu_class_init, - .class_size =sizeof (SCLPEventClass), };TYPE_INFO (sclp_cpu_info)
hw/s390x/sclpquiesce.c +0 -2
@@ -137,9 +137,7 @@ static void quiesce_class_init(ObjectClass *klass, void *data)static const TypeInfo sclp_quiesce_info = { .name =TYPE_SCLP_QUIESCE , .parent =TYPE_SCLP_EVENT , - .instance_size =sizeof (SCLPEvent), .class_init = quiesce_class_init, - .class_size =sizeof (SCLPEventClass), };TYPE_INFO (sclp_quiesce_info)
hw/s390x/tod-kvm.c +0 -2
@@ -150,10 +150,8 @@ static void kvm_s390_tod_init(Object *obj)static TypeInfo kvm_s390_tod_info = { .name =TYPE_KVM_S390_TOD , .parent =TYPE_S390_TOD , - .instance_size =sizeof (S390TODState), .instance_init = kvm_s390_tod_init, .class_init = kvm_s390_tod_class_init, - .class_size =sizeof (S390TODClass), };TYPE_INFO (kvm_s390_tod_info)
hw/s390x/tod-qemu.c +0 -2
@@ -76,10 +76,8 @@ static void qemu_s390_tod_init(Object *obj)static TypeInfo qemu_s390_tod_info = { .name =TYPE_QEMU_S390_TOD , .parent =TYPE_S390_TOD , - .instance_size =sizeof (S390TODState), .instance_init = qemu_s390_tod_init, .class_init = qemu_s390_tod_class_init, - .class_size =sizeof (S390TODClass), };TYPE_INFO (qemu_s390_tod_info)
hw/s390x/virtio-ccw-input.c +0 -3
@@ -91,7 +91,6 @@ TYPE_INFO(virtio_ccw_input_hid)static const TypeInfo virtio_ccw_keyboard = { .name =TYPE_VIRTIO_KEYBOARD_CCW , .parent =TYPE_VIRTIO_INPUT_HID_CCW , - .instance_size =sizeof (VirtIOInputHIDCcw), .instance_init = virtio_ccw_keyboard_instance_init, };TYPE_INFO (virtio_ccw_keyboard)
@@ -99,7 +98,6 @@ TYPE_INFO(virtio_ccw_keyboard)static const TypeInfo virtio_ccw_mouse = { .name =TYPE_VIRTIO_MOUSE_CCW , .parent =TYPE_VIRTIO_INPUT_HID_CCW , - .instance_size =sizeof (VirtIOInputHIDCcw), .instance_init = virtio_ccw_mouse_instance_init, };TYPE_INFO (virtio_ccw_mouse)
@@ -107,7 +105,6 @@ TYPE_INFO(virtio_ccw_mouse)static const TypeInfo virtio_ccw_tablet = { .name =TYPE_VIRTIO_TABLET_CCW , .parent =TYPE_VIRTIO_INPUT_HID_CCW , - .instance_size =sizeof (VirtIOInputHIDCcw), .instance_init = virtio_ccw_tablet_instance_init, };TYPE_INFO (virtio_ccw_tablet)
hw/scsi/scsi-generic.c +0 -1
@@ -775,7 +775,6 @@ static void scsi_generic_class_initfn(ObjectClass *klass, void *data)static const TypeInfo scsi_generic_info = { .name ="scsi-generic" , .parent =TYPE_SCSI_DEVICE , - .instance_size =sizeof (SCSIDevice), .class_init = scsi_generic_class_initfn, };TYPE_INFO (scsi_generic_info)
hw/sd/allwinner-sdhost.c +0 -1
@@ -836,7 +836,6 @@ TYPE_INFO(allwinner_sdhost_sun5i_info)static const TypeInfo allwinner_sdhost_bus_info = { .name =TYPE_AW_SDHOST_BUS , .parent =TYPE_SD_BUS , - .instance_size =sizeof (SDBus), .class_init = allwinner_sdhost_bus_class_init, };TYPE_INFO (allwinner_sdhost_bus_info)
hw/sd/bcm2835_sdhost.c +0 -1
@@ -448,7 +448,6 @@ TYPE_INFO(bcm2835_sdhost_info)static const TypeInfo bcm2835_sdhost_bus_info = { .name =TYPE_BCM2835_SDHOST_BUS , .parent =TYPE_SD_BUS , - .instance_size =sizeof (SDBus), };TYPE_INFO (bcm2835_sdhost_bus_info)
hw/sd/milkymist-memcard.c +0 -1
@@ -325,7 +325,6 @@ static void milkymist_sdbus_class_init(ObjectClass *klass, void *data)static const TypeInfo milkymist_sdbus_info = { .name =TYPE_MILKYMIST_SDBUS , .parent =TYPE_SD_BUS , - .instance_size =sizeof (SDBus), .class_init = milkymist_sdbus_class_init, };TYPE_INFO (milkymist_sdbus_info)
hw/sd/pl181.c +0 -1
@@ -542,7 +542,6 @@ static void pl181_bus_class_init(ObjectClass *klass, void *data)static const TypeInfo pl181_bus_info = { .name =TYPE_PL181_BUS , .parent =TYPE_SD_BUS , - .instance_size =sizeof (SDBus), .class_init = pl181_bus_class_init, };TYPE_INFO (pl181_bus_info)
hw/sd/pxa2xx_mmci.c +0 -1
@@ -592,7 +592,6 @@ TYPE_INFO(pxa2xx_mmci_info)static const TypeInfo pxa2xx_mmci_bus_info = { .name =TYPE_PXA2XX_MMCI_BUS , .parent =TYPE_SD_BUS , - .instance_size =sizeof (SDBus), .class_init = pxa2xx_mmci_bus_class_init, };TYPE_INFO (pxa2xx_mmci_bus_info)
hw/sd/sdhci.c +0 -1
@@ -1502,7 +1502,6 @@ static void sdhci_bus_class_init(ObjectClass *klass, void *data)static const TypeInfo sdhci_bus_info = { .name =TYPE_SDHCI_BUS , .parent =TYPE_SD_BUS , - .instance_size =sizeof (SDBus), .class_init = sdhci_bus_class_init, };TYPE_INFO (sdhci_bus_info)
hw/sh4/sh_pci.c +0 -1
@@ -175,7 +175,6 @@ static void sh_pci_host_class_init(ObjectClass *klass, void *data)static const TypeInfo sh_pci_host_info = { .name ="sh_pci_host" , .parent =TYPE_PCI_DEVICE , - .instance_size =sizeof (PCIDevice), .class_init = sh_pci_host_class_init, .interfaces = (InterfaceInfo []) { {INTERFACE_CONVENTIONAL_PCI_DEVICE },
hw/timer/pxa2xx_timer.c +0 -2
@@ -570,7 +570,6 @@ static void pxa25x_timer_dev_class_init(ObjectClass *klass, void *data)static const TypeInfo pxa25x_timer_dev_info = { .name ="pxa25x-timer" , .parent =TYPE_PXA2XX_TIMER , - .instance_size =sizeof (PXA2xxTimerInfo), .class_init = pxa25x_timer_dev_class_init, };TYPE_INFO (pxa25x_timer_dev_info)
@@ -593,7 +592,6 @@ static void pxa27x_timer_dev_class_init(ObjectClass *klass, void *data)static const TypeInfo pxa27x_timer_dev_info = { .name ="pxa27x-timer" , .parent =TYPE_PXA2XX_TIMER , - .instance_size =sizeof (PXA2xxTimerInfo), .class_init = pxa27x_timer_dev_class_init, };TYPE_INFO (pxa27x_timer_dev_info)
hw/vfio/pci.c +0 -1
@@ -3225,7 +3225,6 @@ static void vfio_pci_nohotplug_dev_class_init(ObjectClass *klass, void *data)static const TypeInfo vfio_pci_nohotplug_dev_info = { .name =TYPE_VFIO_PCI_NOHOTPLUG , .parent =TYPE_VFIO_PCI , - .instance_size =sizeof (VFIOPCIDevice), .class_init = vfio_pci_nohotplug_dev_class_init, };TYPE_INFO (vfio_pci_nohotplug_dev_info)
hw/virtio/virtio-mmio.c +0 -1
@@ -788,7 +788,6 @@ static void virtio_mmio_bus_class_init(ObjectClass *klass, void *data)static const TypeInfo virtio_mmio_bus_info = { .name =TYPE_VIRTIO_MMIO_BUS , .parent =TYPE_VIRTIO_BUS , - .instance_size =sizeof (VirtioBusState), .class_init = virtio_mmio_bus_class_init, };TYPE_INFO (virtio_mmio_bus_info)
hw/watchdog/wdt_aspeed.c +0 -3
@@ -299,7 +299,6 @@ static void aspeed_2400_wdt_class_init(ObjectClass *klass, void *data)static const TypeInfo aspeed_2400_wdt_info = { .name =TYPE_ASPEED_2400_WDT , .parent =TYPE_ASPEED_WDT , - .instance_size =sizeof (AspeedWDTState), .class_init = aspeed_2400_wdt_class_init, };TYPE_INFO (aspeed_2400_wdt_info)
@@ -335,7 +334,6 @@ static void aspeed_2500_wdt_class_init(ObjectClass *klass, void *data)static const TypeInfo aspeed_2500_wdt_info = { .name =TYPE_ASPEED_2500_WDT , .parent =TYPE_ASPEED_WDT , - .instance_size =sizeof (AspeedWDTState), .class_init = aspeed_2500_wdt_class_init, };TYPE_INFO (aspeed_2500_wdt_info)
@@ -356,7 +354,6 @@ static void aspeed_2600_wdt_class_init(ObjectClass *klass, void *data)static const TypeInfo aspeed_2600_wdt_info = { .name =TYPE_ASPEED_2600_WDT , .parent =TYPE_ASPEED_WDT , - .instance_size =sizeof (AspeedWDTState), .class_init = aspeed_2600_wdt_class_init, };TYPE_INFO (aspeed_2600_wdt_info)
hw/xen/xen-legacy-backend.c +0 -1
@@ -831,7 +831,6 @@ static void xen_sysdev_class_init(ObjectClass *klass, void *data)static const TypeInfo xensysdev_info = { .name =TYPE_XENSYSDEV , .parent =TYPE_SYS_BUS_DEVICE , - .instance_size =sizeof (SysBusDevice), .class_init = xen_sysdev_class_init, };TYPE_INFO (xensysdev_info)
Signature · 1 line
2.26.2
PATCH v3 6/74 aspeed_soc: Rename memmap/irqmap enum constants
In reply to Eduardo HabkostSome of the enum constant names conflict with the QOM type check macros:
ASPEED_GPIOASPEED_I2CASPEED_RTCASPEED_SCUASPEED_SDHCIASPEED_SDMCASPEED_VICASPEED_WDTASPEED_XDMA
This needs to be addressed to allow us to transform the QOM type check macros into functions generated by OBJECT_DECLARE_TYPE().
Rename all the constants to ASPEED_DEV_*, to avoid conflicts.
---
Changes v2 -> v3: none
Changes v1 -> v2:
* Added more details to commit message
---
Cc: "Cédric Le Goater" <[email protected]>
Cc: Peter Maydell <[email protected]>
Cc: Andrew Jeffery <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- include/hw/arm/aspeed_soc.h | 92 +++++++-------- hw/arm/aspeed.c | 4 +- hw/arm/aspeed_ast2600.c | 208 ++++++++++++++++---------------- hw/arm/aspeed_soc.c | 228 ++++++++++++++++++------------------ 4 files changed, 266 insertions(+), 266 deletions(-)
include/hw/arm/aspeed_soc.h +46 -46
@@ -87,52 +87,52 @@ typedef struct AspeedSoCClass { OBJECT_GET_CLASS(AspeedSoCClass, (obj), TYPE_ASPEED_SOC)enum { -ASPEED_IOMEM , -ASPEED_UART1 , -ASPEED_UART2 , -ASPEED_UART3 , -ASPEED_UART4 , -ASPEED_UART5 , -ASPEED_VUART , -ASPEED_FMC , -ASPEED_SPI1 , -ASPEED_SPI2 , -ASPEED_EHCI1 , -ASPEED_EHCI2 , -ASPEED_VIC , -ASPEED_SDMC , -ASPEED_SCU , -ASPEED_ADC , -ASPEED_VIDEO , -ASPEED_SRAM , -ASPEED_SDHCI , -ASPEED_GPIO , -ASPEED_GPIO_1_8V , -ASPEED_RTC , -ASPEED_TIMER1 , -ASPEED_TIMER2 , -ASPEED_TIMER3 , -ASPEED_TIMER4 , -ASPEED_TIMER5 , -ASPEED_TIMER6 , -ASPEED_TIMER7 , -ASPEED_TIMER8 , -ASPEED_WDT , -ASPEED_PWM , -ASPEED_LPC , -ASPEED_IBT , -ASPEED_I2C , -ASPEED_ETH1 , -ASPEED_ETH2 , -ASPEED_ETH3 , -ASPEED_ETH4 , -ASPEED_MII1 , -ASPEED_MII2 , -ASPEED_MII3 , -ASPEED_MII4 , -ASPEED_SDRAM , -ASPEED_XDMA , -ASPEED_EMMC , +ASPEED_DEV_IOMEM , +ASPEED_DEV_UART1 , +ASPEED_DEV_UART2 , +ASPEED_DEV_UART3 , +ASPEED_DEV_UART4 , +ASPEED_DEV_UART5 , +ASPEED_DEV_VUART , +ASPEED_DEV_FMC , +ASPEED_DEV_SPI1 , +ASPEED_DEV_SPI2 , +ASPEED_DEV_EHCI1 , +ASPEED_DEV_EHCI2 , +ASPEED_DEV_VIC , +ASPEED_DEV_SDMC , +ASPEED_DEV_SCU , +ASPEED_DEV_ADC , +ASPEED_DEV_VIDEO , +ASPEED_DEV_SRAM , +ASPEED_DEV_SDHCI , +ASPEED_DEV_GPIO , +ASPEED_DEV_GPIO_1_8V , +ASPEED_DEV_RTC , +ASPEED_DEV_TIMER1 , +ASPEED_DEV_TIMER2 , +ASPEED_DEV_TIMER3 , +ASPEED_DEV_TIMER4 , +ASPEED_DEV_TIMER5 , +ASPEED_DEV_TIMER6 , +ASPEED_DEV_TIMER7 , +ASPEED_DEV_TIMER8 , +ASPEED_DEV_WDT , +ASPEED_DEV_PWM , +ASPEED_DEV_LPC , +ASPEED_DEV_IBT , +ASPEED_DEV_I2C , +ASPEED_DEV_ETH1 , +ASPEED_DEV_ETH2 , +ASPEED_DEV_ETH3 , +ASPEED_DEV_ETH4 , +ASPEED_DEV_MII1 , +ASPEED_DEV_MII2 , +ASPEED_DEV_MII3 , +ASPEED_DEV_MII4 , +ASPEED_DEV_SDRAM , +ASPEED_DEV_XDMA , +ASPEED_DEV_EMMC , };#endif /* ASPEED_SOC_H */
hw/arm/aspeed.c +2 -2
@@ -309,7 +309,7 @@ static void aspeed_machine_init(MachineState *machine)qdev_realize (DEVICE (&bmc->soc),NULL , &error_abort);memory_region_add_subregion (get_system_memory (), - sc->memmap[ASPEED_SDRAM ], + sc->memmap[ASPEED_DEV_SDRAM ], &bmc->ram_container); max_ram_size = object_property_get_uint(OBJECT(&bmc->soc), "max-ram-size",
@@ -360,7 +360,7 @@ static void aspeed_machine_init(MachineState *machine) } aspeed_board_binfo.ram_size = ram_size; - aspeed_board_binfo.loader_start = sc->memmap[ASPEED_SDRAM ]; + aspeed_board_binfo.loader_start = sc->memmap[ASPEED_DEV_SDRAM ]; aspeed_board_binfo.nb_cpus = sc->num_cpus;if (amc->i2c_init) {
hw/arm/aspeed_ast2600.c +104 -104
351 lines not on this page · raw message
hw/arm/aspeed_soc.c +114 -114
356 lines not on this page · raw message
Signature · 1 line
2.26.2
v3 cover qom: Automated conversion of type checking boilerplate
git tree for this series:
https://github.com/ehabkost/qemu-hacks/tree/work/qom-macros-autoconvert
This is an extension of the series previously submitted by Daniel[1], including a script that will convert existing type checker macros automatically.
[1] https://lore.kernel.org/qemu-devel/20200723181410.3145233-1-berrange@redh=
at.com/
Changes from series v2 to v3:
* Additional automated changes are in "(pass 2)" patches to make review easier, but they can be squashed into the original patches later
* Patch "sifive_u: Rename memmap enum constants"
had to be redone due to conflicts on rebase
* Removed reference to _Generic at
"qom: Make type checker functions accept const pointers"
* Made converter script a little more flexible, and added experimental code to check instance/class size on TypeInfo vars
* Fixed bug I have introduced on usage of OBJECT_DECLARE_SIMPLE_TYPE (bug reported by Roman Bolshakov <[email protected]>)
* New patches added to series:
+ nubus: Rename class type checking macros
+ imx_ccm: Rename IMX_GET_CLASS macro
+ mos6522: Rename QOM macros
+ x86-iommu: Rename QOM type macros
+ rdma: Rename INTERFACE_RDMA_PROVIDER_CLASS macro
+ s390-virtio-ccw: Rename S390_MACHINE_CLASS macro
+ swim: Rename struct SWIM to Swim
+ migration: Rename class type checking macros
+ arm: Fix typo in AARCH64_CPU_GET_CLASS definition
+ rx: Rename QOM type check macros
+ rx: Move typedef RXCPU to cpu-qom.h
+ [automated] Use TYPE_INFO macro (pass 2)
+ [automated] Move QOM typedefs and add missing includes (pass 2)
+ [automated] Use DECLARE_*CHECKER* macros (pass 2)
+ [automated] Use OBJECT_DECLARE_TYPE where possible (pass 2)
+ [automated] Remove redundant instance_size/class_size fields
Link to series v2:
https://lore.kernel.org/qemu-devel/[email protected]=
om/
https://github.com/ehabkost/qemu-hacks/tree/work/qom-macros-autoconvert-v2
Changes from series v1 to v2:
* Don't skip TypeCheckMacro conversion if typedefs
are found in typedefs.h
* Don't look for typedefs if type check macro uses "struct [...]"
* "qom: Fix G_DEFINE_AUTOPTR_CLEANUP_FUNC" was squashed
in the original buggy patch
* 18 new patches that fix inconsistencies in the code,
and make automated changes without --force possible
* pl110:
* Fix typo on commit message
* Rename enum values to VERSION_*
* "[automated]" patches (without --force):
* Re-ran script after after the changes mentioned above. Now the patches change many more QOM type checker macros
* "[semi-automated] Use DECLARE_*CHECKER* when possible (--force mode)":
* Now the patch touches very few macros, and all of them have comments explaining why they are unusual
* Maintainers are now CCed in the cleanup patches
(except for the automated ones, because they are too large)
* TYPE_INFO macro: added commit message note suggested by Daniel
* Added more details to commit message of "Rename enum constants" patches
* Removed confusing paragraph mentioning _Generic from "Make type checker functions accept const pointers" commit message
Link to series v1:
https://lore.kernel.org/qemu-devel/[email protected]=
m/
https://github.com/ehabkost/qemu-hacks/tree/work/qom-macros-autoconvert-v1
The series is divided in the sections below:
Constant renaming
-----------------
Patches 1-9 will just rename existing constants that will conflict with the type checker function names.
Fix and cleanups of existing code
---------------------------------
Patches 10-53 are changes to existing code
that will either fix existing issues, delete unused and broken macros, or move typedefs around to make code conversion easier.
Original patches from Daniel
----------------------------
Patches 54-55 are the ones originally submitted by Daniel.
They introduce the macros:
* OBJECT_DECLARE_TYPE
* OBJECT_DECLARE_SIMPLE_TYPE
* OBJECT_DEFINE_TYPE
* OBJECT_DEFINE_TYPE_WITH_INTERFACES
* OBJECT_DEFINE_ABSTRACT_TYPE
Changes to new macros
---------------------
Patches 56-59 extend the macros introduced by Daniel. It includes small bug fixes, change the arguments to a few macros, and introduce a few new macros:
* DECLARE_INSTANCE_CHECKER
* DECLARE_CLASS_CHECKERS
* DECLARE_OBJ_CHECKERS
* TYPE_INFO
Automated code conversion
-------------------------
Patch 60 is the code conversion script that will look for common patterns and change them to use the new macros.
Patches 61-72 are all automatically generated by that script, to gradually transform existing code into DECLARE_*CHECKER or OBJECT_DECLARE*_TYPE macros.
Original crypto QOM patches from Daniel
---------------------------------------
Patches 73-74 are the patches originally sent by Daniel to convert the crypto QOM code to use the new macros, rebased and updated to pass additional arguments to OBJECT_DECLARE_*.
Daniel P. Berrang=C3=A9 (4):
qom: make object_ref/unref use a void * instead of Object *.
qom: provide convenient macros for declaring and defining types
crypto: use QOM macros for declaration/definition of secret types
crypto: use QOM macros for declaration/definition of TLS creds types
Eduardo Habkost (70):
e1000: Rename QOM class cast macros
megasas: Rename QOM class cast macros
vmw_pvscsi: Rename QOM class cast macros
pl110: Rename pl110_version enum values
allwinner-h3: Rename memmap enum constants
aspeed_soc: Rename memmap/irqmap enum constants
opentitan: Rename memmap enum constants
sifive_e: Rename memmap enum constants
sifive_u: Rename memmap enum constants
aspeed_timer: Fix ASPEED_TIMER macro definition
versatile: Fix typo in PCI_VPB_HOST definition
virtio-ccw: Fix definition of VIRTIO_CCW_BUS_GET_CLASS
hvf: Add missing include
hcd-dwc2: Rename USB_*CLASS macros for consistency
tulip: Move TulipState typedef to header
throttle-groups: Move ThrottleGroup typedef to header
pci: Move PCIBusClass typedef to pci.h
i8254: Move PITCommonState/PITCommonClass typedefs to i8254.h
hvf: Move HVFState typedef to hvf.h
mcf_fec: Move mcf_fec_state typedef to header
s390_flic: Move KVMS390FLICState typedef to header
can_emu: Delete macros for non-existing typedef
nubus: Delete unused NUBUS_BRIDGE macro
platform-bus: Delete macros for non-existing typedef
armsse: Rename QOM macros to avoid conflicts
xen-legacy-backend: Add missing typedef XenLegacyDevice
spapr: Move typedef SpaprMachineState to spapr.h
s390x: Move typedef SCLPEventFacility to event-facility.h
vhost-user-gpu: Move QOM macro to header
ahci: Move QOM macros to header
i8257: Move QOM macro to header
ahci: Move QOM macro to header
pckbd: Move QOM macro to header
vmbus: Move QOM macros to vmbus.h
virtio-serial-bus: Move QOM macros to header
piix: Move QOM macros to header
auxbus: Move QOM macros to header
rocker: Move QOM macros to header
pxa2xx: Move QOM macros to header
mptsas: Move QOM macros to header
kvm: Move QOM macros to kvm.h
vfio/pci: Move QOM macros to header
nubus: Rename class type checking macros
imx_ccm: Rename IMX_GET_CLASS macro
mos6522: Rename QOM macros
x86-iommu: Rename QOM type macros
rdma: Rename INTERFACE_RDMA_PROVIDER_CLASS macro
s390-virtio-ccw: Rename S390_MACHINE_CLASS macro
swim: Rename struct SWIM to Swim
migration: Rename class type checking macros
arm: Fix typo in AARCH64_CPU_GET_CLASS definition
rx: Rename QOM type check macros
rx: Move typedef RXCPU to cpu-qom.h
qom: Allow class type name to be specified in OBJECT_DECLARE*
qom: DECLARE_*_CHECKERS macros
qom: Make type checker functions accept const pointers
qom: TYPE_INFO macro
codeconverter: script for automating QOM code cleanups [automated] Delete duplicate QOM typedefs
[automated] Use TYPE_INFO macro
[automated] Use TYPE_INFO macro (pass 2)
[automated] Move QOM typedefs and add missing includes [automated] Move QOM typedefs and add missing includes (pass 2) [automated] Use DECLARE_*CHECKER* macros
[automated] Use DECLARE_*CHECKER* macros (pass 2) [semi-automated] Use DECLARE_*CHECKER* when possible (--force mode) [automated] Use OBJECT_DECLARE_TYPE where possible [automated] Use OBJECT_DECLARE_TYPE where possible (pass 2) [automated] Use OBJECT_DECLARE_SIMPLE_TYPE when possible [automated] Remove redundant instance_size/class_size fields
.../codeconverter/codeconverter/__init__.py | 0 .../codeconverter/codeconverter/patching.py | 390 +++++++++++ .../codeconverter/codeconverter/qom_macros.py | 645 ++++++++++++++++++ .../codeconverter/qom_type_info.py | 427 ++++++++++++ .../codeconverter/codeconverter/regexps.py | 111 +++ .../codeconverter/test_patching.py | 98 +++ .../codeconverter/test_regexps.py | 275 ++++++++ scripts/codeconverter/codeconverter/utils.py | 65 ++ scripts/codeconverter/converter.py | 113 +++ chardev/chardev-internal.h | 8 +- hw/9pfs/virtio-9p.h | 11 +- hw/audio/intel-hda.h | 20 +- hw/avr/atmega.h | 9 +- hw/block/nvme.h | 10 +- hw/display/ati_int.h | 9 +- hw/display/qxl.h | 9 +- hw/display/virtio-vga.h | 17 +- hw/i386/amd_iommu.h | 10 +- hw/ide/ahci_internal.h | 5 - hw/misc/tmp105.h | 9 +- hw/net/fsl_etsec/etsec.h | 10 +- hw/net/rocker/rocker.h | 7 +- hw/net/tulip.h | 5 +- hw/net/vmxnet3_defs.h | 9 +- hw/ppc/e500-ccsr.h | 9 +- hw/ppc/e500.h | 19 +- hw/ppc/mac.h | 19 +- hw/rdma/vmw/pvrdma.h | 9 +- hw/s390x/ccw-device.h | 17 +- hw/s390x/ipl.h | 6 +- hw/s390x/s390-pci-bus.h | 34 +- hw/s390x/virtio-ccw.h | 141 ++-- hw/scsi/mptsas.h | 7 +- hw/usb/ccid.h | 14 +- hw/usb/hcd-dwc2.h | 9 +- hw/usb/hcd-ehci.h | 36 +- hw/usb/hcd-ohci.h | 9 +- hw/usb/hcd-xhci.h | 7 +- hw/vfio/pci.h | 10 +- hw/virtio/virtio-mem-pci.h | 5 +- hw/virtio/virtio-pci.h | 24 +- hw/virtio/virtio-pmem-pci.h | 5 +- hw/xen/xen_pt.h | 5 +- include/authz/base.h | 15 +- include/authz/list.h | 17 +- include/authz/listfile.h | 17 +- include/authz/pamacct.h | 17 +- include/authz/simple.h | 17 +- include/block/throttle-groups.h | 5 +- include/chardev/char-fd.h | 9 +- include/chardev/char-win.h | 9 +- include/chardev/char.h | 12 +- include/chardev/spice.h | 9 +- include/crypto/secret.h | 11 +- include/crypto/secret_common.h | 12 +- include/crypto/secret_keyring.h | 24 +- include/crypto/tls-cipher-suites.h | 9 +- include/crypto/tlscreds.h | 13 +- include/crypto/tlscredsanon.h | 15 +- include/crypto/tlscredspsk.h | 14 +- include/crypto/tlscredsx509.h | 14 +- include/exec/memory.h | 19 +- include/hw/acpi/acpi_dev_interface.h | 13 +- include/hw/acpi/generic_event_device.h | 10 +- include/hw/acpi/vmgenid.h | 9 +- include/hw/adc/stm32f2xx_adc.h | 10 +- include/hw/arm/allwinner-a10.h | 9 +- include/hw/arm/allwinner-h3.h | 70 +- include/hw/arm/armsse.h | 18 +- include/hw/arm/armv7m.h | 17 +- include/hw/arm/aspeed.h | 14 +- include/hw/arm/aspeed_soc.h | 110 +-- include/hw/arm/bcm2835_peripherals.h | 10 +- include/hw/arm/bcm2836.h | 18 +- include/hw/arm/digic.h | 9 +- include/hw/arm/exynos4210.h | 10 +- include/hw/arm/fsl-imx25.h | 9 +- include/hw/arm/fsl-imx31.h | 9 +- include/hw/arm/fsl-imx6.h | 9 +- include/hw/arm/fsl-imx6ul.h | 9 +- include/hw/arm/fsl-imx7.h | 9 +- include/hw/arm/linux-boot-if.h | 11 +- include/hw/arm/msf2-soc.h | 9 +- include/hw/arm/nrf51_soc.h | 10 +- include/hw/arm/omap.h | 20 +- include/hw/arm/pxa.h | 16 + include/hw/arm/smmu-common.h | 18 +- include/hw/arm/smmuv3.h | 18 +- include/hw/arm/stm32f205_soc.h | 10 +- include/hw/arm/stm32f405_soc.h | 10 +- include/hw/arm/virt.h | 19 +- include/hw/arm/xlnx-versal.h | 9 +- include/hw/arm/xlnx-zynqmp.h | 10 +- include/hw/block/flash.h | 13 +- include/hw/block/swim.h | 15 +- include/hw/boards.h | 8 +- include/hw/char/avr_usart.h | 10 +- include/hw/char/bcm2835_aux.h | 9 +- include/hw/char/cadence_uart.h | 10 +- include/hw/char/cmsdk-apb-uart.h | 10 +- include/hw/char/digic-uart.h | 10 +- include/hw/char/escc.h | 9 +- include/hw/char/ibex_uart.h | 10 +- include/hw/char/imx_serial.h | 9 +- include/hw/char/nrf51_uart.h | 9 +- include/hw/char/pl011.h | 9 +- include/hw/char/renesas_sci.h | 9 +- include/hw/char/serial.h | 25 +- include/hw/char/stm32f2xx_usart.h | 10 +- include/hw/clock.h | 5 +- include/hw/core/cpu.h | 10 +- include/hw/core/generic-loader.h | 10 +- include/hw/core/split-irq.h | 3 +- include/hw/cpu/a15mpcore.h | 10 +- include/hw/cpu/a9mpcore.h | 10 +- include/hw/cpu/arm11mpcore.h | 10 +- include/hw/cpu/cluster.h | 10 +- include/hw/cpu/core.h | 10 +- include/hw/display/bcm2835_fb.h | 9 +- include/hw/display/dpcd.h | 4 +- include/hw/display/i2c-ddc.h | 4 +- include/hw/display/macfb.h | 30 +- include/hw/display/xlnx_dp.h | 9 +- include/hw/dma/bcm2835_dma.h | 10 +- include/hw/dma/i8257.h | 8 +- include/hw/dma/pl080.h | 9 +- include/hw/dma/xlnx-zdma.h | 10 +- include/hw/dma/xlnx-zynq-devcfg.h | 10 +- include/hw/dma/xlnx_dpdma.h | 4 +- include/hw/fw-path-provider.h | 11 +- include/hw/gpio/aspeed_gpio.h | 18 +- include/hw/gpio/bcm2835_gpio.h | 10 +- include/hw/gpio/imx_gpio.h | 9 +- include/hw/gpio/nrf51_gpio.h | 9 +- include/hw/hotplug.h | 11 +- include/hw/hyperv/vmbus-bridge.h | 12 +- include/hw/hyperv/vmbus.h | 19 +- include/hw/i2c/arm_sbcon_i2c.h | 10 +- include/hw/i2c/aspeed_i2c.h | 19 +- include/hw/i2c/i2c.h | 19 +- include/hw/i2c/imx_i2c.h | 9 +- include/hw/i2c/microbit_i2c.h | 10 +- include/hw/i2c/ppc4xx_i2c.h | 9 +- include/hw/i2c/smbus_slave.h | 15 +- include/hw/i386/apic_internal.h | 17 +- include/hw/i386/ich9.h | 10 +- include/hw/i386/intel_iommu.h | 7 +- include/hw/i386/ioapic_internal.h | 16 +- include/hw/i386/microvm.h | 19 +- include/hw/i386/pc.h | 14 +- include/hw/i386/x86-iommu.h | 13 +- include/hw/i386/x86.h | 19 +- include/hw/ide/ahci.h | 17 +- include/hw/ide/internal.h | 19 +- include/hw/ide/pci.h | 9 +- include/hw/input/adb.h | 16 +- include/hw/input/i8042.h | 5 +- include/hw/intc/allwinner-a10-pic.h | 9 +- include/hw/intc/arm_gic.h | 15 +- include/hw/intc/arm_gic_common.h | 21 +- include/hw/intc/arm_gicv3.h | 14 +- include/hw/intc/arm_gicv3_common.h | 16 +- include/hw/intc/arm_gicv3_its_common.h | 11 +- include/hw/intc/armv7m_nvic.h | 10 +- include/hw/intc/aspeed_vic.h | 9 +- include/hw/intc/bcm2835_ic.h | 9 +- include/hw/intc/bcm2836_control.h | 10 +- include/hw/intc/heathrow_pic.h | 9 +- include/hw/intc/ibex_plic.h | 10 +- include/hw/intc/imx_avic.h | 9 +- include/hw/intc/imx_gpcv2.h | 9 +- include/hw/intc/intc.h | 11 +- include/hw/intc/mips_gic.h | 6 +- include/hw/intc/realview_gic.h | 10 +- include/hw/intc/rx_icu.h | 4 +- include/hw/intc/xlnx-pmu-iomod-intc.h | 10 +- include/hw/intc/xlnx-zynqmp-ipi.h | 10 +- include/hw/ipack/ipack.h | 14 +- include/hw/ipmi/ipmi.h | 36 +- include/hw/isa/i8259_internal.h | 15 +- include/hw/isa/isa.h | 28 +- include/hw/isa/pc87312.h | 9 +- include/hw/isa/superio.h | 19 +- include/hw/m68k/mcf_fec.h | 5 +- include/hw/mem/memory-device.h | 11 +- include/hw/mem/nvdimm.h | 11 +- include/hw/mem/pc-dimm.h | 17 +- include/hw/mips/cps.h | 9 +- include/hw/misc/a9scu.h | 9 +- include/hw/misc/allwinner-cpucfg.h | 9 +- include/hw/misc/allwinner-h3-ccu.h | 9 +- include/hw/misc/allwinner-h3-dramc.h | 9 +- include/hw/misc/allwinner-h3-sysctrl.h | 9 +- include/hw/misc/allwinner-sid.h | 9 +- include/hw/misc/arm11scu.h | 9 +- include/hw/misc/armsse-cpuid.h | 9 +- include/hw/misc/armsse-mhu.h | 9 +- include/hw/misc/aspeed_scu.h | 18 +- include/hw/misc/aspeed_sdmc.h | 18 +- include/hw/misc/aspeed_xdma.h | 9 +- include/hw/misc/auxbus.h | 12 +- include/hw/misc/avr_power.h | 9 +- include/hw/misc/bcm2835_mbox.h | 10 +- include/hw/misc/bcm2835_mphi.h | 5 +- include/hw/misc/bcm2835_property.h | 10 +- include/hw/misc/bcm2835_rng.h | 10 +- include/hw/misc/bcm2835_thermal.h | 10 +- include/hw/misc/grlib_ahb_apb_pnp.h | 9 +- include/hw/misc/imx25_ccm.h | 9 +- include/hw/misc/imx31_ccm.h | 9 +- include/hw/misc/imx6_ccm.h | 9 +- include/hw/misc/imx6_src.h | 9 +- include/hw/misc/imx6ul_ccm.h | 9 +- include/hw/misc/imx7_ccm.h | 17 +- include/hw/misc/imx7_gpr.h | 9 +- include/hw/misc/imx7_snvs.h | 9 +- include/hw/misc/imx_ccm.h | 19 +- include/hw/misc/imx_rngc.h | 9 +- include/hw/misc/iotkit-secctl.h | 6 +- include/hw/misc/iotkit-sysctl.h | 10 +- include/hw/misc/iotkit-sysinfo.h | 10 +- include/hw/misc/mac_via.h | 27 +- include/hw/misc/macio/cuda.h | 18 +- include/hw/misc/macio/gpio.h | 9 +- include/hw/misc/macio/macio.h | 43 +- include/hw/misc/macio/pmu.h | 18 +- include/hw/misc/max111x.h | 10 +- include/hw/misc/mips_cmgcr.h | 6 +- include/hw/misc/mips_cpc.h | 9 +- include/hw/misc/mips_itu.h | 9 +- include/hw/misc/mos6522.h | 18 +- include/hw/misc/mps2-fpgaio.h | 9 +- include/hw/misc/mps2-scc.h | 9 +- include/hw/misc/msf2-sysreg.h | 9 +- include/hw/misc/nrf51_rng.h | 9 +- include/hw/misc/pca9552.h | 9 +- include/hw/misc/stm32f2xx_syscfg.h | 10 +- include/hw/misc/stm32f4xx_exti.h | 10 +- include/hw/misc/stm32f4xx_syscfg.h | 10 +- include/hw/misc/tz-mpc.h | 6 +- include/hw/misc/tz-msc.h | 9 +- include/hw/misc/tz-ppc.h | 6 +- include/hw/misc/unimp.h | 10 +- include/hw/misc/vmcoreinfo.h | 9 +- include/hw/misc/zynq-xadc.h | 10 +- include/hw/net/allwinner-sun8i-emac.h | 9 +- include/hw/net/allwinner_emac.h | 9 +- include/hw/net/cadence_gem.h | 9 +- include/hw/net/ftgmac100.h | 17 +- include/hw/net/imx_fec.h | 9 +- include/hw/net/lance.h | 10 +- include/hw/net/lasi_82596.h | 10 +- include/hw/net/msf2-emac.h | 10 +- include/hw/nmi.h | 11 +- include/hw/nubus/mac-nubus-bridge.h | 10 +- include/hw/nubus/nubus.h | 19 +- include/hw/nvram/fw_cfg.h | 21 +- include/hw/nvram/nrf51_nvm.h | 9 +- include/hw/or-irq.h | 3 +- include/hw/pci-bridge/simba.h | 10 +- include/hw/pci-host/designware.h | 16 +- include/hw/pci-host/gpex.h | 19 +- include/hw/pci-host/i440fx.h | 10 +- include/hw/pci-host/pnv_phb3.h | 20 +- include/hw/pci-host/pnv_phb4.h | 21 +- include/hw/pci-host/q35.h | 19 +- include/hw/pci-host/sabre.h | 19 +- include/hw/pci-host/spapr.h | 7 +- include/hw/pci-host/uninorth.h | 31 +- include/hw/pci-host/xilinx-pcie.h | 19 +- include/hw/pci/pci.h | 20 +- include/hw/pci/pci_bridge.h | 4 +- include/hw/pci/pci_bus.h | 4 +- include/hw/pci/pci_host.h | 14 +- include/hw/pci/pcie_host.h | 5 +- include/hw/pci/pcie_port.h | 18 +- include/hw/pcmcia.h | 19 +- include/hw/platform-bus.h | 9 +- include/hw/ppc/mac_dbdma.h | 9 +- include/hw/ppc/openpic.h | 9 +- include/hw/ppc/pnv.h | 75 +- include/hw/ppc/pnv_core.h | 26 +- include/hw/ppc/pnv_homer.h | 22 +- include/hw/ppc/pnv_lpc.h | 28 +- include/hw/ppc/pnv_occ.h | 22 +- include/hw/ppc/pnv_pnor.h | 9 +- include/hw/ppc/pnv_psi.h | 35 +- include/hw/ppc/pnv_xive.h | 16 +- include/hw/ppc/pnv_xscom.h | 10 +- include/hw/ppc/spapr.h | 24 +- include/hw/ppc/spapr_cpu_core.h | 17 +- include/hw/ppc/spapr_drc.h | 80 +-- include/hw/ppc/spapr_irq.h | 48 +- include/hw/ppc/spapr_tpm_proxy.h | 9 +- include/hw/ppc/spapr_vio.h | 19 +- include/hw/ppc/spapr_xive.h | 19 +- include/hw/ppc/xics.h | 31 +- include/hw/ppc/xics_spapr.h | 5 +- include/hw/ppc/xive.h | 77 ++- include/hw/qdev-core.h | 15 +- include/hw/rdma/rdma.h | 11 +- include/hw/register.h | 4 +- include/hw/resettable.h | 11 +- include/hw/riscv/opentitan.h | 48 +- include/hw/riscv/riscv_hart.h | 10 +- include/hw/riscv/sifive_clint.h | 10 +- include/hw/riscv/sifive_e.h | 57 +- include/hw/riscv/sifive_e_prci.h | 10 +- include/hw/riscv/sifive_gpio.h | 9 +- include/hw/riscv/sifive_plic.h | 10 +- include/hw/riscv/sifive_test.h | 10 +- include/hw/riscv/sifive_u.h | 51 +- include/hw/riscv/sifive_u_otp.h | 10 +- include/hw/riscv/sifive_u_prci.h | 10 +- include/hw/riscv/sifive_uart.h | 10 +- include/hw/riscv/virt.h | 10 +- include/hw/rtc/allwinner-rtc.h | 18 +- include/hw/rtc/aspeed_rtc.h | 9 +- include/hw/rtc/goldfish_rtc.h | 10 +- include/hw/rtc/m48t59.h | 11 +- include/hw/rtc/mc146818rtc.h | 9 +- include/hw/rtc/pl031.h | 9 +- include/hw/rtc/xlnx-zynqmp-rtc.h | 10 +- include/hw/rx/rx62n.h | 9 +- include/hw/s390x/3270-ccw.h | 19 +- include/hw/s390x/ap-device.h | 10 +- include/hw/s390x/css-bridge.h | 18 +- include/hw/s390x/event-facility.h | 35 +- include/hw/s390x/s390-ccw.h | 19 +- include/hw/s390x/s390-virtio-ccw.h | 17 +- include/hw/s390x/s390_flic.h | 31 +- include/hw/s390x/sclp.h | 18 +- include/hw/s390x/storage-attributes.h | 37 +- include/hw/s390x/storage-keys.h | 28 +- include/hw/s390x/tod.h | 18 +- include/hw/s390x/vfio-ccw.h | 7 +- include/hw/scsi/esp.h | 9 +- include/hw/scsi/scsi.h | 19 +- include/hw/sd/allwinner-sdhost.h | 18 +- include/hw/sd/aspeed_sdhci.h | 10 +- include/hw/sd/bcm2835_sdhost.h | 10 +- include/hw/sd/sd.h | 23 +- include/hw/sd/sdhci.h | 13 +- include/hw/southbridge/piix.h | 10 +- include/hw/sparc/sparc32_dma.h | 34 +- include/hw/sparc/sun4m_iommu.h | 9 +- include/hw/sparc/sun4u_iommu.h | 9 +- include/hw/ssi/aspeed_smc.h | 18 +- include/hw/ssi/imx_spi.h | 9 +- include/hw/ssi/mss-spi.h | 9 +- include/hw/ssi/pl022.h | 9 +- include/hw/ssi/ssi.h | 11 +- include/hw/ssi/stm32f2xx_spi.h | 10 +- include/hw/ssi/xilinx_spips.h | 32 +- include/hw/stream.h | 11 +- include/hw/sysbus.h | 17 +- include/hw/timer/a9gtimer.h | 6 +- include/hw/timer/allwinner-a10-pit.h | 6 +- include/hw/timer/arm_mptimer.h | 10 +- include/hw/timer/armv7m_systick.h | 9 +- include/hw/timer/aspeed_timer.h | 19 +- include/hw/timer/avr_timer16.h | 10 +- include/hw/timer/bcm2835_systmr.h | 10 +- include/hw/timer/cmsdk-apb-dualtimer.h | 7 +- include/hw/timer/cmsdk-apb-timer.h | 10 +- include/hw/timer/digic-timer.h | 9 +- include/hw/timer/i8254.h | 11 +- include/hw/timer/i8254_internal.h | 8 +- include/hw/timer/imx_epit.h | 9 +- include/hw/timer/imx_gpt.h | 9 +- include/hw/timer/mss-timer.h | 10 +- include/hw/timer/nrf51_timer.h | 9 +- include/hw/timer/renesas_cmt.h | 9 +- include/hw/timer/renesas_tmr.h | 9 +- include/hw/timer/stm32f2xx_timer.h | 10 +- include/hw/usb.h | 17 +- include/hw/usb/chipidea.h | 9 +- include/hw/usb/imx-usb-phy.h | 9 +- include/hw/vfio/vfio-amd-xgbe.h | 11 +- include/hw/vfio/vfio-calxeda-xgmac.h | 21 +- include/hw/vfio/vfio-platform.h | 19 +- include/hw/virtio/vhost-scsi-common.h | 10 +- include/hw/virtio/vhost-scsi.h | 10 +- include/hw/virtio/vhost-user-blk.h | 10 +- include/hw/virtio/vhost-user-fs.h | 10 +- include/hw/virtio/vhost-user-scsi.h | 10 +- include/hw/virtio/vhost-user-vsock.h | 10 +- include/hw/virtio/vhost-vsock-common.h | 10 +- include/hw/virtio/vhost-vsock.h | 10 +- include/hw/virtio/virtio-balloon.h | 10 +- include/hw/virtio/virtio-blk.h | 10 +- include/hw/virtio/virtio-bus.h | 15 +- include/hw/virtio/virtio-crypto.h | 10 +- include/hw/virtio/virtio-gpu-pci.h | 5 +- include/hw/virtio/virtio-gpu.h | 33 +- include/hw/virtio/virtio-input.h | 29 +- include/hw/virtio/virtio-iommu.h | 10 +- include/hw/virtio/virtio-mem.h | 17 +- include/hw/virtio/virtio-mmio.h | 19 +- include/hw/virtio/virtio-net.h | 7 +- include/hw/virtio/virtio-pmem.h | 17 +- include/hw/virtio/virtio-rng.h | 10 +- include/hw/virtio/virtio-scsi.h | 19 +- include/hw/virtio/virtio-serial.h | 23 +- include/hw/virtio/virtio.h | 14 +- include/hw/vmstate-if.h | 11 +- include/hw/watchdog/cmsdk-apb-watchdog.h | 10 +- include/hw/watchdog/wdt_aspeed.h | 19 +- include/hw/watchdog/wdt_diag288.h | 19 +- include/hw/watchdog/wdt_imx2.h | 9 +- include/hw/xen/xen-block.h | 39 +- include/hw/xen/xen-bus.h | 37 +- include/hw/xen/xen-legacy-backend.h | 6 +- include/io/channel-buffer.h | 7 +- include/io/channel-command.h | 7 +- include/io/channel-file.h | 7 +- include/io/channel-socket.h | 7 +- include/io/channel-tls.h | 7 +- include/io/channel-websock.h | 7 +- include/io/channel.h | 12 +- include/io/dns-resolver.h | 13 +- include/io/net-listener.h | 14 +- include/net/can_emu.h | 8 +- include/net/can_host.h | 21 +- include/net/filter.h | 13 +- include/qom/object.h | 330 ++++++++- include/qom/object_interfaces.h | 13 +- include/scsi/pr-manager.h | 16 +- include/sysemu/accel.h | 18 +- include/sysemu/cryptodev.h | 16 +- include/sysemu/hostmem.h | 10 +- include/sysemu/hvf.h | 8 +- include/sysemu/iothread.h | 9 +- include/sysemu/kvm.h | 7 + include/sysemu/kvm_int.h | 5 - include/sysemu/rng-random.h | 5 +- include/sysemu/rng.h | 10 +- include/sysemu/tpm.h | 11 +- include/sysemu/tpm_backend.h | 12 +- include/sysemu/vhost-user-backend.h | 17 +- include/ui/console.h | 10 +- migration/migration.h | 14 +- target/alpha/cpu-qom.h | 14 +- target/arm/cpu-qom.h | 25 +- target/arm/idau.h | 11 +- target/avr/cpu-qom.h | 14 +- target/cris/cpu-qom.h | 14 +- target/hppa/cpu-qom.h | 14 +- target/i386/cpu-qom.h | 14 +- target/i386/hvf/hvf-i386.h | 4 +- target/lm32/cpu-qom.h | 14 +- target/m68k/cpu-qom.h | 14 +- target/microblaze/cpu-qom.h | 14 +- target/mips/cpu-qom.h | 14 +- target/moxie/cpu.h | 17 +- target/nios2/cpu.h | 17 +- target/openrisc/cpu.h | 17 +- target/ppc/cpu-qom.h | 14 +- target/ppc/cpu.h | 11 +- target/riscv/cpu.h | 17 +- target/rx/cpu-qom.h | 13 +- target/rx/cpu.h | 1 - target/s390x/cpu-qom.h | 14 +- target/sh4/cpu-qom.h | 14 +- target/sparc/cpu-qom.h | 14 +- target/tilegx/cpu.h | 17 +- target/tricore/cpu-qom.h | 14 +- target/unicore32/cpu-qom.h | 14 +- target/xtensa/cpu-qom.h | 14 +- accel/accel.c | 6 +- accel/kvm/kvm-all.c | 6 +- accel/qtest.c | 6 +- accel/tcg/tcg-all.c | 15 +- accel/xen/xen-all.c | 6 +- authz/base.c | 6 +- authz/list.c | 7 +- authz/listfile.c | 7 +- authz/pamacct.c | 7 +- authz/simple.c | 7 +- backends/cryptodev-builtin.c | 15 +- backends/cryptodev-vhost-user.c | 18 +- backends/cryptodev.c | 7 +- backends/dbus-vmstate.c | 23 +- backends/hostmem-file.c | 13 +- backends/hostmem-memfd.c | 9 +- backends/hostmem-ram.c | 6 +- backends/hostmem.c | 6 +- backends/rng-builtin.c | 15 +- backends/rng-egd.c | 16 +- backends/rng-random.c | 6 +- backends/rng.c | 6 +- backends/tpm/tpm_backend.c | 8 +- backends/tpm/tpm_emulator.c | 16 +- backends/tpm/tpm_passthrough.c | 13 +- backends/vhost-user.c | 6 +- block/throttle-groups.c | 10 +- chardev/baum.c | 15 +- chardev/char-console.c | 6 +- chardev/char-fd.c | 6 +- chardev/char-mux.c | 6 +- chardev/char-null.c | 7 +- chardev/char-parallel.c | 23 +- chardev/char-pty.c | 15 +- chardev/char-ringbuf.c | 18 +- chardev/char-socket.c | 16 +- chardev/char-udp.c | 15 +- chardev/char-win-stdio.c | 16 +- chardev/char-win.c | 6 +- chardev/char.c | 6 +- chardev/msmouse.c | 16 +- chardev/spice.c | 10 +- chardev/testdev.c | 16 +- chardev/wctablet.c | 16 +- crypto/secret.c | 24 +- crypto/secret_common.c | 32 +- crypto/secret_keyring.c | 28 +- crypto/tls-cipher-suites.c | 8 +- crypto/tlscreds.c | 25 +- crypto/tlscredsanon.c | 23 +- crypto/tlscredspsk.c | 25 +- crypto/tlscredsx509.c | 29 +- gdbstub.c | 6 +- hw/9pfs/virtio-9p-device.c | 6 +- hw/acpi/generic_event_device.c | 6 +- hw/acpi/piix4.c | 16 +- hw/acpi/vmgenid.c | 6 +- hw/adc/stm32f2xx_adc.c | 6 +- hw/alpha/typhoon.c | 18 +- hw/arm/allwinner-a10.c | 6 +- hw/arm/allwinner-h3.c | 130 ++-- hw/arm/armsse.c | 26 +- hw/arm/armv7m.c | 8 +- hw/arm/aspeed.c | 4 +- hw/arm/aspeed_ast2600.c | 210 +++--- hw/arm/aspeed_soc.c | 230 ++++--- hw/arm/bcm2835_peripherals.c | 6 +- hw/arm/bcm2836.c | 2 +- hw/arm/boot.c | 6 +- hw/arm/collie.c | 16 +- hw/arm/digic.c | 6 +- hw/arm/exynos4210.c | 6 +- hw/arm/exynos4_boards.c | 8 +- hw/arm/fsl-imx25.c | 6 +- hw/arm/fsl-imx31.c | 6 +- hw/arm/fsl-imx6.c | 6 +- hw/arm/fsl-imx6ul.c | 6 +- hw/arm/fsl-imx7.c | 6 +- hw/arm/gumstix.c | 8 +- hw/arm/highbank.c | 24 +- hw/arm/integratorcp.c | 38 +- hw/arm/microbit.c | 16 +- hw/arm/mps2-tz.c | 29 +- hw/arm/mps2.c | 29 +- hw/arm/msf2-soc.c | 6 +- hw/arm/musca.c | 29 +- hw/arm/musicpal.c | 96 +-- hw/arm/nrf51_soc.c | 6 +- hw/arm/nseries.c | 8 +- hw/arm/omap_sx1.c | 8 +- hw/arm/orangepi.c | 6 +- hw/arm/palm.c | 16 +- hw/arm/pxa2xx.c | 49 +- hw/arm/pxa2xx_gpio.c | 13 +- hw/arm/pxa2xx_pic.c | 16 +- hw/arm/raspi.c | 19 +- hw/arm/realview.c | 12 +- hw/arm/sbsa-ref.c | 16 +- hw/arm/smmu-common.c | 6 +- hw/arm/spitz.c | 89 ++- hw/arm/stellaris.c | 46 +- hw/arm/stm32f205_soc.c | 6 +- hw/arm/stm32f405_soc.c | 6 +- hw/arm/strongarm.c | 65 +- hw/arm/tosa.c | 28 +- hw/arm/versatilepb.c | 24 +- hw/arm/vexpress.c | 29 +- hw/arm/virt.c | 6 +- hw/arm/xilinx_zynq.c | 16 +- hw/arm/xlnx-versal-virt.c | 16 +- hw/arm/xlnx-versal.c | 6 +- hw/arm/xlnx-zcu102.c | 16 +- hw/arm/xlnx-zynqmp.c | 6 +- hw/arm/z2.c | 17 +- hw/audio/ac97.c | 12 +- hw/audio/adlib.c | 11 +- hw/audio/cs4231.c | 16 +- hw/audio/cs4231a.c | 11 +- hw/audio/es1370.c | 12 +- hw/audio/gus.c | 11 +- hw/audio/hda-codec.c | 16 +- hw/audio/intel-hda.c | 15 +- hw/audio/marvell_88w8618.c | 16 +- hw/audio/milkymist-ac97.c | 13 +- hw/audio/pcspk.c | 11 +- hw/audio/pl041.c | 15 +- hw/audio/sb16.c | 11 +- hw/audio/wm8750.c | 15 +- hw/avr/arduino.c | 19 +- hw/avr/atmega.c | 12 +- hw/block/fdc.c | 50 +- hw/block/m25p80.c | 21 +- hw/block/nand.c | 11 +- hw/block/nvme.c | 6 +- hw/block/onenand.c | 15 +- hw/block/pflash_cfi01.c | 6 +- hw/block/pflash_cfi02.c | 6 +- hw/block/swim.c | 20 +- hw/block/vhost-user-blk.c | 6 +- hw/block/virtio-blk.c | 6 +- hw/block/xen-block.c | 10 +- hw/char/avr_usart.c | 6 +- hw/char/bcm2835_aux.c | 6 +- hw/char/cadence_uart.c | 6 +- hw/char/cmsdk-apb-uart.c | 6 +- hw/char/debugcon.c | 16 +- hw/char/digic-uart.c | 6 +- hw/char/escc.c | 6 +- hw/char/etraxfs_ser.c | 16 +- hw/char/exynos4210_uart.c | 16 +- hw/char/grlib_apbuart.c | 16 +- hw/char/ibex_uart.c | 6 +- hw/char/imx_serial.c | 6 +- hw/char/ipoctal232.c | 11 +- hw/char/lm32_juart.c | 12 +- hw/char/lm32_uart.c | 12 +- hw/char/mcf_uart.c | 15 +- hw/char/milkymist-uart.c | 13 +- hw/char/nrf51_uart.c | 6 +- hw/char/parallel.c | 16 +- hw/char/pl011.c | 8 +- hw/char/renesas_sci.c | 6 +- hw/char/sclpconsole-lm.c | 16 +- hw/char/sclpconsole.c | 16 +- hw/char/serial-isa.c | 15 +- hw/char/serial-pci-multi.c | 8 +- hw/char/serial-pci.c | 15 +- hw/char/serial.c | 10 +- hw/char/spapr_vty.c | 12 +- hw/char/stm32f2xx_usart.c | 6 +- hw/char/terminal3270.c | 16 +- hw/char/virtio-console.c | 18 +- hw/char/virtio-serial-bus.c | 14 +- hw/char/xilinx_uartlite.c | 16 +- hw/core/bus.c | 6 +- hw/core/clock.c | 6 +- hw/core/cpu.c | 6 +- hw/core/fw-path-provider.c | 6 +- hw/core/generic-loader.c | 6 +- hw/core/hotplug.c | 6 +- hw/core/irq.c | 9 +- hw/core/machine.c | 6 +- hw/core/nmi.c | 6 +- hw/core/or-irq.c | 6 +- hw/core/platform-bus.c | 6 +- hw/core/qdev.c | 6 +- hw/core/register.c | 6 +- hw/core/resettable.c | 6 +- hw/core/split-irq.c | 6 +- hw/core/stream.c | 6 +- hw/core/sysbus.c | 9 +- hw/core/vmstate-if.c | 6 +- hw/cpu/a15mpcore.c | 6 +- hw/cpu/a9mpcore.c | 6 +- hw/cpu/arm11mpcore.c | 6 +- hw/cpu/cluster.c | 6 +- hw/cpu/core.c | 6 +- hw/cpu/realview_mpcore.c | 16 +- hw/display/ads7846.c | 15 +- hw/display/artist.c | 15 +- hw/display/ati.c | 6 +- hw/display/bcm2835_fb.c | 6 +- hw/display/bochs-display.c | 16 +- hw/display/cg3.c | 15 +- hw/display/cirrus_vga.c | 16 +- hw/display/cirrus_vga_isa.c | 16 +- hw/display/dpcd.c | 6 +- hw/display/exynos4210_fimd.c | 16 +- hw/display/g364fb.c | 15 +- hw/display/i2c-ddc.c | 6 +- hw/display/jazz_led.c | 15 +- hw/display/macfb.c | 12 +- hw/display/milkymist-tmu2.c | 13 +- hw/display/milkymist-vgafb.c | 13 +- hw/display/next-fb.c | 12 +- hw/display/pl110.c | 41 +- hw/display/qxl.c | 10 +- hw/display/ramfb-standalone.c | 15 +- hw/display/sii9022.c | 15 +- hw/display/sm501.c | 26 +- hw/display/ssd0303.c | 15 +- hw/display/ssd0323.c | 15 +- hw/display/tcx.c | 15 +- hw/display/vga-isa.c | 15 +- hw/display/vga-pci.c | 19 +- hw/display/vhost-user-gpu-pci.c | 10 +- hw/display/vhost-user-gpu.c | 9 +- hw/display/vhost-user-vga.c | 10 +- hw/display/virtio-gpu-base.c | 7 +- hw/display/virtio-gpu-pci.c | 12 +- hw/display/virtio-gpu.c | 6 +- hw/display/virtio-vga.c | 12 +- hw/display/vmware_vga.c | 11 +- hw/display/xlnx_dp.c | 6 +- hw/dma/bcm2835_dma.c | 6 +- hw/dma/i82374.c | 15 +- hw/dma/i8257.c | 8 +- hw/dma/pl080.c | 8 +- hw/dma/pl330.c | 10 +- hw/dma/puv3_dma.c | 15 +- hw/dma/pxa2xx_dma.c | 15 +- hw/dma/rc4030.c | 18 +- hw/dma/sparc32_dma.c | 12 +- hw/dma/xilinx_axidma.c | 29 +- hw/dma/xlnx-zdma.c | 6 +- hw/dma/xlnx-zynq-devcfg.c | 6 +- hw/dma/xlnx_dpdma.c | 6 +- hw/gpio/aspeed_gpio.c | 14 +- hw/gpio/bcm2835_gpio.c | 6 +- hw/gpio/gpio_key.c | 15 +- hw/gpio/imx_gpio.c | 6 +- hw/gpio/max7310.c | 15 +- hw/gpio/mpc8xxx.c | 15 +- hw/gpio/nrf51_gpio.c | 6 +- hw/gpio/omap_gpio.c | 8 +- hw/gpio/pl061.c | 17 +- hw/gpio/puv3_gpio.c | 15 +- hw/gpio/zaurus.c | 12 +- hw/hppa/dino.c | 16 +- hw/hppa/lasi.c | 16 +- hw/hyperv/hyperv.c | 15 +- hw/hyperv/hyperv_testdev.c | 11 +- hw/hyperv/vmbus.c | 13 +- hw/i2c/aspeed_i2c.c | 12 +- hw/i2c/bitbang_i2c.c | 15 +- hw/i2c/core.c | 8 +- hw/i2c/exynos4210_i2c.c | 16 +- hw/i2c/imx_i2c.c | 6 +- hw/i2c/microbit_i2c.c | 6 +- hw/i2c/mpc_i2c.c | 16 +- hw/i2c/omap_i2c.c | 6 +- hw/i2c/ppc4xx_i2c.c | 6 +- hw/i2c/smbus_eeprom.c | 16 +- hw/i2c/smbus_ich9.c | 16 +- hw/i2c/smbus_slave.c | 6 +- hw/i2c/versatile_i2c.c | 13 +- hw/i386/amd_iommu.c | 12 +- hw/i386/intel_iommu.c | 10 +- hw/i386/kvm/apic.c | 7 +- hw/i386/kvm/clock.c | 15 +- hw/i386/kvm/i8254.c | 24 +- hw/i386/kvm/i8259.c | 18 +- hw/i386/kvm/ioapic.c | 6 +- hw/i386/kvmvapic.c | 15 +- hw/i386/microvm.c | 6 +- hw/i386/pc.c | 6 +- hw/i386/pc_piix.c | 7 +- hw/i386/port92.c | 15 +- hw/i386/vmmouse.c | 16 +- hw/i386/vmport.c | 15 +- hw/i386/x86-iommu.c | 8 +- hw/i386/x86.c | 6 +- hw/i386/xen/xen_apic.c | 7 +- hw/i386/xen/xen_platform.c | 16 +- hw/i386/xen/xen_pvdevice.c | 16 +- hw/ide/ahci-allwinner.c | 9 +- hw/ide/ahci.c | 6 +- hw/ide/cmd646.c | 6 +- hw/ide/ich.c | 6 +- hw/ide/isa.c | 15 +- hw/ide/macio.c | 6 +- hw/ide/microdrive.c | 17 +- hw/ide/mmio.c | 15 +- hw/ide/pci.c | 6 +- hw/ide/piix.c | 10 +- hw/ide/qdev.c | 14 +- hw/ide/sii3112.c | 14 +- hw/ide/via.c | 6 +- hw/input/adb-kbd.c | 24 +- hw/input/adb-mouse.c | 24 +- hw/input/adb.c | 8 +- hw/input/lm832x.c | 15 +- hw/input/milkymist-softusb.c | 13 +- hw/input/pckbd.c | 8 +- hw/input/pl050.c | 19 +- hw/input/vhost-user-input.c | 6 +- hw/input/virtio-input-hid.c | 15 +- hw/input/virtio-input-host.c | 6 +- hw/input/virtio-input.c | 6 +- hw/intc/allwinner-a10-pic.c | 6 +- hw/intc/apic.c | 13 +- hw/intc/apic_common.c | 6 +- hw/intc/arm_gic.c | 6 +- hw/intc/arm_gic_common.c | 6 +- hw/intc/arm_gic_kvm.c | 23 +- hw/intc/arm_gicv2m.c | 15 +- hw/intc/arm_gicv3.c | 6 +- hw/intc/arm_gicv3_common.c | 6 +- hw/intc/arm_gicv3_its_common.c | 6 +- hw/intc/arm_gicv3_its_kvm.c | 20 +- hw/intc/arm_gicv3_kvm.c | 21 +- hw/intc/armv7m_nvic.c | 6 +- hw/intc/aspeed_vic.c | 6 +- hw/intc/bcm2835_ic.c | 6 +- hw/intc/bcm2836_control.c | 6 +- hw/intc/etraxfs_pic.c | 11 +- hw/intc/exynos4210_combiner.c | 16 +- hw/intc/exynos4210_gic.c | 31 +- hw/intc/grlib_irqmp.c | 15 +- hw/intc/heathrow_pic.c | 6 +- hw/intc/i8259.c | 16 +- hw/intc/i8259_common.c | 6 +- hw/intc/ibex_plic.c | 6 +- hw/intc/imx_avic.c | 6 +- hw/intc/imx_gpcv2.c | 6 +- hw/intc/intc.c | 6 +- hw/intc/ioapic.c | 7 +- hw/intc/ioapic_common.c | 6 +- hw/intc/lm32_pic.c | 12 +- hw/intc/loongson_liointc.c | 11 +- hw/intc/mips_gic.c | 6 +- hw/intc/nios2_iic.c | 16 +- hw/intc/omap_intc.c | 10 +- hw/intc/ompic.c | 12 +- hw/intc/openpic.c | 6 +- hw/intc/openpic_kvm.c | 16 +- hw/intc/pl190.c | 15 +- hw/intc/pnv_xive.c | 6 +- hw/intc/puv3_intc.c | 15 +- hw/intc/realview_gic.c | 6 +- hw/intc/rx_icu.c | 6 +- hw/intc/s390_flic.c | 8 +- hw/intc/s390_flic_kvm.c | 22 +- hw/intc/slavio_intctl.c | 16 +- hw/intc/spapr_xive.c | 6 +- hw/intc/xics.c | 10 +- hw/intc/xics_pnv.c | 6 +- hw/intc/xics_spapr.c | 6 +- hw/intc/xilinx_intc.c | 10 +- hw/intc/xive.c | 18 +- hw/intc/xlnx-pmu-iomod-intc.c | 6 +- hw/intc/xlnx-zynqmp-ipi.c | 6 +- hw/ipack/ipack.c | 8 +- hw/ipack/tpci200.c | 16 +- hw/ipmi/ipmi.c | 8 +- hw/ipmi/ipmi_bmc_extern.c | 16 +- hw/ipmi/ipmi_bmc_sim.c | 6 +- hw/ipmi/isa_ipmi_bt.c | 16 +- hw/ipmi/isa_ipmi_kcs.c | 16 +- hw/ipmi/pci_ipmi_bt.c | 16 +- hw/ipmi/pci_ipmi_kcs.c | 16 +- hw/ipmi/smbus_ipmi.c | 15 +- hw/isa/i82378.c | 16 +- hw/isa/isa-bus.c | 13 +- hw/isa/isa-superio.c | 8 +- hw/isa/lpc_ich9.c | 6 +- hw/isa/pc87312.c | 6 +- hw/isa/piix3.c | 14 +- hw/isa/piix4.c | 16 +- hw/isa/smc37c669-superio.c | 6 +- hw/isa/vt82c686.c | 51 +- hw/lm32/lm32_boards.c | 8 +- hw/m68k/mcf_intc.c | 15 +- hw/m68k/next-cube.c | 15 +- hw/m68k/next-kbd.c | 15 +- hw/m68k/q800.c | 6 +- hw/mem/memory-device.c | 6 +- hw/mem/nvdimm.c | 6 +- hw/mem/pc-dimm.c | 6 +- hw/microblaze/xlnx-zynqmp-pmu.c | 16 +- hw/mips/boston.c | 15 +- hw/mips/cps.c | 6 +- hw/mips/gt64xxx_pci.c | 19 +- hw/mips/jazz.c | 8 +- hw/mips/malta.c | 15 +- hw/misc/a9scu.c | 6 +- hw/misc/allwinner-cpucfg.c | 6 +- hw/misc/allwinner-h3-ccu.c | 6 +- hw/misc/allwinner-h3-dramc.c | 6 +- hw/misc/allwinner-h3-sysctrl.c | 6 +- hw/misc/allwinner-sid.c | 6 +- hw/misc/applesmc.c | 12 +- hw/misc/arm11scu.c | 6 +- hw/misc/arm_integrator_debug.c | 16 +- hw/misc/arm_l2x0.c | 15 +- hw/misc/arm_sysctl.c | 16 +- hw/misc/armsse-cpuid.c | 6 +- hw/misc/armsse-mhu.c | 6 +- hw/misc/aspeed_scu.c | 15 +- hw/misc/aspeed_sdmc.c | 12 +- hw/misc/aspeed_xdma.c | 6 +- hw/misc/auxbus.c | 12 +- hw/misc/avr_power.c | 6 +- hw/misc/bcm2835_mbox.c | 6 +- hw/misc/bcm2835_mphi.c | 6 +- hw/misc/bcm2835_property.c | 6 +- hw/misc/bcm2835_rng.c | 6 +- hw/misc/bcm2835_thermal.c | 6 +- hw/misc/debugexit.c | 16 +- hw/misc/eccmemctl.c | 15 +- hw/misc/edu.c | 9 +- hw/misc/empty_slot.c | 15 +- hw/misc/exynos4210_clk.c | 12 +- hw/misc/exynos4210_pmu.c | 16 +- hw/misc/exynos4210_rng.c | 16 +- hw/misc/grlib_ahb_apb_pnp.c | 8 +- hw/misc/imx25_ccm.c | 6 +- hw/misc/imx31_ccm.c | 6 +- hw/misc/imx6_ccm.c | 6 +- hw/misc/imx6_src.c | 6 +- hw/misc/imx6ul_ccm.c | 6 +- hw/misc/imx7_ccm.c | 8 +- hw/misc/imx7_gpr.c | 6 +- hw/misc/imx7_snvs.c | 6 +- hw/misc/imx_ccm.c | 8 +- hw/misc/imx_rngc.c | 6 +- hw/misc/iotkit-secctl.c | 6 +- hw/misc/iotkit-sysctl.c | 6 +- hw/misc/iotkit-sysinfo.c | 6 +- hw/misc/ivshmem.c | 34 +- hw/misc/mac_via.c | 24 +- hw/misc/macio/cuda.c | 14 +- hw/misc/macio/gpio.c | 6 +- hw/misc/macio/mac_dbdma.c | 6 +- hw/misc/macio/macio.c | 12 +- hw/misc/macio/pmu.c | 14 +- hw/misc/max111x.c | 10 +- hw/misc/milkymist-hpdmc.c | 13 +- hw/misc/milkymist-pfpu.c | 13 +- hw/misc/mips_cmgcr.c | 6 +- hw/misc/mips_cpc.c | 6 +- hw/misc/mips_itu.c | 6 +- hw/misc/mos6522.c | 14 +- hw/misc/mps2-fpgaio.c | 6 +- hw/misc/mps2-scc.c | 6 +- hw/misc/msf2-sysreg.c | 6 +- hw/misc/mst_fpga.c | 16 +- hw/misc/nrf51_rng.c | 6 +- hw/misc/pc-testdev.c | 16 +- hw/misc/pca9552.c | 20 +- hw/misc/pci-testdev.c | 16 +- hw/misc/puv3_pm.c | 15 +- hw/misc/pvpanic.c | 16 +- hw/misc/sga.c | 15 +- hw/misc/slavio_misc.c | 25 +- hw/misc/stm32f2xx_syscfg.c | 6 +- hw/misc/stm32f4xx_exti.c | 6 +- hw/misc/stm32f4xx_syscfg.c | 6 +- hw/misc/tmp105.c | 6 +- hw/misc/tmp421.c | 20 +- hw/misc/tz-mpc.c | 8 +- hw/misc/tz-msc.c | 6 +- hw/misc/tz-ppc.c | 6 +- hw/misc/unimp.c | 6 +- hw/misc/vmcoreinfo.c | 6 +- hw/misc/zynq-xadc.c | 6 +- hw/misc/zynq_slcr.c | 15 +- hw/net/allwinner-sun8i-emac.c | 6 +- hw/net/allwinner_emac.c | 6 +- hw/net/cadence_gem.c | 6 +- hw/net/can/can_kvaser_pci.c | 16 +- hw/net/can/can_mioe3680_pci.c | 16 +- hw/net/can/can_pcm3680_pci.c | 16 +- hw/net/dp8393x.c | 15 +- hw/net/e1000.c | 25 +- hw/net/e1000e.c | 15 +- hw/net/etraxfs_eth.c | 17 +- hw/net/fsl_etsec/etsec.c | 6 +- hw/net/ftgmac100.c | 8 +- hw/net/imx_fec.c | 8 +- hw/net/lan9118.c | 15 +- hw/net/lance.c | 6 +- hw/net/lasi_i82596.c | 6 +- hw/net/mcf_fec.c | 10 +- hw/net/milkymist-minimac2.c | 13 +- hw/net/mipsnet.c | 15 +- hw/net/msf2-emac.c | 6 +- hw/net/ne2000-isa.c | 15 +- hw/net/ne2000-pci.c | 6 +- hw/net/opencores_eth.c | 15 +- hw/net/pcnet-pci.c | 16 +- hw/net/rocker/rocker.c | 11 +- hw/net/rtl8139.c | 16 +- hw/net/smc91c111.c | 15 +- hw/net/spapr_llan.c | 12 +- hw/net/stellaris_enet.c | 16 +- hw/net/sungem.c | 15 +- hw/net/sunhme.c | 15 +- hw/net/tulip.c | 10 +- hw/net/virtio-net.c | 6 +- hw/net/vmxnet3.c | 14 +- hw/net/xgmac.c | 15 +- hw/net/xilinx_axienet.c | 29 +- hw/net/xilinx_ethlite.c | 11 +- hw/nubus/mac-nubus-bridge.c | 6 +- hw/nubus/nubus-bridge.c | 7 +- hw/nubus/nubus-bus.c | 6 +- hw/nubus/nubus-device.c | 6 +- hw/nvram/ds1225y.c | 15 +- hw/nvram/eeprom_at24c.c | 15 +- hw/nvram/fw_cfg.c | 12 +- hw/nvram/mac_nvram.c | 6 +- hw/nvram/nrf51_nvm.c | 6 +- hw/nvram/spapr_nvram.c | 16 +- hw/pci-bridge/dec.c | 21 +- hw/pci-bridge/gen_pcie_root_port.c | 10 +- hw/pci-bridge/i82801b11.c | 6 +- hw/pci-bridge/ioh3420.c | 6 +- hw/pci-bridge/pci_bridge_dev.c | 16 +- hw/pci-bridge/pci_expander_bridge.c | 37 +- hw/pci-bridge/pcie_pci_bridge.c | 16 +- hw/pci-bridge/pcie_root_port.c | 6 +- hw/pci-bridge/simba.c | 6 +- hw/pci-bridge/xio3130_downstream.c | 6 +- hw/pci-bridge/xio3130_upstream.c | 6 +- hw/pci-host/bonito.c | 22 +- hw/pci-host/designware.c | 8 +- hw/pci-host/gpex.c | 8 +- hw/pci-host/grackle.c | 19 +- hw/pci-host/i440fx.c | 18 +- hw/pci-host/pnv_phb3.c | 17 +- hw/pci-host/pnv_phb3_msi.c | 6 +- hw/pci-host/pnv_phb3_pbcq.c | 6 +- hw/pci-host/pnv_phb4.c | 17 +- hw/pci-host/pnv_phb4_pec.c | 8 +- hw/pci-host/ppce500.c | 21 +- hw/pci-host/prep.c | 27 +- hw/pci-host/q35.c | 8 +- hw/pci-host/sabre.c | 8 +- hw/pci-host/uninorth.c | 22 +- hw/pci-host/versatile.c | 25 +- hw/pci-host/xen_igd_pt.c | 7 +- hw/pci-host/xilinx-pcie.c | 8 +- hw/pci/pci.c | 14 +- hw/pci/pci_bridge.c | 6 +- hw/pci/pci_host.c | 6 +- hw/pci/pcie_host.c | 6 +- hw/pci/pcie_port.c | 8 +- hw/pcmcia/pcmcia.c | 6 +- hw/pcmcia/pxa2xx.c | 10 +- hw/ppc/e500.c | 8 +- hw/ppc/e500plat.c | 6 +- hw/ppc/mac_newworld.c | 6 +- hw/ppc/mac_oldworld.c | 6 +- hw/ppc/mpc8544_guts.c | 12 +- hw/ppc/mpc8544ds.c | 6 +- hw/ppc/pnv_core.c | 6 +- hw/ppc/pnv_homer.c | 12 +- hw/ppc/pnv_lpc.c | 12 +- hw/ppc/pnv_occ.c | 12 +- hw/ppc/pnv_pnor.c | 6 +- hw/ppc/pnv_psi.c | 12 +- hw/ppc/pnv_xscom.c | 6 +- hw/ppc/ppc405_boards.c | 8 +- hw/ppc/ppc440_pcix.c | 16 +- hw/ppc/ppc440_uc.c | 16 +- hw/ppc/ppc4xx_pci.c | 16 +- hw/ppc/ppce500_spin.c | 15 +- hw/ppc/prep_systemio.c | 16 +- hw/ppc/rs6000_mc.c | 16 +- hw/ppc/spapr.c | 6 +- hw/ppc/spapr_drc.c | 16 +- hw/ppc/spapr_iommu.c | 8 +- hw/ppc/spapr_irq.c | 6 +- hw/ppc/spapr_pci.c | 6 +- hw/ppc/spapr_rng.c | 13 +- hw/ppc/spapr_rtc.c | 6 +- hw/ppc/spapr_tpm_proxy.c | 2 +- hw/ppc/spapr_vio.c | 10 +- hw/rdma/rdma.c | 6 +- hw/rdma/vmw/pvrdma_main.c | 8 +- hw/riscv/opentitan.c | 90 ++- hw/riscv/riscv_hart.c | 6 +- hw/riscv/sifive_clint.c | 6 +- hw/riscv/sifive_e.c | 94 ++- hw/riscv/sifive_e_prci.c | 6 +- hw/riscv/sifive_gpio.c | 6 +- hw/riscv/sifive_plic.c | 6 +- hw/riscv/sifive_test.c | 6 +- hw/riscv/sifive_u.c | 158 ++--- hw/riscv/sifive_u_otp.c | 6 +- hw/riscv/sifive_u_prci.c | 6 +- hw/riscv/virt.c | 6 +- hw/rtc/allwinner-rtc.c | 12 +- hw/rtc/aspeed_rtc.c | 6 +- hw/rtc/ds1338.c | 15 +- hw/rtc/exynos4210_rtc.c | 16 +- hw/rtc/goldfish_rtc.c | 6 +- hw/rtc/m41t80.c | 15 +- hw/rtc/m48t59-isa.c | 23 +- hw/rtc/m48t59.c | 23 +- hw/rtc/mc146818rtc.c | 6 +- hw/rtc/pl031.c | 6 +- hw/rtc/sun4v-rtc.c | 15 +- hw/rtc/twl92230.c | 15 +- hw/rtc/xlnx-zynqmp-rtc.c | 6 +- hw/rx/rx-gdbsim.c | 23 +- hw/rx/rx62n.c | 12 +- hw/s390x/3270-ccw.c | 6 +- hw/s390x/ap-bridge.c | 8 +- hw/s390x/ap-device.c | 6 +- hw/s390x/ccw-device.c | 6 +- hw/s390x/css-bridge.c | 8 +- hw/s390x/event-facility.c | 10 +- hw/s390x/ipl.c | 6 +- hw/s390x/s390-ccw.c | 6 +- hw/s390x/s390-pci-bus.c | 14 +- hw/s390x/s390-skeys-kvm.c | 8 +- hw/s390x/s390-skeys.c | 8 +- hw/s390x/s390-stattrib-kvm.c | 6 +- hw/s390x/s390-stattrib.c | 8 +- hw/s390x/s390-virtio-ccw.c | 20 +- hw/s390x/sclp.c | 6 +- hw/s390x/sclpcpu.c | 8 +- hw/s390x/sclpquiesce.c | 8 +- hw/s390x/tod-kvm.c | 8 +- hw/s390x/tod-qemu.c | 8 +- hw/s390x/tod.c | 6 +- hw/s390x/vhost-vsock-ccw.c | 6 +- hw/s390x/virtio-ccw-9p.c | 6 +- hw/s390x/virtio-ccw-balloon.c | 6 +- hw/s390x/virtio-ccw-blk.c | 6 +- hw/s390x/virtio-ccw-crypto.c | 6 +- hw/s390x/virtio-ccw-gpu.c | 6 +- hw/s390x/virtio-ccw-input.c | 17 +- hw/s390x/virtio-ccw-net.c | 6 +- hw/s390x/virtio-ccw-rng.c | 6 +- hw/s390x/virtio-ccw-scsi.c | 4 +- hw/s390x/virtio-ccw-serial.c | 6 +- hw/s390x/virtio-ccw.c | 8 +- hw/scsi/esp-pci.c | 27 +- hw/scsi/esp.c | 6 +- hw/scsi/lsi53c895a.c | 18 +- hw/scsi/megasas.c | 29 +- hw/scsi/mptsas.c | 5 - hw/scsi/scsi-bus.c | 8 +- hw/scsi/scsi-disk.c | 30 +- hw/scsi/scsi-generic.c | 7 +- hw/scsi/spapr_vscsi.c | 16 +- hw/scsi/vhost-scsi-common.c | 6 +- hw/scsi/vhost-scsi.c | 6 +- hw/scsi/vhost-user-scsi.c | 6 +- hw/scsi/virtio-scsi.c | 8 +- hw/scsi/vmw_pvscsi.c | 29 +- hw/sd/allwinner-sdhost.c | 19 +- hw/sd/aspeed_sdhci.c | 6 +- hw/sd/bcm2835_sdhost.c | 15 +- hw/sd/core.c | 6 +- hw/sd/milkymist-memcard.c | 16 +- hw/sd/pl181.c | 18 +- hw/sd/pxa2xx_mmci.c | 17 +- hw/sd/sd.c | 6 +- hw/sd/sdhci-pci.c | 6 +- hw/sd/sdhci.c | 18 +- hw/sd/ssi-sd.c | 15 +- hw/sh4/sh_pci.c | 19 +- hw/sparc/sun4m.c | 62 +- hw/sparc/sun4m_iommu.c | 8 +- hw/sparc64/niagara.c | 6 +- hw/sparc64/sun4u.c | 45 +- hw/sparc64/sun4u_iommu.c | 8 +- hw/ssi/aspeed_smc.c | 2 +- hw/ssi/imx_spi.c | 6 +- hw/ssi/mss-spi.c | 6 +- hw/ssi/pl022.c | 6 +- hw/ssi/ssi.c | 12 +- hw/ssi/stm32f2xx_spi.c | 6 +- hw/ssi/xilinx_spi.c | 15 +- hw/ssi/xilinx_spips.c | 10 +- hw/timer/a9gtimer.c | 6 +- hw/timer/allwinner-a10-pit.c | 6 +- hw/timer/altera_timer.c | 16 +- hw/timer/arm_mptimer.c | 6 +- hw/timer/arm_timer.c | 26 +- hw/timer/armv7m_systick.c | 6 +- hw/timer/aspeed_timer.c | 12 +- hw/timer/avr_timer16.c | 6 +- hw/timer/bcm2835_systmr.c | 6 +- hw/timer/cadence_ttc.c | 16 +- hw/timer/cmsdk-apb-dualtimer.c | 6 +- hw/timer/cmsdk-apb-timer.c | 6 +- hw/timer/digic-timer.c | 6 +- hw/timer/etraxfs_timer.c | 16 +- hw/timer/exynos4210_mct.c | 16 +- hw/timer/exynos4210_pwm.c | 16 +- hw/timer/grlib_gptimer.c | 13 +- hw/timer/hpet.c | 15 +- hw/timer/i8254.c | 16 +- hw/timer/i8254_common.c | 6 +- hw/timer/imx_epit.c | 6 +- hw/timer/imx_gpt.c | 12 +- hw/timer/lm32_timer.c | 12 +- hw/timer/milkymist-sysctl.c | 13 +- hw/timer/mss-timer.c | 6 +- hw/timer/nrf51_timer.c | 6 +- hw/timer/puv3_ost.c | 15 +- hw/timer/pxa2xx_timer.c | 19 +- hw/timer/renesas_cmt.c | 6 +- hw/timer/renesas_tmr.c | 6 +- hw/timer/slavio_timer.c | 16 +- hw/timer/stm32f2xx_timer.c | 6 +- hw/timer/xilinx_timer.c | 11 +- hw/tpm/tpm_crb.c | 15 +- hw/tpm/tpm_spapr.c | 16 +- hw/tpm/tpm_tis_isa.c | 15 +- hw/tpm/tpm_tis_sysbus.c | 15 +- hw/usb/bus.c | 8 +- hw/usb/ccid-card-emulated.c | 13 +- hw/usb/ccid-card-passthru.c | 11 +- hw/usb/chipidea.c | 6 +- hw/usb/dev-audio.c | 11 +- hw/usb/dev-hid.c | 17 +- hw/usb/dev-hub.c | 15 +- hw/usb/dev-mtp.c | 10 +- hw/usb/dev-network.c | 15 +- hw/usb/dev-serial.c | 15 +- hw/usb/dev-smartcard-reader.c | 23 +- hw/usb/dev-storage.c | 19 +- hw/usb/dev-uas.c | 10 +- hw/usb/dev-wacom.c | 11 +- hw/usb/hcd-dwc2.c | 14 +- hw/usb/hcd-ehci-pci.c | 2 +- hw/usb/hcd-ehci-sysbus.c | 18 +- hw/usb/hcd-ohci-pci.c | 15 +- hw/usb/hcd-ohci.c | 6 +- hw/usb/hcd-uhci.c | 6 +- hw/usb/hcd-xhci-nec.c | 6 +- hw/usb/hcd-xhci.c | 8 +- hw/usb/host-libusb.c | 13 +- hw/usb/imx-usb-phy.c | 6 +- hw/usb/redirect.c | 10 +- hw/usb/tusb6010.c | 15 +- hw/vfio/amd-xgbe.c | 6 +- hw/vfio/ap.c | 16 +- hw/vfio/calxeda-xgmac.c | 6 +- hw/vfio/ccw.c | 6 +- hw/vfio/igd.c | 6 +- hw/vfio/pci.c | 12 +- hw/vfio/platform.c | 6 +- hw/virtio/vhost-scsi-pci.c | 5 +- hw/virtio/vhost-user-blk-pci.c | 5 +- hw/virtio/vhost-user-fs-pci.c | 5 +- hw/virtio/vhost-user-fs.c | 6 +- hw/virtio/vhost-user-input-pci.c | 5 +- hw/virtio/vhost-user-scsi-pci.c | 5 +- hw/virtio/vhost-user-vsock-pci.c | 5 +- hw/virtio/vhost-user-vsock.c | 6 +- hw/virtio/vhost-vsock-common.c | 6 +- hw/virtio/vhost-vsock-pci.c | 5 +- hw/virtio/vhost-vsock.c | 6 +- hw/virtio/virtio-9p-pci.c | 10 +- hw/virtio/virtio-balloon-pci.c | 5 +- hw/virtio/virtio-balloon.c | 6 +- hw/virtio/virtio-blk-pci.c | 5 +- hw/virtio/virtio-bus.c | 6 +- hw/virtio/virtio-crypto-pci.c | 5 +- hw/virtio/virtio-crypto.c | 6 +- hw/virtio/virtio-input-host-pci.c | 5 +- hw/virtio/virtio-input-pci.c | 13 +- hw/virtio/virtio-iommu-pci.c | 5 +- hw/virtio/virtio-iommu.c | 8 +- hw/virtio/virtio-mem.c | 6 +- hw/virtio/virtio-mmio.c | 9 +- hw/virtio/virtio-net-pci.c | 5 +- hw/virtio/virtio-pci.c | 4 +- hw/virtio/virtio-pmem.c | 6 +- hw/virtio/virtio-rng-pci.c | 5 +- hw/virtio/virtio-rng.c | 6 +- hw/virtio/virtio-scsi-pci.c | 5 +- hw/virtio/virtio-serial-pci.c | 5 +- hw/virtio/virtio.c | 6 +- hw/watchdog/cmsdk-apb-watchdog.c | 8 +- hw/watchdog/wdt_aspeed.c | 11 +- hw/watchdog/wdt_diag288.c | 2 +- hw/watchdog/wdt_i6300esb.c | 7 +- hw/watchdog/wdt_ib700.c | 11 +- hw/watchdog/wdt_imx2.c | 2 +- hw/xen/xen-bus.c | 10 +- hw/xen/xen-legacy-backend.c | 11 +- hw/xen/xen_pt.c | 6 +- hw/xtensa/xtfpga.c | 20 +- io/channel-buffer.c | 6 +- io/channel-command.c | 6 +- io/channel-file.c | 6 +- io/channel-socket.c | 6 +- io/channel-tls.c | 6 +- io/channel-websock.c | 6 +- io/channel.c | 6 +- io/dns-resolver.c | 6 +- io/net-listener.c | 6 +- iothread.c | 12 +- migration/migration.c | 6 +- migration/rdma.c | 13 +- net/can/can_core.c | 6 +- net/can/can_host.c | 6 +- net/can/can_socketcan.c | 16 +- net/colo-compare.c | 15 +- net/dump.c | 13 +- net/filter-buffer.c | 15 +- net/filter-mirror.c | 25 +- net/filter-replay.c | 13 +- net/filter-rewriter.c | 17 +- net/filter.c | 6 +- qom/container.c | 6 +- qom/object.c | 6 +- scsi/pr-manager-helper.c | 17 +- scsi/pr-manager.c | 7 +- softmmu/memory.c | 8 +- target/arm/cpu.c | 4 +- target/arm/cpu64.c | 2 +- target/hppa/cpu.c | 6 +- target/i386/cpu.c | 8 +- target/i386/hax-all.c | 6 +- target/i386/hvf/hvf.c | 6 +- target/i386/kvm.c | 2 +- target/i386/sev.c | 14 +- target/i386/whpx-all.c | 6 +- target/microblaze/cpu.c | 6 +- target/mips/cpu.c | 2 +- target/nios2/cpu.c | 6 +- target/rx/cpu.c | 22 +- target/rx/gdbstub.c | 4 +- target/rx/helper.c | 4 +- target/rx/translate.c | 2 +- target/s390x/cpu.c | 6 +- target/s390x/cpu_models.c | 6 +- target/sparc/cpu.c | 2 +- target/tilegx/cpu.c | 6 +- target/xtensa/cpu.c | 6 +- tests/check-qom-interface.c | 11 +- tests/check-qom-proplist.c | 16 +- tests/test-qdev-global-props.c | 13 +- ui/console.c | 15 +- ui/gtk.c | 8 +- ui/input-barrier.c | 20 +- ui/input-linux.c | 20 +- ui/spice-app.c | 9 +- target/ppc/translate_init.c.inc | 4 +- 1337 files changed, 9819 insertions(+), 9780 deletions(-) create mode 100644 scripts/codeconverter/codeconverter/__init__.py create mode 100644 scripts/codeconverter/codeconverter/patching.py create mode 100644 scripts/codeconverter/codeconverter/qom_macros.py create mode 100644 scripts/codeconverter/codeconverter/qom_type_info.py create mode 100644 scripts/codeconverter/codeconverter/regexps.py create mode 100644 scripts/codeconverter/codeconverter/test_patching.py create mode 100644 scripts/codeconverter/codeconverter/test_regexps.py create mode 100644 scripts/codeconverter/codeconverter/utils.py create mode 100755 scripts/codeconverter/converter.py
--=20
2.26.2
PATCH v3 11/74 versatile: Fix typo in PCI_VPB_HOST definition
---
Changes v2 -> v3: none
Changes v1 -> v2: none
---
Cc: Peter Maydell <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- hw/pci-host/versatile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/pci-host/versatile.c +1 -1
@@ -161,7 +161,7 @@ static const VMStateDescription pci_vpb_vmstate = {#define TYPE_VERSATILE_PCI_HOST "versatile_pci_host"#define PCI_VPB_HOST (obj) \ - OBJECT_CHECK(PCIDevice, (obj), TYPE_VERSATILE_PCIHOST) + OBJECT_CHECK(PCIDevice, (obj), TYPE_VERSATILE_PCI_HOST) typedef enum { PCI_IMAP0 = 0x0,
Signature · 1 line
2.26.2
PATCH v3 12/74 virtio-ccw: Fix definition of VIRTIO_CCW_BUS_GET_CLASS
In reply to Eduardo HabkostThe macro was incorrectly defined using OBJECT_CHECK.
---
Changes v2 -> v3: none
Changes v1 -> v2: none
---
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Cornelia Huck <[email protected]>
Cc: Halil Pasic <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: Richard Henderson <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Thomas Huth <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- hw/s390x/virtio-ccw.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hw/s390x/virtio-ccw.h +2 -2
@@ -65,9 +65,9 @@ typedef struct VirtioBusClass VirtioCcwBusClass;#define TYPE_VIRTIO_CCW_BUS "virtio-ccw-bus"#define VIRTIO_CCW_BUS (obj) \ - OBJECT_CHECK(VirtioCcwBus, (obj), TYPE_VIRTIO_CCW_BUS) + OBJECT_CHECK(VirtioCcwBusState, (obj), TYPE_VIRTIO_CCW_BUS)#define VIRTIO_CCW_BUS_GET_CLASS (obj) \ - OBJECT_CHECK(VirtioCcwBusState, (obj), TYPE_VIRTIO_CCW_BUS) + OBJECT_GET_CLASS(VirtioCcwBusClass, (obj), TYPE_VIRTIO_CCW_BUS)#define VIRTIO_CCW_BUS_CLASS (klass) \ OBJECT_CLASS_CHECK(VirtioCcwBusClass, klass, TYPE_VIRTIO_CCW_BUS)
Signature · 1 line
2.26.2
PATCH v3 13/74 hvf: Add missing include
In reply to Eduardo HabkostThe sysemu/accel.h header is needed for the ACCEL_CLASS_NAME macro. This will be necessary to allow us to use OBJECT_DEFINE*() for TYPE_HVF_ACCEL.
---
Changes v2 -> v3: none
Changes v1 -> v2: none
---
Cc: Cameron Esfahani <[email protected]>
Cc: Roman Bolshakov <[email protected]>
Cc: [email protected]
--- include/sysemu/hvf.h | 2 ++ 1 file changed, 2 insertions(+)
include/sysemu/hvf.h +2 -0
@@ -13,6 +13,8 @@#ifndef HVF_H #define HVF_H +#include "sysemu/accel.h" +#ifdef CONFIG_HVF uint32_t hvf_get_supported_cpuid (uint32_t func,uint32_t idx,int reg);
Signature · 1 line
2.26.2
PATCH v3 18/74 i8254: Move PITCommonState/PITCommonClass typedefs to i8254.h
In reply to Eduardo HabkostMove typedef closer to the type check macros, to make it easier to convert the code to OBJECT_DEFINE_TYPE() in the future.
---
Changes v2 -> v3: none
Changes v1 -> v2: none
---
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: [email protected]
--- include/hw/timer/i8254.h | 2 ++ include/hw/timer/i8254_internal.h | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-)
include/hw/timer/i8254.h +2 -0
@@ -39,6 +39,8 @@ typedef struct PITChannelInfo { } PITChannelInfo;#define TYPE_PIT_COMMON "pit-common" +typedef struct PITCommonState PITCommonState ; +typedef struct PITCommonClass PITCommonClass ;#define PIT_COMMON (obj) \ OBJECT_CHECK(PITCommonState, (obj), TYPE_PIT_COMMON)#define PIT_COMMON_CLASS (klass) \
include/hw/timer/i8254_internal.h +4 -4
@@ -50,14 +50,14 @@ typedef struct PITChannelState {uint32_t irq_disabled; } PITChannelState; -typedef struct PITCommonState { +struct PITCommonState {ISADevice dev;MemoryRegion ioports;uint32_t iobase;PITChannelState channels[3 ]; -}PITCommonState ; +}; -typedef struct PITCommonClass { +struct PITCommonClass {ISADeviceClass parent_class;void (*set_channel_gate)(PITCommonState *s,PITChannelState *sc,int val);
@@ -65,7 +65,7 @@ typedef struct PITCommonClass { PITChannelInfo *info);void (*pre_save)(PITCommonState *s);void (*post_load)(PITCommonState *s); -} PITCommonClass; +};int pit_get_out (PITChannelState *s,int64_t current_time);int64_t pit_get_next_transition_time (PITChannelState *s,int64_t current_time);
Signature · 1 line
2.26.2
PATCH v3 19/74 hvf: Move HVFState typedef to hvf.h
In reply to Eduardo HabkostMove typedef closer to the type check macros, to make it easier to convert the code to OBJECT_DEFINE_TYPE() in the future.
---
Changes v2 -> v3: none
Changes v1 -> v2: none
---
Cc: Cameron Esfahani <[email protected]>
Cc: Roman Bolshakov <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Richard Henderson <[email protected]>
Cc: Eduardo Habkost <[email protected]>
Cc: [email protected]
--- include/sysemu/hvf.h | 1 + target/i386/hvf/hvf-i386.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)
include/sysemu/hvf.h +1 -0
@@ -35,6 +35,7 @@ void hvf_vcpu_destroy(CPUState *);#define TYPE_HVF_ACCEL ACCEL_CLASS_NAME("hvf") +typedef struct HVFState HVFState ;#define HVF_STATE (obj) \ OBJECT_CHECK(HVFState, (obj), TYPE_HVF_ACCEL)
target/i386/hvf/hvf-i386.h +2 -2
@@ -57,13 +57,13 @@ typedef struct hvf_vcpu_caps {uint64_t vmx_cap_preemption_timer; } hvf_vcpu_caps; -typedef struct HVFState { +struct HVFState {AccelState parent;hvf_slot slots[32 ];int num_slots;hvf_vcpu_caps *hvf_caps; -}HVFState ; +};extern HVFState *hvf_state;void hvf_set_phys_mem (MemoryRegionSection *,bool );
Signature · 1 line
2.26.2
PATCH v3 14/74 hcd-dwc2: Rename USB_*CLASS macros for consistency
In reply to Eduardo HabkostRename the DWC2_CLASS to DWC2_USB_CLASS and DWC2_GET_CLASS to DWC2_USB_GET_CLASS, for consistency with the DWC2_USB macro.
---
Changes v2 -> v3: none
Changes v1 -> v2: none
---
Cc: Gerd Hoffmann <[email protected]>
Cc: [email protected]
--- hw/usb/hcd-dwc2.h | 4 ++-- hw/usb/hcd-dwc2.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-)
hw/usb/hcd-dwc2.h +2 -2
@@ -182,9 +182,9 @@ struct DWC2Class {#define TYPE_DWC2_USB "dwc2-usb"#define DWC2_USB (obj) \ OBJECT_CHECK(DWC2State, (obj), TYPE_DWC2_USB) -#define DWC2_CLASS (klass) \ +#define DWC2_USB_CLASS (klass) \ OBJECT_CLASS_CHECK(DWC2Class, (klass), TYPE_DWC2_USB) -#define DWC2_GET_CLASS (obj) \ +#define DWC2_USB_GET_CLASS (obj) \ OBJECT_GET_CLASS(DWC2Class, (obj), TYPE_DWC2_USB)#endif
hw/usb/hcd-dwc2.c +4 -4
@@ -1155,7 +1155,7 @@ static void dwc2_work_timer(void *opaque)static void dwc2_reset_enter (Object *obj,ResetType type) { -DWC2Class *c =DWC2_GET_CLASS (obj); +DWC2Class *c =DWC2_USB_GET_CLASS (obj);DWC2State *s =DWC2_USB (obj);int i;
@@ -1239,7 +1239,7 @@ static void dwc2_reset_enter(Object *obj, ResetType type)static void dwc2_reset_hold (Object *obj) { -DWC2Class *c =DWC2_GET_CLASS (obj); +DWC2Class *c =DWC2_USB_GET_CLASS (obj);DWC2State *s =DWC2_USB (obj);trace_usb_dwc2_reset_hold ();
@@ -1253,7 +1253,7 @@ static void dwc2_reset_hold(Object *obj)static void dwc2_reset_exit (Object *obj) { -DWC2Class *c =DWC2_GET_CLASS (obj); +DWC2Class *c =DWC2_USB_GET_CLASS (obj);DWC2State *s =DWC2_USB (obj);trace_usb_dwc2_reset_exit ();
@@ -1382,7 +1382,7 @@ static Property dwc2_usb_properties[] = {static void dwc2_class_init (ObjectClass *klass,void *data) {DeviceClass *dc =DEVICE_CLASS (klass); -DWC2Class *c =DWC2_CLASS (klass); +DWC2Class *c =DWC2_USB_CLASS (klass);ResettableClass *rc =RESETTABLE_CLASS (klass); dc->realize = dwc2_realize;
Signature · 1 line
2.26.2
PATCH v3 28/74 s390x: Move typedef SCLPEventFacility to event-facility.h
In reply to Eduardo HabkostThis will make future conversion to OBJECT_DECLARE* easier.
In sclp.h, use "struct SCLPEventFacility" to avoid introducing unnecessary header dependencies.
---
Changes v2 -> v3: none
Changes series v1 -> v2: new patch in series v2
--- include/hw/s390x/event-facility.h | 1 + include/hw/s390x/sclp.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)
include/hw/s390x/event-facility.h +1 -0
@@ -195,6 +195,7 @@ typedef struct SCLPEventClass { } SCLPEventClass;#define TYPE_SCLP_EVENT_FACILITY "s390-sclp-event-facility" +typedef struct SCLPEventFacility SCLPEventFacility ;#define EVENT_FACILITY (obj) \ OBJECT_CHECK(SCLPEventFacility, (obj), TYPE_SCLP_EVENT_FACILITY)#define EVENT_FACILITY_CLASS (klass) \
include/hw/s390x/sclp.h +2 -2
@@ -185,12 +185,12 @@ typedef struct SCCB {#define SCLP_CLASS (oc) OBJECT_CLASS_CHECK(SCLPDeviceClass, (oc), TYPE_SCLP)#define SCLP_GET_CLASS (obj) OBJECT_GET_CLASS(SCLPDeviceClass, (obj), TYPE_SCLP) -typedef struct SCLPEventFacility SCLPEventFacility ; +struct SCLPEventFacility ; typedef struct SCLPDevice { /* private */ DeviceState parent_obj; - SCLPEventFacility *event_facility; + struct SCLPEventFacility *event_facility; int increment_size; /* public */
Signature · 1 line
2.26.2
PATCH v3 16/74 throttle-groups: Move ThrottleGroup typedef to header
In reply to Eduardo HabkostMove typedef closer to the type check macros, to make it easier to convert the code to OBJECT_DEFINE_TYPE() in the future.
---
Changes v2 -> v3: none
Changes v1 -> v2: none
---
Cc: Alberto Garcia <[email protected]>
Cc: Kevin Wolf <[email protected]>
Cc: Max Reitz <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- include/block/throttle-groups.h | 1 + block/throttle-groups.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)
include/block/throttle-groups.h +1 -0
@@ -59,6 +59,7 @@ typedef struct ThrottleGroupMember { } ThrottleGroupMember;#define TYPE_THROTTLE_GROUP "throttle-group" +typedef struct ThrottleGroup ThrottleGroup ;#define THROTTLE_GROUP (obj) OBJECT_CHECK(ThrottleGroup, (obj), TYPE_THROTTLE_GROUP)const char *throttle_group_get_name (ThrottleGroupMember *tgm);
block/throttle-groups.c +2 -2
@@ -63,7 +63,7 @@ static void timer_cb(ThrottleGroupMember *tgm, bool is_write);* access some other ThrottleGroupMember's timers only after verifying that * that ThrottleGroupMember has throttled requests in the queue. */ -typedef struct ThrottleGroup { +struct ThrottleGroup {Object parent_obj;/* refuse individual property change if initialization is complete */
@@ -79,7 +79,7 @@ typedef struct ThrottleGroup {/* This field is protected by the global QEMU mutex */ QTAILQ_ENTRY (ThrottleGroup) list; -} ThrottleGroup; +};/* This is protected by the global QEMU mutex */ static QTAILQ_HEAD(, ThrottleGroup) throttle_groups =
Signature · 1 line
2.26.2
PATCH v3 21/74 s390_flic: Move KVMS390FLICState typedef to header
In reply to Eduardo HabkostMove typedef closer to the type check macros, to make it easier to convert the code to OBJECT_DEFINE_TYPE() in the future.
---
Changes v2 -> v3: none
Changes v1 -> v2: none
---
Cc: Cornelia Huck <[email protected]>
Cc: Thomas Huth <[email protected]>
Cc: Halil Pasic <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- include/hw/s390x/s390_flic.h | 1 + hw/intc/s390_flic_kvm.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)
include/hw/s390x/s390_flic.h +1 -0
@@ -75,6 +75,7 @@ typedef struct S390FLICStateClass { } S390FLICStateClass;#define TYPE_KVM_S390_FLIC "s390-flic-kvm" +typedef struct KVMS390FLICState KVMS390FLICState ;#define KVM_S390_FLIC (obj) \ OBJECT_CHECK(KVMS390FLICState, (obj), TYPE_KVM_S390_FLIC)
hw/intc/s390_flic_kvm.c +2 -2
@@ -29,12 +29,12 @@#define FLIC_FAILED (-1UL)#define FLIC_SAVEVM_VERSION 1 -typedef struct KVMS390FLICState { +struct KVMS390FLICState {S390FLICState parent_obj;uint32_t fd;bool clear_io_supported; -}KVMS390FLICState ; +};static KVMS390FLICState *s390_get_kvm_flic (S390FLICState *fs) {
Signature · 1 line
2.26.2
PATCH v3 25/74 armsse: Rename QOM macros to avoid conflicts
In reply to Eduardo HabkostRename TYPE_ARMSSE to TYPE_ARM_SSE, and ARMSSE*() type checking macros to ARM_SSE*().
This will avoid a future conflict between an ARM_SSE() type checking macro and the ARMSSE typedef name.
---
Changes v2 -> v3: none
Changes series v1 -> v2: new patch in series v2
--- include/hw/arm/armsse.h | 12 ++++++------ hw/arm/armsse.c | 24 ++++++++++++------------ 2 files changed, 18 insertions(+), 18 deletions(-)
include/hw/arm/armsse.h +6 -6
@@ -106,8 +106,8 @@#include "hw/core/split-irq.h" #include "hw/cpu/cluster.h" -#define TYPE_ARMSSE "arm-sse" -#define ARMSSE (obj) OBJECT_CHECK(ARMSSE, (obj), TYPE_ARMSSE) +#define TYPE_ARM_SSE "arm-sse" +#define ARM_SSE (obj) OBJECT_CHECK(ARMSSE, (obj), TYPE_ARM_SSE)/* * These type names are for specific IoTKit subsystems; other than
@@ -224,9 +224,9 @@ typedef struct ARMSSEClass { const ARMSSEInfo *info; } ARMSSEClass; -#define ARMSSE_CLASS (klass) \ - OBJECT_CLASS_CHECK(ARMSSEClass, (klass), TYPE_ARMSSE) -#define ARMSSE_GET_CLASS (obj) \ - OBJECT_GET_CLASS(ARMSSEClass, (obj), TYPE_ARMSSE) +#define ARM_SSE_CLASS (klass) \ + OBJECT_CLASS_CHECK(ARMSSEClass, (klass), TYPE_ARM_SSE) +#define ARM_SSE_GET_CLASS (obj) \ + OBJECT_GET_CLASS(ARMSSEClass, (obj), TYPE_ARM_SSE)#endif
hw/arm/armsse.c +12 -12
@@ -167,7 +167,7 @@ static void irq_status_forwarder(void *opaque, int n, int level)static void nsccfg_handler (void *opaque,int n,int level) { -ARMSSE *s =ARMSSE (opaque); +ARMSSE *s =ARM_SSE (opaque); s->nsccfg = level; }
@@ -233,8 +233,8 @@ static void armsse_forward_sec_resp_cfg(ARMSSE *s)static void armsse_init (Object *obj) { -ARMSSE *s =ARMSSE (obj); -ARMSSEClass *asc =ARMSSE_GET_CLASS (obj); +ARMSSE *s =ARM_SSE (obj); +ARMSSEClass *asc =ARM_SSE_GET_CLASS (obj);const ARMSSEInfo *info = asc->info;int i;
@@ -391,7 +391,7 @@ static void armsse_exp_irq(void *opaque, int n, int level)static void armsse_mpcexp_status (void *opaque,int n,int level) { -ARMSSE *s =ARMSSE (opaque); +ARMSSE *s =ARM_SSE (opaque);qemu_set_irq (s->mpcexp_status_in[n], level); }
@@ -401,7 +401,7 @@ static qemu_irq armsse_get_common_irq_in(ARMSSE *s, int irqno)* Return a qemu_irq which can be used to signal IRQ n to * all CPUs in the SSE. */ -ARMSSEClass *asc =ARMSSE_GET_CLASS (s); +ARMSSEClass *asc =ARM_SSE_GET_CLASS (s);const ARMSSEInfo *info = asc->info;assert (irq_is_common[irqno]);
@@ -428,8 +428,8 @@ static void map_ppu(ARMSSE *s, int ppuidx, const char *name, hwaddr addr)static void armsse_realize (DeviceState *dev,Error **errp) { -ARMSSE *s =ARMSSE (dev); -ARMSSEClass *asc =ARMSSE_GET_CLASS (dev); +ARMSSE *s =ARM_SSE (dev); +ARMSSEClass *asc =ARM_SSE_GET_CLASS (dev);const ARMSSEInfo *info = asc->info;int i;MemoryRegion *mr;
@@ -1114,7 +1114,7 @@ static void armsse_idau_check(IDAUInterface *ii, uint32_t address,* of the address bits. The NSC attribute is guest-adjustable via the * NSCCFG register in the security controller. */ -ARMSSE *s =ARMSSE (ii); +ARMSSE *s =ARM_SSE (ii);int region =extract32 (address,28 ,4 ); *ns = !(region &1 );
@@ -1136,7 +1136,7 @@ static const VMStateDescription armsse_vmstate = {static void armsse_reset (DeviceState *dev) { -ARMSSE *s =ARMSSE (dev); +ARMSSE *s =ARM_SSE (dev); s->nsccfg =0 ; }
@@ -1145,7 +1145,7 @@ static void armsse_class_init(ObjectClass *klass, void *data) {DeviceClass *dc =DEVICE_CLASS (klass);IDAUInterfaceClass *iic =IDAU_INTERFACE_CLASS (klass); -ARMSSEClass *asc =ARMSSE_CLASS (klass); +ARMSSEClass *asc =ARM_SSE_CLASS (klass);const ARMSSEInfo *info = data; dc->realize = armsse_realize;
@@ -1157,7 +1157,7 @@ static void armsse_class_init(ObjectClass *klass, void *data) }static const TypeInfo armsse_info = { - .name =TYPE_ARMSSE , + .name =TYPE_ARM_SSE , .parent =TYPE_SYS_BUS_DEVICE , .instance_size =sizeof (ARMSSE ), .instance_init = armsse_init,
@@ -1177,7 +1177,7 @@ static void armsse_register_types(void)for (i =0 ; i <ARRAY_SIZE (armsse_variants); i++) {TypeInfo ti = { .name = armsse_variants[i].name, - .parent =TYPE_ARMSSE , + .parent =TYPE_ARM_SSE , .class_init = armsse_class_init, .class_data = (void *)&armsse_variants[i], };
Signature · 1 line
2.26.2
PATCH v3 15/74 tulip: Move TulipState typedef to header
In reply to Eduardo HabkostMove typedef closer to the type check macros, to make it easier to convert the code to OBJECT_DEFINE_TYPE() in the future.
---
Changes v2 -> v3: none
Changes v1 -> v2: none
---
Cc: Sven Schnelle <[email protected]>
Cc: Jason Wang <[email protected]>
Cc: [email protected]
--- hw/net/tulip.h | 1 + hw/net/tulip.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)
hw/net/tulip.h +1 -0
@@ -5,6 +5,7 @@#include "net/net.h" #define TYPE_TULIP "tulip" +typedef struct TULIPState TULIPState ;#define TULIP (obj) OBJECT_CHECK(TULIPState, (obj), TYPE_TULIP)#define CSR (_x) ((_x) << 3)
hw/net/tulip.c +2 -2
@@ -18,7 +18,7 @@#include "trace.h" #include "net/eth.h" -typedef struct TULIPState { +struct TULIPState {PCIDevice dev;MemoryRegion io;MemoryRegion memory;
@@ -44,7 +44,7 @@ typedef struct TULIPState {uint32_t rx_status;uint8_t filter[16 ][6 ]; -} TULIPState; +};static const VMStateDescription vmstate_pci_tulip = { .name ="tulip" ,
Signature · 1 line
2.26.2
PATCH v3 36/74 piix: Move QOM macros to header
In reply to Eduardo HabkostThis will make future conversion to OBJECT_DECLARE* easier.
---
Changes v2 -> v3: none
Changes series v1 -> v2: new patch in series v2
--- include/hw/southbridge/piix.h | 4 ++++ hw/isa/piix3.c | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-)
include/hw/southbridge/piix.h +4 -0
@@ -64,6 +64,10 @@ typedef struct PIIXState {MemoryRegion rcr_mem; } PIIX3State; +#define TYPE_PIIX3_PCI_DEVICE "pci-piix3" +#define PIIX3_PCI_DEVICE (obj) \ + OBJECT_CHECK(PIIX3State, (obj), TYPE_PIIX3_PCI_DEVICE) +extern PCIDevice *piix4_dev;PIIX3State *piix3_create (PCIBus *pci_bus,ISABus **isa_bus);
hw/isa/piix3.c +0 -4
@@ -36,10 +36,6 @@#define XEN_PIIX_NUM_PIRQS 128ULL -#define TYPE_PIIX3_PCI_DEVICE "pci-piix3" -#define PIIX3_PCI_DEVICE (obj) \ - OBJECT_CHECK(PIIX3State, (obj), TYPE_PIIX3_PCI_DEVICE) -#define TYPE_PIIX3_DEVICE "PIIX3"#define TYPE_PIIX3_XEN_DEVICE "PIIX3-xen"
Signature · 1 line
2.26.2
PATCH v3 17/74 pci: Move PCIBusClass typedef to pci.h
In reply to Eduardo HabkostMove typedef closer to the type check macros, to make it easier to convert the code to OBJECT_DEFINE_TYPE() in the future.
---
Changes v2 -> v3: none
Changes v1 -> v2: none
---
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Marcel Apfelbaum <[email protected]>
Cc: [email protected]
--- include/hw/pci/pci.h | 1 + include/hw/pci/pci_bus.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)
include/hw/pci/pci.h +1 -0
@@ -396,6 +396,7 @@ typedef int (*pci_map_irq_fn)(PCIDevice *pci_dev, int irq_num);typedef PCIINTxRoute (*pci_route_irq_fn )(void *opaque,int pin);#define TYPE_PCI_BUS "PCI" +typedef struct PCIBusClass PCIBusClass ;#define PCI_BUS (obj) OBJECT_CHECK(PCIBus, (obj), TYPE_PCI_BUS)#define PCI_BUS_CLASS (klass) OBJECT_CLASS_CHECK(PCIBusClass, (klass), TYPE_PCI_BUS)#define PCI_BUS_GET_CLASS (obj) OBJECT_GET_CLASS(PCIBusClass, (obj), TYPE_PCI_BUS)
include/hw/pci/pci_bus.h +2 -2
@@ -10,14 +10,14 @@* use accessor functions in pci.h */ -typedef struct PCIBusClass { +struct PCIBusClass {/*< private >*/ BusClass parent_class;/*< public >*/ int (*bus_num)(PCIBus *bus);uint16_t (*numa_node)(PCIBus *bus); -}PCIBusClass ; +};enum PCIBusFlags {/* This bus is the root of a PCI domain */
Signature · 1 line
2.26.2
PATCH v3 24/74 platform-bus: Delete macros for non-existing typedef
In reply to Eduardo HabkostPlatformBusDeviceClass doesn't exist. This will break when we automatically convert the code to use OBJECT_DEFINE_TYPE(). Delete the macros that reference the non-existing typedef.
---
Changes v2 -> v3: none
Changes v1 -> v2: none
---
Cc: [email protected]
--- include/hw/platform-bus.h | 4 ---- 1 file changed, 4 deletions(-)
include/hw/platform-bus.h +0 -4
@@ -29,10 +29,6 @@ typedef struct PlatformBusDevice PlatformBusDevice;#define TYPE_PLATFORM_BUS_DEVICE "platform-bus-device"#define PLATFORM_BUS_DEVICE (obj) \ OBJECT_CHECK(PlatformBusDevice, (obj), TYPE_PLATFORM_BUS_DEVICE) -#define PLATFORM_BUS_DEVICE_CLASS (klass) \ - OBJECT_CLASS_CHECK(PlatformBusDeviceClass, (klass), TYPE_PLATFORM_BUS_DEVICE) -#define PLATFORM_BUS_DEVICE_GET_CLASS (obj) \ - OBJECT_GET_CLASS(PlatformBusDeviceClass, (obj), TYPE_PLATFORM_BUS_DEVICE)struct PlatformBusDevice {/*< private >*/
Signature · 1 line
2.26.2
PATCH v3 20/74 mcf_fec: Move mcf_fec_state typedef to header
In reply to Eduardo HabkostMove typedef closer to the type check macros, to make it easier to convert the code to OBJECT_DEFINE_TYPE() in the future.
---
Changes v2 -> v3: none
Changes v1 -> v2: none
---
Cc: Thomas Huth <[email protected]>
Cc: Jason Wang <[email protected]>
Cc: [email protected]
--- include/hw/m68k/mcf_fec.h | 1 + hw/net/mcf_fec.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)
include/hw/m68k/mcf_fec.h +1 -0
@@ -11,6 +11,7 @@#define HW_M68K_MCF_FEC_H #define TYPE_MCF_FEC_NET "mcf-fec" +typedef struct mcf_fec_state mcf_fec_state ;#define MCF_FEC_NET (obj) OBJECT_CHECK(mcf_fec_state, (obj), TYPE_MCF_FEC_NET)#define FEC_NUM_IRQ 13
hw/net/mcf_fec.c +2 -2
@@ -32,7 +32,7 @@ do { printf("mcf_fec: " fmt , ## __VA_ARGS__); } while (0)#define FEC_MAX_FRAME_SIZE 2032#define FEC_MIB_SIZE 64 -typedef struct { +struct mcf_fec_state {SysBusDevice parent_obj;MemoryRegion iomem;
@@ -56,7 +56,7 @@ typedef struct {uint32_t etdsr;uint32_t emrbr;uint32_t mib[FEC_MIB_SIZE ]; -} mcf_fec_state; +};#define FEC_INT_HB 0x80000000#define FEC_INT_BABR 0x40000000
Signature · 1 line
2.26.2
PATCH v3 37/74 auxbus: Move QOM macros to header
In reply to Eduardo HabkostThis will make future conversion to OBJECT_DECLARE* easier.
---
Changes v2 -> v3: none
Changes series v1 -> v2: new patch in series v2
--- include/hw/misc/auxbus.h | 3 +++ hw/misc/auxbus.c | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-)
include/hw/misc/auxbus.h +3 -0
@@ -32,7 +32,10 @@ typedef struct AUXBus AUXBus;typedef struct AUXSlave AUXSlave ;typedef enum AUXCommand AUXCommand ;typedef enum AUXReply AUXReply ; + +#define TYPE_AUXTOI2C "aux-to-i2c-bridge"typedef struct AUXTOI2CState AUXTOI2CState ; +#define AUXTOI2C (obj) OBJECT_CHECK(AUXTOI2CState, (obj), TYPE_AUXTOI2C)enum AUXCommand {WRITE_I2C =0 ,
hw/misc/auxbus.c +0 -2
@@ -45,8 +45,6 @@ } \ }while (0 ) -#define TYPE_AUXTOI2C "aux-to-i2c-bridge" -#define AUXTOI2C (obj) OBJECT_CHECK(AUXTOI2CState, (obj), TYPE_AUXTOI2C) static void aux_slave_dev_print(Monitor *mon, DeviceState *dev, int indent);static inline I2CBus *aux_bridge_get_i2c_bus (AUXTOI2CState *bridge);
Signature · 1 line
2.26.2
PATCH v3 30/74 ahci: Move QOM macros to header
In reply to Eduardo HabkostThe TYPE_* constants and the typedefs are defined in ahci.h, so we can move the type checking macros there too.
This will make future conversion to OBJECT_DECLARE* easier.
---
Changes v2 -> v3: none
Changes series v1 -> v2: new patch in series v2
--- hw/ide/ahci_internal.h | 5 ----- include/hw/ide/ahci.h | 3 +++ 2 files changed, 3 insertions(+), 5 deletions(-)
hw/ide/ahci_internal.h +0 -5
@@ -332,9 +332,6 @@ struct AHCIPCIState {AHCIState ahci; }; -#define ICH_AHCI (obj) \ - OBJECT_CHECK(AHCIPCIState, (obj), TYPE_ICH9_AHCI) -extern const VMStateDescription vmstate_ahci;#define VMSTATE_AHCI (_field, _state) { \
@@ -394,6 +391,4 @@ void ahci_uninit(AHCIState *s);void ahci_reset (AHCIState *s); -#define SYSBUS_AHCI (obj) OBJECT_CHECK(SysbusAHCIState, (obj), TYPE_SYSBUS_AHCI) -#endif /* HW_IDE_AHCI_INTERNAL_H */
include/hw/ide/ahci.h +3 -0
@@ -53,11 +53,14 @@ typedef struct AHCIState {typedef struct AHCIPCIState AHCIPCIState ;#define TYPE_ICH9_AHCI "ich9-ahci" +#define ICH_AHCI (obj) \ + OBJECT_CHECK(AHCIPCIState, (obj), TYPE_ICH9_AHCI)int32_t ahci_get_num_ports (PCIDevice *dev);void ahci_ide_create_devs (PCIDevice *dev,DriveInfo **hd);#define TYPE_SYSBUS_AHCI "sysbus-ahci" +#define SYSBUS_AHCI (obj) OBJECT_CHECK(SysbusAHCIState, (obj), TYPE_SYSBUS_AHCI) typedef struct SysbusAHCIState { /*< private >*/
Signature · 1 line
2.26.2
PATCH v3 22/74 can_emu: Delete macros for non-existing typedef
In reply to Eduardo HabkostCanBusClass doesn't exist. This will break when we automatically convert the code to use OBJECT_DEFINE_TYPE(). Delete the macros that reference the non-existing typedef.
---
Changes v2 -> v3: none
Changes v1 -> v2: none
---
Cc: Jason Wang <[email protected]>
Cc: [email protected]
--- include/net/can_emu.h | 4 ---- 1 file changed, 4 deletions(-)
include/net/can_emu.h +0 -4
@@ -100,10 +100,6 @@ struct CanBusClientState { };#define TYPE_CAN_BUS "can-bus" -#define CAN_BUS_CLASS (klass) \ - OBJECT_CLASS_CHECK(CanBusClass, (klass), TYPE_CAN_BUS) -#define CAN_BUS_GET_CLASS (obj) \ - OBJECT_GET_CLASS(CanBusClass, (obj), TYPE_CAN_BUS)#define CAN_BUS (obj) \ OBJECT_CHECK(CanBusState, (obj), TYPE_CAN_BUS)
Signature · 1 line
2.26.2
PATCH v3 23/74 nubus: Delete unused NUBUS_BRIDGE macro
In reply to Eduardo HabkostThe macro never worked because the NubusBridge typedef doesn't exist. Delete it.
---
Changes v2 -> v3: none
Changes v1 -> v2: none
---
Cc: Laurent Vivier <[email protected]>
Cc: [email protected]
--- include/hw/nubus/nubus.h | 1 - 1 file changed, 1 deletion(-)
include/hw/nubus/nubus.h +0 -1
@@ -29,7 +29,6 @@#define NUBUS_BUS (obj) OBJECT_CHECK(NubusBus, (obj), TYPE_NUBUS_BUS)#define TYPE_NUBUS_BRIDGE "nubus-bridge" -#define NUBUS_BRIDGE (obj) OBJECT_CHECK(NubusBridge, (obj), TYPE_NUBUS_BRIDGE) typedef struct NubusBus { BusState qbus;
Signature · 1 line
2.26.2
PATCH v3 40/74 mptsas: Move QOM macros to header
In reply to Eduardo HabkostThis will make future conversion to OBJECT_DECLARE* easier.
---
Changes v2 -> v3: none
Changes series v1 -> v2: new patch in series v2
--- hw/scsi/mptsas.h | 6 +++++- hw/scsi/mptsas.c | 5 ----- 2 files changed, 5 insertions(+), 6 deletions(-)
hw/scsi/mptsas.h +5 -1
@@ -11,9 +11,13 @@#define MPTSAS_MAXIMUM_CHAIN_DEPTH 0x22 -typedef struct MPTSASState MPTSASState ;typedef struct MPTSASRequest MPTSASRequest ; +#define TYPE_MPTSAS1068 "mptsas1068" +typedef struct MPTSASState MPTSASState ; +#define MPT_SAS (obj) \ + OBJECT_CHECK(MPTSASState, (obj), TYPE_MPTSAS1068) +enum {DOORBELL_NONE ,DOORBELL_WRITE ,
hw/scsi/mptsas.c +0 -5
@@ -42,11 +42,6 @@#define NAA_LOCALLY_ASSIGNED_ID 0x3ULL#define IEEE_COMPANY_LOCALLY_ASSIGNED 0x525400 -#define TYPE_MPTSAS1068 "mptsas1068" - -#define MPT_SAS (obj) \ - OBJECT_CHECK(MPTSASState, (obj), TYPE_MPTSAS1068) -#define MPTSAS1068_PRODUCT_ID \ (MPI_FW_HEADER_PID_FAMILY_1068_SAS | \ MPI_FW_HEADER_PID_PROD_INITIATOR_SCSI | \
Signature · 1 line
2.26.2
PATCH v3 32/74 ahci: Move QOM macro to header
In reply to Eduardo HabkostMove the ALLWINNER_AHCI macro close to the TYPE_ALLWINNER_AHCI define.
This will make future conversion to OBJECT_DECLARE* easier.
---
Changes v2 -> v3: none
Changes series v1 -> v2: new patch in series v2
--- include/hw/ide/ahci.h | 2 ++ hw/ide/ahci-allwinner.c | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-)
include/hw/ide/ahci.h +2 -0
@@ -72,6 +72,8 @@ typedef struct SysbusAHCIState { } SysbusAHCIState;#define TYPE_ALLWINNER_AHCI "allwinner-ahci" +#define ALLWINNER_AHCI (obj) \ + OBJECT_CHECK(AllwinnerAHCIState, (obj), TYPE_ALLWINNER_AHCI)#define ALLWINNER_AHCI_MMIO_OFF 0x80#define ALLWINNER_AHCI_MMIO_SIZE 0x80
hw/ide/ahci-allwinner.c +0 -3
@@ -25,9 +25,6 @@#include "trace.h" -#define ALLWINNER_AHCI (obj) \ - OBJECT_CHECK(AllwinnerAHCIState, (obj), TYPE_ALLWINNER_AHCI) -#define ALLWINNER_AHCI_BISTAFR ((0xa0 - ALLWINNER_AHCI_MMIO_OFF) / 4)#define ALLWINNER_AHCI_BISTCR ((0xa4 - ALLWINNER_AHCI_MMIO_OFF) / 4)#define ALLWINNER_AHCI_BISTFCTR ((0xa8 - ALLWINNER_AHCI_MMIO_OFF) / 4)
Signature · 1 line
2.26.2
PATCH v3 42/74 vfio/pci: Move QOM macros to header
In reply to Eduardo HabkostThis will make future conversion to OBJECT_DECLARE* easier.
---
Changes v2 -> v3: none
Changes series v1 -> v2: new patch in series v2
--- hw/vfio/pci.h | 3 +++ hw/vfio/pci.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-)
hw/vfio/pci.h +3 -0
@@ -113,6 +113,9 @@ typedef struct VFIOMSIXInfo {unsigned long *pending; } VFIOMSIXInfo; +#define TYPE_VFIO_PCI "vfio-pci" +#define PCI_VFIO (obj) OBJECT_CHECK(VFIOPCIDevice, obj, TYPE_VFIO_PCI) + typedef struct VFIOPCIDevice { PCIDevice pdev; VFIODevice vbasedev;
hw/vfio/pci.c +0 -3
@@ -42,9 +42,6 @@#include "qapi/error.h" #include "migration/blocker.h" -#define TYPE_VFIO_PCI "vfio-pci" -#define PCI_VFIO (obj) OBJECT_CHECK(VFIOPCIDevice, obj, TYPE_VFIO_PCI) -#define TYPE_VFIO_PCI_NOHOTPLUG "vfio-pci-nohotplug"static void vfio_disable_interrupts (VFIOPCIDevice *vdev);
Signature · 1 line
2.26.2
PATCH v3 46/74 x86-iommu: Rename QOM type macros
In reply to Eduardo HabkostSome QOM macros were using a X86_IOMMU_DEVICE prefix, and others were using a X86_IOMMU prefix. Rename all of them to use the same X86_IOMMU_DEVICE prefix.
This will make future conversion to OBJECT_DECLARE* easier.
---
Changes series v2 -> v3: new patch added to series v3
---
Cc: Paolo Bonzini <[email protected]>
Cc: Richard Henderson <[email protected]>
Cc: Eduardo Habkost <[email protected]>
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Marcel Apfelbaum <[email protected]>
Cc: Peter Xu <[email protected]>
Cc: Jason Wang <[email protected]>
Cc: [email protected]
--- include/hw/i386/x86-iommu.h | 4 ++-- hw/i386/amd_iommu.c | 2 +- hw/i386/intel_iommu.c | 2 +- hw/i386/x86-iommu.c | 2 +- target/i386/kvm.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-)
include/hw/i386/x86-iommu.h +2 -2
@@ -27,9 +27,9 @@#define TYPE_X86_IOMMU_DEVICE ("x86-iommu")#define X86_IOMMU_DEVICE (obj) \ OBJECT_CHECK(X86IOMMUState, (obj), TYPE_X86_IOMMU_DEVICE) -#define X86_IOMMU_CLASS (klass) \ +#define X86_IOMMU_DEVICE_CLASS (klass) \ OBJECT_CLASS_CHECK(X86IOMMUClass, (klass), TYPE_X86_IOMMU_DEVICE) -#define X86_IOMMU_GET_CLASS (obj) \ +#define X86_IOMMU_DEVICE_GET_CLASS (obj) \ OBJECT_GET_CLASS(X86IOMMUClass, obj, TYPE_X86_IOMMU_DEVICE)#define X86_IOMMU_SID_INVALID (0xffff)
hw/i386/amd_iommu.c +1 -1
@@ -1600,7 +1600,7 @@ static void amdvi_instance_init(Object *klass)static void amdvi_class_init (ObjectClass *klass,void * data) {DeviceClass *dc =DEVICE_CLASS (klass); -X86IOMMUClass *dc_class =X86_IOMMU_CLASS (klass); +X86IOMMUClass *dc_class =X86_IOMMU_DEVICE_CLASS (klass); dc->reset = amdvi_reset; dc->vmsd = &vmstate_amdvi;
hw/i386/intel_iommu.c +1 -1
@@ -3854,7 +3854,7 @@ static void vtd_realize(DeviceState *dev, Error **errp)static void vtd_class_init (ObjectClass *klass,void *data) {DeviceClass *dc =DEVICE_CLASS (klass); -X86IOMMUClass *x86_class =X86_IOMMU_CLASS (klass); +X86IOMMUClass *x86_class =X86_IOMMU_DEVICE_CLASS (klass); dc->reset = vtd_reset; dc->vmsd = &vtd_vmstate;
hw/i386/x86-iommu.c +1 -1
@@ -107,7 +107,7 @@ IommuType x86_iommu_get_type(void)static void x86_iommu_realize (DeviceState *dev,Error **errp) {X86IOMMUState *x86_iommu =X86_IOMMU_DEVICE (dev); -X86IOMMUClass *x86_class =X86_IOMMU_GET_CLASS (dev); +X86IOMMUClass *x86_class =X86_IOMMU_DEVICE_GET_CLASS (dev);MachineState *ms =MACHINE (qdev_get_machine ());MachineClass *mc =MACHINE_GET_CLASS (ms); PCMachineState *pcms =
target/i386/kvm.c +1 -1
@@ -4607,7 +4607,7 @@ int kvm_arch_fixup_msi_route(struct kvm_irq_routing_entry *route,if (iommu) {int ret;MSIMessage src, dst; -X86IOMMUClass *class =X86_IOMMU_GET_CLASS (iommu); +X86IOMMUClass *class =X86_IOMMU_DEVICE_GET_CLASS (iommu);if (!class->int_remap) {return 0 ;
Signature · 1 line
2.26.2
PATCH v3 27/74 spapr: Move typedef SpaprMachineState to spapr.h
In reply to Eduardo HabkostMove the typedef from spapr_irq.h to spapr.h, and use "struct SpaprMachineState" in the spapr_*.h headers (to avoid circular header dependencies).
This will make future conversion to OBJECT_DECLARE* easier.
---
Changes v2 -> v3: none
Changes series v1 -> v2: new patch in series v2
--- include/hw/ppc/spapr.h | 1 + include/hw/ppc/spapr_irq.h | 36 ++++++++++++++++++------------------ include/hw/ppc/spapr_xive.h | 3 ++- 3 files changed, 21 insertions(+), 19 deletions(-)
include/hw/ppc/spapr.h +1 -0
@@ -41,6 +41,7 @@ typedef struct SpaprDimmState SpaprDimmState;typedef struct SpaprMachineClass SpaprMachineClass ;#define TYPE_SPAPR_MACHINE "spapr-machine" +typedef struct SpaprMachineState SpaprMachineState ;#define SPAPR_MACHINE (obj) \ OBJECT_CHECK(SpaprMachineState, (obj), TYPE_SPAPR_MACHINE)#define SPAPR_MACHINE_GET_CLASS (obj) \
include/hw/ppc/spapr_irq.h +18 -18
@@ -28,7 +28,7 @@#define SPAPR_NR_XIRQS 0x1000 -typedef struct SpaprMachineState SpaprMachineState ; +struct SpaprMachineState ;typedef struct SpaprInterruptController SpaprInterruptController ;
@@ -67,20 +67,20 @@ typedef struct SpaprInterruptControllerClass {int (*post_load)(SpaprInterruptController *intc,int version_id); } SpaprInterruptControllerClass; -void spapr_irq_update_active_intc (SpaprMachineState *spapr); +void spapr_irq_update_active_intc (struct SpaprMachineState *spapr); -int spapr_irq_cpu_intc_create (SpaprMachineState *spapr, +int spapr_irq_cpu_intc_create (struct SpaprMachineState *spapr,PowerPCCPU *cpu,Error **errp); -void spapr_irq_cpu_intc_reset (SpaprMachineState *spapr,PowerPCCPU *cpu); -void spapr_irq_cpu_intc_destroy (SpaprMachineState *spapr,PowerPCCPU *cpu); -void spapr_irq_print_info (SpaprMachineState *spapr,Monitor *mon); -void spapr_irq_dt (SpaprMachineState *spapr,uint32_t nr_servers, +void spapr_irq_cpu_intc_reset (struct SpaprMachineState *spapr,PowerPCCPU *cpu); +void spapr_irq_cpu_intc_destroy (struct SpaprMachineState *spapr,PowerPCCPU *cpu); +void spapr_irq_print_info (struct SpaprMachineState *spapr,Monitor *mon); +void spapr_irq_dt (struct SpaprMachineState *spapr,uint32_t nr_servers,void *fdt,uint32_t phandle); -uint32_t spapr_irq_nr_msis (SpaprMachineState *spapr); -int spapr_irq_msi_alloc (SpaprMachineState *spapr,uint32_t num,bool align, +uint32_t spapr_irq_nr_msis (struct SpaprMachineState *spapr); +int spapr_irq_msi_alloc (struct SpaprMachineState *spapr,uint32_t num,bool align,Error **errp); -void spapr_irq_msi_free (SpaprMachineState *spapr,int irq,uint32_t num); +void spapr_irq_msi_free (struct SpaprMachineState *spapr,int irq,uint32_t num); typedef struct SpaprIrq { bool xics;
@@ -92,13 +92,13 @@ extern SpaprIrq spapr_irq_xics_legacy;extern SpaprIrq spapr_irq_xive;extern SpaprIrq spapr_irq_dual; -void spapr_irq_init (SpaprMachineState *spapr,Error **errp); -int spapr_irq_claim (SpaprMachineState *spapr,int irq,bool lsi,Error **errp); -void spapr_irq_free (SpaprMachineState *spapr,int irq,int num); -qemu_irq spapr_qirq (SpaprMachineState *spapr,int irq); -int spapr_irq_post_load (SpaprMachineState *spapr,int version_id); -void spapr_irq_reset (SpaprMachineState *spapr,Error **errp); -int spapr_irq_get_phandle (SpaprMachineState *spapr,void *fdt,Error **errp); +void spapr_irq_init (struct SpaprMachineState *spapr,Error **errp); +int spapr_irq_claim (struct SpaprMachineState *spapr,int irq,bool lsi,Error **errp); +void spapr_irq_free (struct SpaprMachineState *spapr,int irq,int num); +qemu_irq spapr_qirq (struct SpaprMachineState *spapr,int irq); +int spapr_irq_post_load (struct SpaprMachineState *spapr,int version_id); +void spapr_irq_reset (struct SpaprMachineState *spapr,Error **errp); +int spapr_irq_get_phandle (struct SpaprMachineState *spapr,void *fdt,Error **errp);typedef int (*SpaprInterruptControllerInitKvm )(SpaprInterruptController *,uint32_t ,Error **);
@@ -111,7 +111,7 @@ int spapr_irq_init_kvm(SpaprInterruptControllerInitKvm fn,/* * XICS legacy routines */ -int spapr_irq_find (SpaprMachineState *spapr,int num,bool align,Error **errp); +int spapr_irq_find (struct SpaprMachineState *spapr,int num,bool align,Error **errp);#define spapr_irq_findone (spapr, errp) spapr_irq_find(spapr, 1, false, errp)#endif
include/hw/ppc/spapr_xive.h +2 -1
@@ -66,7 +66,8 @@ typedef struct SpaprXiveClass {void spapr_xive_pic_print_info (SpaprXive *xive,Monitor *mon); -void spapr_xive_hcall_init (SpaprMachineState *spapr); +struct SpaprMachineState ; +void spapr_xive_hcall_init (struct SpaprMachineState *spapr);void spapr_xive_mmio_set_enabled (SpaprXive *xive,bool enable);void spapr_xive_map_mmio (SpaprXive *xive);
Signature · 1 line
2.26.2
PATCH v3 33/74 pckbd: Move QOM macro to header
In reply to Eduardo HabkostMove the I8042 macro close to the TYPE_I8042 define.
This will make future conversion to OBJECT_DECLARE* easier.
---
Changes v2 -> v3: none
Changes series v1 -> v2: new patch in series v2
--- include/hw/input/i8042.h | 1 + hw/input/pckbd.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-)
include/hw/input/i8042.h +1 -0
@@ -11,6 +11,7 @@#include "hw/isa/isa.h" #define TYPE_I8042 "i8042" +#define I8042 (obj) OBJECT_CHECK(ISAKBDState, (obj), TYPE_I8042)#define I8042_A20_LINE "a20"
hw/input/pckbd.c +0 -2
@@ -481,8 +481,6 @@ void i8042_mm_init(qemu_irq kbd_irq, qemu_irq mouse_irq,qemu_register_reset (kbd_reset, s); } -#define I8042 (obj) OBJECT_CHECK(ISAKBDState, (obj), TYPE_I8042) -struct ISAKBDState {ISADevice parent_obj;
Signature · 1 line
2.26.2
PATCH v3 43/74 nubus: Rename class type checking macros
In reply to Eduardo HabkostRename the existing class type checking macros to be consistent with the type name and instance type checking macro. Use a NUBUS_MACFB prefix instead of MACFB_NUBUS.
This will make future conversion to OBJECT_DECLARE* easier.
---
Changes series v2 -> v3: new patch added in series v3
---
Cc: Laurent Vivier <[email protected]>
Cc: [email protected]
--- include/hw/display/macfb.h | 4 ++-- hw/display/macfb.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
include/hw/display/macfb.h +2 -2
@@ -40,9 +40,9 @@ typedef struct {MacfbState macfb; } MacfbSysBusState; -#define MACFB_NUBUS_DEVICE_CLASS (class) \ +#define NUBUS_MACFB_CLASS (class) \ OBJECT_CLASS_CHECK(MacfbNubusDeviceClass, (class), TYPE_NUBUS_MACFB) -#define MACFB_NUBUS_GET_CLASS (obj) \ +#define NUBUS_MACFB_GET_CLASS (obj) \ OBJECT_GET_CLASS(MacfbNubusDeviceClass, (obj), TYPE_NUBUS_MACFB) typedef struct MacfbNubusDeviceClass {
hw/display/macfb.c +2 -2
@@ -391,7 +391,7 @@ static void macfb_nubus_realize(DeviceState *dev, Error **errp) {NubusDevice *nd =NUBUS_DEVICE (dev);MacfbNubusState *s =NUBUS_MACFB (dev); -MacfbNubusDeviceClass *ndc =MACFB_NUBUS_GET_CLASS (dev); +MacfbNubusDeviceClass *ndc =NUBUS_MACFB_GET_CLASS (dev);MacfbState *ms = &s->macfb; ndc->parent_realize (dev, errp);
@@ -443,7 +443,7 @@ static void macfb_sysbus_class_init(ObjectClass *klass, void *data)static void macfb_nubus_class_init (ObjectClass *klass,void *data) {DeviceClass *dc =DEVICE_CLASS (klass); -MacfbNubusDeviceClass *ndc =MACFB_NUBUS_DEVICE_CLASS (klass); +MacfbNubusDeviceClass *ndc =NUBUS_MACFB_CLASS (klass);device_class_set_parent_realize (dc, macfb_nubus_realize, &ndc->parent_realize);
Signature · 1 line
2.26.2
PATCH v3 67/74 Use DECLARE_*CHECKER* macros (pass 2)
In reply to Eduardo Habkost$ ./scripts/codeconverter/converter.py -i \ --pattern=TypeCheckMacro $(git grep -l '' -- '*.[ch]')
---
Changes series v2 -> v3: this is a new patch added in series v3
The script was re-run after rebase and after additional patches were added to this series.
This is being submitted as a separate patch to make review easier, but it can be squashed into the previous patch once it gets reviewed.
---
Cc: Peter Maydell <[email protected]>
Cc: Laurent Vivier <[email protected]>
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Marcel Apfelbaum <[email protected]>
Cc: Peter Chubb <[email protected]>
Cc: Mark Cave-Ayland <[email protected]>
Cc: David Gibson <[email protected]>
Cc: "Cédric Le Goater" <[email protected]>
Cc: Cornelia Huck <[email protected]>
Cc: Halil Pasic <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: Thomas Huth <[email protected]>
Cc: Juan Quintela <[email protected]>
Cc: "Dr. David Alan Gilbert" <[email protected]>
Cc: Yoshinori Sato <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
--- include/hw/block/swim.h | 3 ++- include/hw/display/macfb.h | 8 ++----- include/hw/i386/x86-iommu.h | 8 ++----- include/hw/misc/imx_ccm.h | 8 ++----- include/hw/misc/mos6522.h | 7 ++---- include/hw/ppc/xive.h | 36 ++++++++++++------------------ include/hw/rdma/rdma.h | 6 +---- include/hw/s390x/s390-virtio-ccw.h | 6 ++--- migration/migration.h | 8 ++----- target/arm/cpu-qom.h | 6 ++--- target/rx/cpu-qom.h | 8 ++----- hw/arm/integratorcp.c | 12 +++++----- hw/arm/versatilepb.c | 4 ++-- hw/sd/pl181.c | 3 ++- 14 files changed, 43 insertions(+), 80 deletions(-)
include/hw/block/swim.h +2 -1
@@ -71,7 +71,8 @@ struct SWIMCtrl {#define TYPE_SWIM "swim"typedef struct Swim Swim ; -#define SWIM (obj) OBJECT_CHECK(Swim, (obj), TYPE_SWIM) +DECLARE_INSTANCE_CHECKER (Swim,SWIM , + TYPE_SWIM)struct Swim {SysBusDevice parent_obj;
include/hw/display/macfb.h +2 -6
@@ -45,10 +45,8 @@ struct MacfbSysBusState {#define TYPE_NUBUS_MACFB "nubus-macfb"typedef struct MacfbNubusDeviceClass MacfbNubusDeviceClass ;typedef struct MacfbNubusState MacfbNubusState ; -#define NUBUS_MACFB_CLASS (class) \ - OBJECT_CLASS_CHECK(MacfbNubusDeviceClass, (class), TYPE_NUBUS_MACFB) -#define NUBUS_MACFB_GET_CLASS (obj) \ - OBJECT_GET_CLASS(MacfbNubusDeviceClass, (obj), TYPE_NUBUS_MACFB) +DECLARE_OBJ_CHECKERS (MacfbNubusState, MacfbNubusDeviceClass, + NUBUS_MACFB, TYPE_NUBUS_MACFB)struct MacfbNubusDeviceClass {DeviceClass parent_class;
@@ -56,8 +54,6 @@ struct MacfbNubusDeviceClass {DeviceRealize parent_realize; }; -#define NUBUS_MACFB (obj) \ - OBJECT_CHECK(MacfbNubusState, (obj), TYPE_NUBUS_MACFB)struct MacfbNubusState {NubusDevice busdev;
include/hw/i386/x86-iommu.h +2 -6
@@ -28,12 +28,8 @@#define TYPE_X86_IOMMU_DEVICE ("x86-iommu")typedef struct X86IOMMUClass X86IOMMUClass ;typedef struct X86IOMMUState X86IOMMUState ; -#define X86_IOMMU_DEVICE (obj) \ - OBJECT_CHECK(X86IOMMUState, (obj), TYPE_X86_IOMMU_DEVICE) -#define X86_IOMMU_DEVICE_CLASS (klass) \ - OBJECT_CLASS_CHECK(X86IOMMUClass, (klass), TYPE_X86_IOMMU_DEVICE) -#define X86_IOMMU_DEVICE_GET_CLASS (obj) \ - OBJECT_GET_CLASS(X86IOMMUClass, obj, TYPE_X86_IOMMU_DEVICE) +DECLARE_OBJ_CHECKERS (X86IOMMUState, X86IOMMUClass, + X86_IOMMU_DEVICE, TYPE_X86_IOMMU_DEVICE)#define X86_IOMMU_SID_INVALID (0xffff)
include/hw/misc/imx_ccm.h +2 -6
@@ -30,12 +30,8 @@#define TYPE_IMX_CCM "imx.ccm"typedef struct IMXCCMClass IMXCCMClass ;typedef struct IMXCCMState IMXCCMState ; -#define IMX_CCM (obj) \ - OBJECT_CHECK(IMXCCMState, (obj), TYPE_IMX_CCM) -#define IMX_CCM_CLASS (klass) \ - OBJECT_CLASS_CHECK(IMXCCMClass, (klass), TYPE_IMX_CCM) -#define IMX_CCM_GET_CLASS (obj) \ - OBJECT_GET_CLASS(IMXCCMClass, (obj), TYPE_IMX_CCM) +DECLARE_OBJ_CHECKERS (IMXCCMState, IMXCCMClass, + IMX_CCM, TYPE_IMX_CCM)struct IMXCCMState {/* <private> */
include/hw/misc/mos6522.h +2 -5
@@ -126,7 +126,8 @@ typedef struct MOS6522State MOS6522State;#define TYPE_MOS6522 "mos6522"typedef struct MOS6522DeviceClass MOS6522DeviceClass ; -#define MOS6522 (obj) OBJECT_CHECK(MOS6522State, (obj), TYPE_MOS6522) +DECLARE_OBJ_CHECKERS (MOS6522State, MOS6522DeviceClass, + MOS6522, TYPE_MOS6522)struct MOS6522DeviceClass {DeviceClass parent_class;
@@ -143,10 +144,6 @@ struct MOS6522DeviceClass {uint64_t (*get_timer2_load_time)(MOS6522State *dev,MOS6522Timer *ti); }; -#define MOS6522_CLASS (cls) \ - OBJECT_CLASS_CHECK(MOS6522DeviceClass, (cls), TYPE_MOS6522) -#define MOS6522_GET_CLASS (obj) \ - OBJECT_GET_CLASS(MOS6522DeviceClass, (obj), TYPE_MOS6522)extern const VMStateDescription vmstate_mos6522;
include/hw/ppc/xive.h +14 -22
@@ -155,10 +155,8 @@ typedef struct XiveNotifier XiveNotifier;#define XIVE_NOTIFIER (obj) \ INTERFACE_CHECK(XiveNotifier, (obj), TYPE_XIVE_NOTIFIER)typedef struct XiveNotifierClass XiveNotifierClass ; -#define XIVE_NOTIFIER_CLASS (klass) \ - OBJECT_CLASS_CHECK(XiveNotifierClass, (klass), TYPE_XIVE_NOTIFIER) -#define XIVE_NOTIFIER_GET_CLASS (obj) \ - OBJECT_GET_CLASS(XiveNotifierClass, (obj), TYPE_XIVE_NOTIFIER) +DECLARE_CLASS_CHECKERS (XiveNotifierClass,XIVE_NOTIFIER , + TYPE_XIVE_NOTIFIER)struct XiveNotifierClass {InterfaceClass parent;
@@ -171,7 +169,8 @@ struct XiveNotifierClass {#define TYPE_XIVE_SOURCE "xive-source"typedef struct XiveSource XiveSource ; -#define XIVE_SOURCE (obj) OBJECT_CHECK(XiveSource, (obj), TYPE_XIVE_SOURCE) +DECLARE_INSTANCE_CHECKER (XiveSource,XIVE_SOURCE , +TYPE_XIVE_SOURCE )/* * XIVE Interrupt Source characteristics, which define how the ESB are
@@ -308,7 +307,8 @@ void xive_source_set_irq(void *opaque, int srcno, int val);#define TYPE_XIVE_TCTX "xive-tctx"typedef struct XiveTCTX XiveTCTX ; -#define XIVE_TCTX (obj) OBJECT_CHECK(XiveTCTX, (obj), TYPE_XIVE_TCTX) +DECLARE_INSTANCE_CHECKER (XiveTCTX,XIVE_TCTX , +TYPE_XIVE_TCTX )/* * XIVE Thread interrupt Management register rings :
@@ -349,12 +349,8 @@ typedef struct XiveRouter XiveRouter;#define TYPE_XIVE_ROUTER "xive-router"typedef struct XiveRouterClass XiveRouterClass ; -#define XIVE_ROUTER (obj) \ - OBJECT_CHECK(XiveRouter, (obj), TYPE_XIVE_ROUTER) -#define XIVE_ROUTER_CLASS (klass) \ - OBJECT_CLASS_CHECK(XiveRouterClass, (klass), TYPE_XIVE_ROUTER) -#define XIVE_ROUTER_GET_CLASS (obj) \ - OBJECT_GET_CLASS(XiveRouterClass, (obj), TYPE_XIVE_ROUTER) +DECLARE_OBJ_CHECKERS (XiveRouter, XiveRouterClass, + XIVE_ROUTER, TYPE_XIVE_ROUTER)struct XiveRouterClass {SysBusDeviceClass parent;
@@ -398,10 +394,8 @@ typedef struct XiveTCTXMatch {#define XIVE_PRESENTER (obj) \ INTERFACE_CHECK(XivePresenter, (obj), TYPE_XIVE_PRESENTER)typedef struct XivePresenterClass XivePresenterClass ; -#define XIVE_PRESENTER_CLASS (klass) \ - OBJECT_CLASS_CHECK(XivePresenterClass, (klass), TYPE_XIVE_PRESENTER) -#define XIVE_PRESENTER_GET_CLASS (obj) \ - OBJECT_GET_CLASS(XivePresenterClass, (obj), TYPE_XIVE_PRESENTER) +DECLARE_CLASS_CHECKERS (XivePresenterClass,XIVE_PRESENTER , + TYPE_XIVE_PRESENTER)struct XivePresenterClass {InterfaceClass parent;
@@ -425,10 +419,8 @@ int xive_presenter_tctx_match(XivePresenter *xptr, XiveTCTX *tctx,#define XIVE_FABRIC (obj) \ INTERFACE_CHECK(XiveFabric, (obj), TYPE_XIVE_FABRIC)typedef struct XiveFabricClass XiveFabricClass ; -#define XIVE_FABRIC_CLASS (klass) \ - OBJECT_CLASS_CHECK(XiveFabricClass, (klass), TYPE_XIVE_FABRIC) -#define XIVE_FABRIC_GET_CLASS (obj) \ - OBJECT_GET_CLASS(XiveFabricClass, (obj), TYPE_XIVE_FABRIC) +DECLARE_CLASS_CHECKERS (XiveFabricClass,XIVE_FABRIC , + TYPE_XIVE_FABRIC)struct XiveFabricClass {InterfaceClass parent;
@@ -444,8 +436,8 @@ struct XiveFabricClass {#define TYPE_XIVE_END_SOURCE "xive-end-source"typedef struct XiveENDSource XiveENDSource ; -#define XIVE_END_SOURCE (obj) \ - OBJECT_CHECK(XiveENDSource, (obj), TYPE_XIVE_END_SOURCE) +DECLARE_INSTANCE_CHECKER (XiveENDSource,XIVE_END_SOURCE , + TYPE_XIVE_END_SOURCE)struct XiveENDSource {DeviceState parent;
include/hw/rdma/rdma.h +1 -5
@@ -20,12 +20,8 @@#define INTERFACE_RDMA_PROVIDER "rdma"typedef struct RdmaProviderClass RdmaProviderClass ; -#define RDMA_PROVIDER_CLASS (klass) \ - OBJECT_CLASS_CHECK(RdmaProviderClass, (klass), \ +DECLARE_CLASS_CHECKERS (RdmaProviderClass,RDMA_PROVIDER , INTERFACE_RDMA_PROVIDER) -#define RDMA_PROVIDER_GET_CLASS (obj) \ - OBJECT_GET_CLASS(RdmaProviderClass, (obj), \ - INTERFACE_RDMA_PROVIDER)#define RDMA_PROVIDER (obj) \ INTERFACE_CHECK(RdmaProvider, (obj), \ INTERFACE_RDMA_PROVIDER)
include/hw/s390x/s390-virtio-ccw.h +2 -4
@@ -18,11 +18,9 @@typedef struct S390CcwMachineClass S390CcwMachineClass ;typedef struct S390CcwMachineState S390CcwMachineState ; -#define S390_CCW_MACHINE (obj) \ - OBJECT_CHECK(S390CcwMachineState, (obj), TYPE_S390_CCW_MACHINE) +DECLARE_OBJ_CHECKERS (S390CcwMachineState, S390CcwMachineClass, + S390_CCW_MACHINE, TYPE_S390_CCW_MACHINE) -#define S390_CCW_MACHINE_CLASS (klass) \ - OBJECT_CLASS_CHECK(S390CcwMachineClass, (klass), TYPE_S390_CCW_MACHINE)struct S390CcwMachineState {/*< private >*/
migration/migration.h +2 -6
@@ -116,12 +116,8 @@ void fill_destination_postcopy_migration_info(MigrationInfo *info);#define TYPE_MIGRATION "migration"typedef struct MigrationClass MigrationClass ; -#define MIGRATION_OBJ_CLASS (klass) \ - OBJECT_CLASS_CHECK(MigrationClass, (klass), TYPE_MIGRATION) -#define MIGRATION_OBJ (obj) \ - OBJECT_CHECK(MigrationState, (obj), TYPE_MIGRATION) -#define MIGRATION_OBJ_GET_CLASS (obj) \ - OBJECT_GET_CLASS(MigrationClass, (obj), TYPE_MIGRATION) +DECLARE_OBJ_CHECKERS (MigrationState, MigrationClass, + MIGRATION_OBJ, TYPE_MIGRATION)struct MigrationClass {/*< private >*/
target/arm/cpu-qom.h +2 -4
@@ -63,10 +63,8 @@ struct ARMCPUClass {#define TYPE_AARCH64_CPU "aarch64-cpu"typedef struct AArch64CPUClass AArch64CPUClass ; -#define AARCH64_CPU_CLASS (klass) \ - OBJECT_CLASS_CHECK(AArch64CPUClass, (klass), TYPE_AARCH64_CPU) -#define AARCH64_CPU_GET_CLASS (obj) \ - OBJECT_GET_CLASS(AArch64CPUClass, (obj), TYPE_AARCH64_CPU) +DECLARE_CLASS_CHECKERS (AArch64CPUClass,AARCH64_CPU , + TYPE_AARCH64_CPU)struct AArch64CPUClass {/*< private >*/
target/rx/cpu-qom.h +2 -6
@@ -28,12 +28,8 @@typedef struct RXCPU RXCPU ;typedef struct RXCPUClass RXCPUClass ; -#define RX_CPU_CLASS (klass) \ - OBJECT_CLASS_CHECK(RXCPUClass, (klass), TYPE_RX_CPU) -#define RX_CPU (obj) \ - OBJECT_CHECK(RXCPU, (obj), TYPE_RX_CPU) -#define RX_CPU_GET_CLASS (obj) \ - OBJECT_GET_CLASS(RXCPUClass, (obj), TYPE_RX_CPU) +DECLARE_OBJ_CHECKERS (RXCPU , RXCPUClass, +RX_CPU ,TYPE_RX_CPU )/* * RXCPUClass:
hw/arm/integratorcp.c +6 -6
@@ -30,8 +30,8 @@#define TYPE_INTEGRATOR_CM "integrator_core"typedef struct IntegratorCMState IntegratorCMState ; -#define INTEGRATOR_CM (obj) \ - OBJECT_CHECK(IntegratorCMState, (obj), TYPE_INTEGRATOR_CM) +DECLARE_INSTANCE_CHECKER (IntegratorCMState,INTEGRATOR_CM , + TYPE_INTEGRATOR_CM)struct IntegratorCMState {/*< private >*/
@@ -329,8 +329,8 @@ static void integratorcm_realize(DeviceState *d, Error **errp)#define TYPE_INTEGRATOR_PIC "integrator_pic"typedef struct icp_pic_state icp_pic_state ; -#define INTEGRATOR_PIC (obj) \ - OBJECT_CHECK(icp_pic_state, (obj), TYPE_INTEGRATOR_PIC) +DECLARE_INSTANCE_CHECKER (icp_pic_state,INTEGRATOR_PIC , + TYPE_INTEGRATOR_PIC)struct icp_pic_state {/*< private >*/
@@ -469,8 +469,8 @@ static void icp_pic_init(Object *obj)#define TYPE_ICP_CONTROL_REGS "icp-ctrl-regs"typedef struct ICPCtrlRegsState ICPCtrlRegsState ; -#define ICP_CONTROL_REGS (obj) \ - OBJECT_CHECK(ICPCtrlRegsState, (obj), TYPE_ICP_CONTROL_REGS) +DECLARE_INSTANCE_CHECKER (ICPCtrlRegsState,ICP_CONTROL_REGS , + TYPE_ICP_CONTROL_REGS)struct ICPCtrlRegsState {/*< private >*/
hw/arm/versatilepb.c +2 -2
@@ -36,8 +36,8 @@#define TYPE_VERSATILE_PB_SIC "versatilepb_sic"typedef struct vpb_sic_state vpb_sic_state ; -#define VERSATILE_PB_SIC (obj) \ - OBJECT_CHECK(vpb_sic_state, (obj), TYPE_VERSATILE_PB_SIC) +DECLARE_INSTANCE_CHECKER (vpb_sic_state,VERSATILE_PB_SIC , + TYPE_VERSATILE_PB_SIC)struct vpb_sic_state {SysBusDevice parent_obj;
hw/sd/pl181.c +2 -1
@@ -24,7 +24,8 @@#define TYPE_PL181 "pl181"typedef struct PL181State PL181State ; -#define PL181 (obj) OBJECT_CHECK(PL181State, (obj), TYPE_PL181) +DECLARE_INSTANCE_CHECKER (PL181State,PL181 , + TYPE_PL181)#define TYPE_PL181_BUS "pl181-bus"
Signature · 1 line
2.26.2
PATCH v3 39/74 pxa2xx: Move QOM macros to header
In reply to Eduardo HabkostThis will make future conversion to OBJECT_DECLARE* easier.
---
Changes v2 -> v3: none
Changes series v1 -> v2: new patch in series v2
--- include/hw/arm/pxa.h | 13 +++++++++++++ hw/arm/pxa2xx.c | 7 ------- hw/pcmcia/pxa2xx.c | 4 ---- hw/sd/pxa2xx_mmci.c | 3 --- 4 files changed, 13 insertions(+), 14 deletions(-)
include/hw/arm/pxa.h +13 -0
@@ -86,7 +86,10 @@ PXA2xxLCDState *pxa2xx_lcdc_init(MemoryRegion *sysmem,void pxa2xx_lcd_vsync_notifier (PXA2xxLCDState *s,qemu_irq handler);/* pxa2xx_mmci.c */ +#define TYPE_PXA2XX_MMCI "pxa2xx-mmci"typedef struct PXA2xxMMCIState PXA2xxMMCIState ; +#define PXA2XX_MMCI (obj) OBJECT_CHECK(PXA2xxMMCIState, (obj), TYPE_PXA2XX_MMCI) +PXA2xxMMCIState *pxa2xx_mmci_init (MemoryRegion *sysmem,hwaddr base,qemu_irq irq,qemu_irq rx_dma,qemu_irq tx_dma);
@@ -94,7 +97,11 @@ void pxa2xx_mmci_handlers(PXA2xxMMCIState *s, qemu_irq readonly, qemu_irq coverswitch);/* pxa2xx_pcmcia.c */ +#define TYPE_PXA2XX_PCMCIA "pxa2xx-pcmcia"typedef struct PXA2xxPCMCIAState PXA2xxPCMCIAState ; +#define PXA2XX_PCMCIA (obj) \ + OBJECT_CHECK(PXA2xxPCMCIAState, obj, TYPE_PXA2XX_PCMCIA) +PXA2xxPCMCIAState *pxa2xx_pcmcia_init (MemoryRegion *sysmem,hwaddr base);int pxa2xx_pcmcia_attach (void *opaque,PCMCIACardState *card);
@@ -119,8 +126,14 @@ PXA2xxI2CState *pxa2xx_i2c_init(hwaddr base, qemu_irq irq, uint32_t page_size);I2CBus *pxa2xx_i2c_bus (PXA2xxI2CState *s); +#define TYPE_PXA2XX_I2C "pxa2xx_i2c"typedef struct PXA2xxI2SState PXA2xxI2SState ; +#define PXA2XX_I2C (obj) \ + OBJECT_CHECK(PXA2xxI2CState, (obj), TYPE_PXA2XX_I2C) + +#define TYPE_PXA2XX_FIR "pxa2xx-fir"typedef struct PXA2xxFIrState PXA2xxFIrState ; +#define PXA2XX_FIR (obj) OBJECT_CHECK(PXA2xxFIrState, (obj), TYPE_PXA2XX_FIR) typedef struct { ARMCPU *cpu;
hw/arm/pxa2xx.c +0 -7
@@ -1251,10 +1251,6 @@ typedef struct PXA2xxI2CSlaveState {PXA2xxI2CState *host; } PXA2xxI2CSlaveState; -#define TYPE_PXA2XX_I2C "pxa2xx_i2c" -#define PXA2XX_I2C (obj) \ - OBJECT_CHECK(PXA2xxI2CState, (obj), TYPE_PXA2XX_I2C) -struct PXA2xxI2CState {/*< private >*/ SysBusDevice parent_obj;
@@ -1787,9 +1783,6 @@ static PXA2xxI2SState *pxa2xx_i2s_init(MemoryRegion *sysmem, }/* PXA Fast Infra-red Communications Port */ -#define TYPE_PXA2XX_FIR "pxa2xx-fir" -#define PXA2XX_FIR (obj) OBJECT_CHECK(PXA2xxFIrState, (obj), TYPE_PXA2XX_FIR) -struct PXA2xxFIrState {/*< private >*/ SysBusDevice parent_obj;
hw/pcmcia/pxa2xx.c +0 -4
@@ -18,10 +18,6 @@#include "hw/pcmcia.h" #include "hw/arm/pxa.h" -#define TYPE_PXA2XX_PCMCIA "pxa2xx-pcmcia" -#define PXA2XX_PCMCIA (obj) \ - OBJECT_CHECK(PXA2xxPCMCIAState, obj, TYPE_PXA2XX_PCMCIA) -struct PXA2xxPCMCIAState {SysBusDevice parent_obj;
hw/sd/pxa2xx_mmci.c +0 -3
@@ -22,9 +22,6 @@#include "qemu/module.h" #include "trace.h" -#define TYPE_PXA2XX_MMCI "pxa2xx-mmci" -#define PXA2XX_MMCI (obj) OBJECT_CHECK(PXA2xxMMCIState, (obj), TYPE_PXA2XX_MMCI) -#define TYPE_PXA2XX_MMCI_BUS "pxa2xx-mmci-bus"#define PXA2XX_MMCI_BUS (obj) OBJECT_CHECK(SDBus, (obj), TYPE_PXA2XX_MMCI_BUS)
Signature · 1 line
2.26.2
PATCH v3 44/74 imx_ccm: Rename IMX_GET_CLASS macro
In reply to Eduardo HabkostRename it to IMX_CCM_GET_CLASS to be consistent with the existing IMX_CCM and IXM_CCM_CLASS macro.
This will make future conversion to OBJECT_DECLARE* easier.
---
Changes series v2 -> v3: new patch added to series v3
---
Cc: Peter Chubb <[email protected]>
Cc: Peter Maydell <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- include/hw/misc/imx_ccm.h | 2 +- hw/misc/imx_ccm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
include/hw/misc/imx_ccm.h +1 -1
@@ -31,7 +31,7 @@ OBJECT_CHECK(IMXCCMState, (obj), TYPE_IMX_CCM)#define IMX_CCM_CLASS (klass) \ OBJECT_CLASS_CHECK(IMXCCMClass, (klass), TYPE_IMX_CCM) -#define IMX_GET_CLASS (obj) \ +#define IMX_CCM_GET_CLASS (obj) \ OBJECT_GET_CLASS(IMXCCMClass, (obj), TYPE_IMX_CCM) typedef struct IMXCCMState {
hw/misc/imx_ccm.c +1 -1
@@ -32,7 +32,7 @@uint32_t imx_ccm_get_clock_frequency (IMXCCMState *dev,IMXClk clock) {uint32_t freq =0 ; -IMXCCMClass *klass =IMX_GET_CLASS (dev); +IMXCCMClass *klass =IMX_CCM_GET_CLASS (dev);if (klass->get_clock_frequency) { freq = klass->get_clock_frequency (dev, clock);
Signature · 1 line
2.26.2
PATCH v3 29/74 vhost-user-gpu: Move QOM macro to header
In reply to Eduardo HabkostMove the VHOST_USER_GPU type checking macro to virtio-gpu.h, close to the TYPE_VHOST_USER_GPU #define.
This will make future conversion to OBJECT_DECLARE* easier.
---
Changes v2 -> v3: none
Changes series v1 -> v2: new patch in series v2
--- include/hw/virtio/virtio-gpu.h | 2 ++ hw/display/vhost-user-gpu.c | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-)
include/hw/virtio/virtio-gpu.h +2 -0
@@ -36,6 +36,8 @@ OBJECT_CHECK(VirtIOGPU, (obj), TYPE_VIRTIO_GPU)#define TYPE_VHOST_USER_GPU "vhost-user-gpu" +#define VHOST_USER_GPU (obj) \ + OBJECT_CHECK(VhostUserGPU, (obj), TYPE_VHOST_USER_GPU)#define VIRTIO_ID_GPU 16
hw/display/vhost-user-gpu.c +0 -3
@@ -17,9 +17,6 @@#include "qapi/error.h" #include "migration/blocker.h" -#define VHOST_USER_GPU (obj) \ - OBJECT_CHECK(VhostUserGPU, (obj), TYPE_VHOST_USER_GPU) - typedef enum VhostUserGpuRequest { VHOST_USER_GPU_NONE = 0, VHOST_USER_GPU_GET_PROTOCOL_FEATURES,
Signature · 1 line
2.26.2
PATCH v3 49/74 swim: Rename struct SWIM to Swim
In reply to Eduardo HabkostCurrently we have a SWIM typedef and a SWIM type checking macro, but OBJECT_DECLARE* would transform the SWIM macro into a function, and the function name would conflict with the SWIM typedef name.
Rename the struct and typedef to "Swim". This will make future conversion to OBJECT_DECLARE* easier.
---
Changes series v2 -> v3: new patch added to series v3
---
Cc: Laurent Vivier <[email protected]>
Cc: Kevin Wolf <[email protected]>
Cc: Max Reitz <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- include/hw/block/swim.h | 6 +++--- hw/block/swim.c | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-)
include/hw/block/swim.h +3 -3
@@ -67,10 +67,10 @@ struct SWIMCtrl { };#define TYPE_SWIM "swim" -#define SWIM (obj) OBJECT_CHECK(SWIM, (obj), TYPE_SWIM) +#define SWIM (obj) OBJECT_CHECK(Swim, (obj), TYPE_SWIM) -typedef struct SWIM { +typedef struct Swim {SysBusDevice parent_obj;SWIMCtrl ctrl; -}SWIM ; +}Swim ;#endif
hw/block/swim.c +5 -5
@@ -387,7 +387,7 @@ static const MemoryRegionOps swimctrl_mem_ops = {static void sysbus_swim_reset (DeviceState *d) { -SWIM *sys =SWIM (d); +Swim *sys =SWIM (d);SWIMCtrl *ctrl = &sys->ctrl;int i;
@@ -408,7 +408,7 @@ static void sysbus_swim_reset(DeviceState *d)static void sysbus_swim_init (Object *obj) {SysBusDevice *sbd =SYS_BUS_DEVICE (obj); -SWIM *sbs =SWIM (obj); +Swim *sbs =SWIM (obj);SWIMCtrl *swimctrl = &sbs->ctrl; memory_region_init_io(&swimctrl->iomem, obj, &swimctrl_mem_ops, swimctrl,
@@ -418,7 +418,7 @@ static void sysbus_swim_init(Object *obj)static void sysbus_swim_realize (DeviceState *dev,Error **errp) { -SWIM *sys =SWIM (dev); +Swim *sys =SWIM (dev);SWIMCtrl *swimctrl = &sys->ctrl; qbus_create_inplace(&swimctrl->bus, sizeof(SWIMBus), TYPE_SWIM_BUS, dev,
@@ -460,7 +460,7 @@ static const VMStateDescription vmstate_sysbus_swim = { .name = "SWIM", .version_id = 1, .fields = (VMStateField []) { -VMSTATE_STRUCT (ctrl,SWIM ,0 , vmstate_swim, SWIMCtrl), +VMSTATE_STRUCT (ctrl, Swim,0 , vmstate_swim, SWIMCtrl),VMSTATE_END_OF_LIST () } };
@@ -477,7 +477,7 @@ static void sysbus_swim_class_init(ObjectClass *oc, void *data)static const TypeInfo sysbus_swim_info = { .name =TYPE_SWIM , .parent =TYPE_SYS_BUS_DEVICE , - .instance_size =sizeof (SWIM ), + .instance_size =sizeof (Swim), .instance_init = sysbus_swim_init, .class_init = sysbus_swim_class_init, };
Signature · 1 line
2.26.2