[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC 00/10] CPU DeviceState v8
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [RFC 00/10] CPU DeviceState v8 |
Date: |
Fri, 30 Nov 2012 17:27:12 -0200 |
Changes on v8:
- Use a simpler copyright header on qdev-properties-system.c
- Use the new libqemustub.a mechanism instead of the (now exting)
QEMU_WEAK_ALIAS mechanism
- Move the reset-handler registration code to a new hw/reset.c file
- This is based on afaerber's qom-cpu branch, that has some header cleanup
changes. You can get the complete series in a git tree at:
https://github.com/ehabkost/qemu-hacks/tree/cpu_qdev.v8
git://github.com/ehabkost/qemu-hacks.git cpu_qdev.v8
v7:
- Use the new QEMU_WEAK_ALIAS mechanism instead of the (now extinct)
GCC_WEAK attribute (patches 20 and 21)
v6:
- Simple rebase against latest qemu.git master
- Patch 13: some new typedefs were added and others were removed
- Patch 19: trivial rebase
v5:
- Tons of header cleanups just to eliminate qlist.h <-> cpu-common.h circular
dependency (patches 1-17)
- Add copyright/license information to qdev-properties.c (patch 17)
- Add copyright/license information to qdev-properties-system.c (patch 22)
- use error_report()+abort() instead of hw_error() on qdev.c (patch 18)
- Move qemu_[un]register_reset() and qemu_devices_reset() to qdev-core.c
(patch 19)
- Make vmstate_[un]register() weak stubs, instead of a new function (patch 20)
- Make sysbus_get_default() weak stub, instead of new qbus reset (un)register
functions (patch 21)
- Eliminate qdev-system.c (all code is kept on qdev.c, now) (patch 22)
v4:
- Add GCC_WEAK_DECL to functions that have GCC_WEAK versions
- Updated the qdev_init_gpio_in() code on qdev-system.c to current version
- Patch description updates (moved changelog below "---" and/or move info
about changes made by different authors between SoB lines)
v3 (submitted by Igor):
- rebased on top of 8b4a3df (today's master)
- slight code reshuffling in (see commit's changelog)
"qdev: separate core from the code used only by qemu-system-*"
"move qemu_irq typedef out of cpu-common.h"
- commit messages cleanup
v2:
Removes the CONFIG_USER_ONLY ifdefs, and use weak symbols to move
the vmstate and qemu_register_reset() handling to qdev-system.c
git tree for testing:
https://github.com/ehabkost/qemu-hacks/tree/cpu_qdev.v8
git://github.com/ehabkost/qemu-hacks.git cpu_qdev.v8
References to previous versions:
v7: http://article.gmane.org/gmane.comp.emulators.qemu/179969
v6: http://article.gmane.org/gmane.comp.emulators.qemu/179918
v5: http://article.gmane.org/gmane.comp.emulators.qemu/177426
v4: http://article.gmane.org/gmane.comp.emulators.qemu/176127
v3: http://article.gmane.org/gmane.comp.emulators.qemu/175980
v2: http://article.gmane.org/gmane.comp.emulators.qemu/173909
v1: http://article.gmane.org/gmane.comp.emulators.qemu/166630
Eduardo Habkost (9):
create qemu-types.h for struct typedefs
sysemu.h: include qemu-types.h instead of qemu-common.h
move -I$(SRC_PATH)/include compiler flag to Makefile.objs
qdev: qdev_create(): use error_report() instead of hw_error()
qdev: move reset handler list from vl.c to hw/reset.c
qdev: add stubs for vmstate register/unregister functions
qdev: add sysbus_get_default() stub
qdev-properties.c: separate core from the code used only by
qemu-system-*
include qdev code into *-user, too
Igor Mammedov (1):
qom: make CPU a child of DeviceState
Makefile | 1 -
Makefile.objs | 23 ++-
hw/Makefile.objs | 12 +-
hw/ac97.c | 1 +
hw/acpi_ich9.c | 1 +
hw/acpi_piix4.c | 1 +
hw/adb.c | 1 +
hw/arm_boot.c | 1 +
hw/armv7m.c | 1 +
hw/bonito.c | 1 +
hw/cirrus_vga.c | 1 +
hw/cris-boot.c | 1 +
hw/cs4231a.c | 1 +
hw/cuda.c | 1 +
hw/dma.c | 1 +
hw/dp8393x.c | 1 +
hw/eepro100.c | 1 +
hw/es1370.c | 1 +
hw/etraxfs_timer.c | 1 +
hw/gt64xxx.c | 1 +
hw/heathrow_pic.c | 1 +
hw/hw.h | 5 -
hw/ide/cmd646.c | 1 +
hw/ide/macio.c | 1 +
hw/ide/mmio.c | 1 +
hw/ide/piix.c | 1 +
hw/ide/via.c | 1 +
hw/leon3.c | 1 +
hw/lm32_boards.c | 1 +
hw/lm832x.c | 1 +
hw/loader.c | 1 +
hw/mac_dbdma.c | 1 +
hw/mac_nvram.c | 1 +
hw/mc146818rtc.c | 1 +
hw/microblaze_boot.c | 1 +
hw/milkymist.c | 1 +
hw/mips_fulong2e.c | 1 +
hw/mips_jazz.c | 1 +
hw/mips_malta.c | 1 +
hw/mips_mipssim.c | 1 +
hw/mips_r4k.c | 1 +
hw/nseries.c | 1 +
hw/omap1.c | 1 +
hw/omap2.c | 1 +
hw/openpic.c | 1 +
hw/openrisc_sim.c | 1 +
hw/parallel.c | 1 +
hw/pc.c | 1 +
hw/pckbd.c | 1 +
hw/piix4.c | 1 +
hw/piix_pci.c | 1 +
hw/ppc/e500.c | 1 +
hw/ppc405_boards.c | 1 +
hw/ppc405_uc.c | 1 +
hw/ppc440_bamboo.c | 1 +
hw/ppc4xx_devs.c | 1 +
hw/ppc4xx_pci.c | 1 +
hw/ppc_newworld.c | 1 +
hw/ppc_oldworld.c | 1 +
hw/ppc_prep.c | 1 +
hw/ppce500_spin.c | 1 +
hw/ps2.c | 1 +
hw/qdev-core.h | 11 +-
hw/qdev-properties-system.c | 352 ++++++++++++++++++++++++++++++++++++++++++++
hw/qdev-properties.c | 321 +---------------------------------------
hw/qdev-properties.h | 1 +
hw/qdev.c | 22 +--
hw/r2d.c | 1 +
hw/rc4030.c | 1 +
hw/reset.c | 43 ++++++
hw/reset.h | 11 ++
hw/s390-virtio-bus.c | 1 +
hw/serial.c | 1 +
hw/spapr.c | 1 +
hw/sun4m.c | 1 +
hw/sun4u.c | 1 +
hw/tsc2005.c | 1 +
hw/tsc210x.c | 1 +
hw/usb/hcd-ehci.c | 1 +
hw/usb/hcd-ohci.c | 1 +
hw/usb/hcd-uhci.c | 1 +
hw/vga.c | 1 +
hw/virtex_ml507.c | 1 +
hw/vt82c686.c | 1 +
hw/xics.c | 1 +
hw/xtensa_lx60.c | 1 +
hw/xtensa_sim.c | 1 +
include/qemu/cpu.h | 6 +-
kvm-all.c | 1 +
qemu-common.h | 52 +------
qemu-types.h | 61 ++++++++
qom/cpu.c | 3 +-
stubs/Makefile.objs | 2 +
stubs/sysbus.c | 6 +
stubs/vmstate.c | 17 +++
sysemu.h | 3 +-
target-i386/cpu.c | 1 +
target-i386/kvm.c | 1 +
vl.c | 41 +-----
xen-all.c | 1 +
100 files changed, 616 insertions(+), 457 deletions(-)
create mode 100644 hw/qdev-properties-system.c
create mode 100644 hw/reset.c
create mode 100644 hw/reset.h
create mode 100644 qemu-types.h
create mode 100644 stubs/sysbus.c
create mode 100644 stubs/vmstate.c
--
1.7.11.7
- [Qemu-devel] [RFC 00/10] CPU DeviceState v8,
Eduardo Habkost <=
- [Qemu-devel] [RFC 03/10] move -I$(SRC_PATH)/include compiler flag to Makefile.objs, Eduardo Habkost, 2012/11/30
- [Qemu-devel] [RFC 10/10] qom: make CPU a child of DeviceState, Eduardo Habkost, 2012/11/30
- [Qemu-devel] [RFC 09/10] include qdev code into *-user, too, Eduardo Habkost, 2012/11/30
- [Qemu-devel] [RFC 06/10] qdev: add stubs for vmstate register/unregister functions, Eduardo Habkost, 2012/11/30
- [Qemu-devel] [RFC 07/10] qdev: add sysbus_get_default() stub, Eduardo Habkost, 2012/11/30
- [Qemu-devel] [RFC 01/10] create qemu-types.h for struct typedefs, Eduardo Habkost, 2012/11/30
- [Qemu-devel] [RFC 02/10] sysemu.h: include qemu-types.h instead of qemu-common.h, Eduardo Habkost, 2012/11/30
- [Qemu-devel] [RFC 08/10] qdev-properties.c: separate core from the code used only by qemu-system-*, Eduardo Habkost, 2012/11/30
- [Qemu-devel] [RFC 04/10] qdev: qdev_create(): use error_report() instead of hw_error(), Eduardo Habkost, 2012/11/30
- [Qemu-devel] [RFC 05/10] qdev: move reset handler list from vl.c to hw/reset.c, Eduardo Habkost, 2012/11/30