From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRmGj-0007DG-TE for qemu-devel@nongnu.org; Tue, 18 Aug 2015 15:09:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRmGg-0005ek-D3 for qemu-devel@nongnu.org; Tue, 18 Aug 2015 15:09:57 -0400 From: Eduardo Habkost Date: Tue, 18 Aug 2015 12:08:47 -0700 Message-Id: <1439924934-30491-1-git-send-email-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 0/7] machine registration: Use QOM, eliminate QEMUMachine List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Evgeny Voevodin , "Michael S. Tsirkin" , Mark Cave-Ayland , Blue Swirl , Max Filippov , "Edgar E. Iglesias" , Guan Xuetao , Rob Herring , Jia Liu , Alexander Graf , =?UTF-8?q?Andreas=20F=C3=A4rber?= , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Antony Pavlov , Maksim Kozlov , Leon Alrae , Marcel Apfelbaum , Li Guang , Fabien Chouteau , Peter Chubb , Paolo Bonzini , Scott Wood , Richard Henderson , Peter Crosthwaite , Igor Mitsyanko , Michael Walle , qemu-ppc@nongnu.org, Dmitry Solodkiy , Bastian Koppelmann , Jan Kiszka , Aurelien Jarno This converts all code using QEMUMachine to register a QOM class directly= , using a new macro: DEFINE_MACHINE. Python script used to convert all machines automatically can be seen at: https://gist.github.com/ehabkost/582fe4969205975febb2#file-qemumachine-= eliminate-py Cc: Richard Henderson Cc: Peter Maydell Cc: Li Guang Cc: Antony Pavlov Cc: Evgeny Voevodin Cc: Maksim Kozlov Cc: Igor Mitsyanko Cc: Dmitry Solodkiy Cc: Rob Herring Cc: Peter Chubb Cc: Jan Kiszka Cc: Andrzej Zaborowski Cc: Peter Crosthwaite Cc: "Edgar E. Iglesias" Cc: Michael Walle Cc: Aurelien Jarno Cc: Leon Alrae Cc: "Herv=C3=A9 Poussineau" Cc: Jia Liu Cc: Alexander Graf Cc: Scott Wood Cc: "Andreas F=C3=A4rber" Cc: Magnus Damm Cc: Fabien Chouteau Cc: Blue Swirl Cc: Mark Cave-Ayland Cc: Bastian Koppelmann Cc: Guan Xuetao Cc: Max Filippov Cc: "Michael S. Tsirkin" Cc: Paolo Bonzini Cc: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org Eduardo Habkost (7): exynos4: Use EXYNOS4210_NCPUS instead of max_cpus on error message exynos4: Use MachineClass instead of exynos4_machines array exynos4: Declare each QEMUMachine as a separate variable machine: DEFINE_MACHINE macro pc: Use DEFINE_MACHINE to implement DEFINE_PC_MACHINE [RFC] Use DEFINE_MACHINE to register all machines machine: Eliminate QEMUMachine and qemu_register_machine() hw/acpi/piix4.c | 2 +- hw/alpha/dp264.c | 18 ++-- hw/arm/collie.c | 14 +-- hw/arm/cubieboard.c | 16 ++- hw/arm/digic_boards.c | 14 +-- hw/arm/exynos4_boards.c | 39 ++++--- hw/arm/gumstix.c | 29 +++--- hw/arm/highbank.c | 33 +++--- hw/arm/integratorcp.c | 14 +-- hw/arm/kzm.c | 14 +-- hw/arm/mainstone.c | 14 +-- hw/arm/musicpal.c | 14 +-- hw/arm/netduino2.c | 14 +-- hw/arm/nseries.c | 29 +++--- hw/arm/omap_sx1.c | 25 ++--- hw/arm/palm.c | 14 +-- hw/arm/realview.c | 61 ++++++----- hw/arm/spitz.c | 51 +++++----- hw/arm/stellaris.c | 25 ++--- hw/arm/tosa.c | 14 +-- hw/arm/versatilepb.c | 29 +++--- hw/arm/xilinx_zynq.c | 20 ++-- hw/arm/xlnx-ep108.c | 14 +-- hw/arm/z2.c | 14 +-- hw/core/null-machine.c | 16 ++- hw/cris/axis_dev88.c | 16 ++- hw/lm32/lm32_boards.c | 33 +++--- hw/lm32/milkymist.c | 16 ++- hw/m68k/an5206.c | 14 +-- hw/m68k/dummy_m68k.c | 14 +-- hw/m68k/mcf5208.c | 16 ++- hw/microblaze/petalogix_ml605_mmu.c | 16 ++- hw/microblaze/petalogix_s3adsp1800_mmu.c | 16 ++- hw/mips/mips_fulong2e.c | 14 +-- hw/mips/mips_jazz.c | 29 +++--- hw/mips/mips_malta.c | 24 ++--- hw/mips/mips_mipssim.c | 14 +-- hw/mips/mips_r4k.c | 14 +-- hw/moxie/moxiesim.c | 16 ++- hw/openrisc/openrisc_sim.c | 18 ++-- hw/ppc/e500plat.c | 18 ++-- hw/ppc/mac_oldworld.c | 24 ++--- hw/ppc/mpc8544ds.c | 16 ++- hw/ppc/ppc405_boards.c | 27 +++-- hw/ppc/ppc440_bamboo.c | 14 +-- hw/ppc/prep.c | 18 ++-- hw/ppc/virtex_ml507.c | 14 +-- hw/sh4/r2d.c | 14 +-- hw/sh4/shix.c | 16 ++- hw/sparc/leon3.c | 14 +-- hw/sparc/sun4m.c | 170 ++++++++++++++++---------= ------ hw/sparc64/sun4u.c | 76 +++++++------- hw/tricore/tricore_testboard.c | 16 ++- hw/unicore32/puv3.c | 16 ++- hw/xenpv/xen_machine_pv.c | 18 ++-- hw/xtensa/sim.c | 18 ++-- hw/xtensa/xtfpga.c | 59 ++++++----- include/hw/boards.h | 45 ++++---- include/hw/i386/pc.h | 15 +-- include/qemu/typedefs.h | 1 - include/sysemu/blockdev.h | 2 +- include/sysemu/sysemu.h | 2 +- vl.c | 37 ------- 63 files changed, 606 insertions(+), 861 deletions(-) --=20 2.1.0