qdev: register all types natively through QEMU Object Model
This was done in a mostly automated fashion. I did it in three steps and then
rebased it into a single step which avoids repeatedly touching every file in
the tree.
The first step was a sed-based addition of the parent type to the subclass
registration functions.
The second step was another sed-based removal of subclass registration functions
while also adding virtual functions from the base class into a class_init
function as appropriate.
Finally, a python script was used to convert the DeviceInfo structures and
qdev_register_subclass functions to TypeInfo structures, class_init functions,
and type_register_static calls.
We are almost fully converted to QOM after this commit.
Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
Showing
- hw/9pfs/virtio-9p-device.c 9 additions, 7 deletionshw/9pfs/virtio-9p-device.c
- hw/a9mpcore.c 22 additions, 18 deletionshw/a9mpcore.c
- hw/ac97.c 10 additions, 8 deletionshw/ac97.c
- hw/acpi_piix4.c 11 additions, 9 deletionshw/acpi_piix4.c
- hw/ads7846.c 6 additions, 5 deletionshw/ads7846.c
- hw/alpha_typhoon.c 8 additions, 6 deletionshw/alpha_typhoon.c
- hw/apb_pci.c 23 additions, 18 deletionshw/apb_pci.c
- hw/apic.c 6 additions, 4 deletionshw/apic.c
- hw/apic_common.c 5 additions, 10 deletionshw/apic_common.c
- hw/apic_internal.h 0 additions, 1 deletionhw/apic_internal.h
- hw/applesmc.c 16 additions, 12 deletionshw/applesmc.c
- hw/arm11mpcore.c 16 additions, 12 deletionshw/arm11mpcore.c
- hw/arm_l2x0.c 14 additions, 10 deletionshw/arm_l2x0.c
- hw/arm_mptimer.c 16 additions, 12 deletionshw/arm_mptimer.c
- hw/arm_sysctl.c 10 additions, 8 deletionshw/arm_sysctl.c
- hw/arm_timer.c 20 additions, 15 deletionshw/arm_timer.c
- hw/armv7m.c 8 additions, 6 deletionshw/armv7m.c
- hw/armv7m_nvic.c 18 additions, 14 deletionshw/armv7m_nvic.c
- hw/bitbang_i2c.c 8 additions, 6 deletionshw/bitbang_i2c.c
- hw/bonito.c 18 additions, 14 deletionshw/bonito.c
Loading
Please register or sign in to comment