mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
Use DEFINE_MACHINE() to register all machines
Convert all machines to use DEFINE_MACHINE() instead of QEMUMachine automatically using a script. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> [AF: Style cleanups, convert imx25_pdk machine] Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
f309ae852c
commit
e264d29de2
57 changed files with 543 additions and 798 deletions
|
@ -206,16 +206,11 @@ petalogix_ml605_init(MachineState *machine)
|
|||
|
||||
}
|
||||
|
||||
static QEMUMachine petalogix_ml605_machine = {
|
||||
.name = "petalogix-ml605",
|
||||
.desc = "PetaLogix linux refdesign for xilinx ml605 little endian",
|
||||
.init = petalogix_ml605_init,
|
||||
.is_default = 0,
|
||||
};
|
||||
|
||||
static void petalogix_ml605_machine_init(void)
|
||||
static void petalogix_ml605_machine_init(MachineClass *mc)
|
||||
{
|
||||
qemu_register_machine(&petalogix_ml605_machine);
|
||||
mc->desc = "PetaLogix linux refdesign for xilinx ml605 little endian";
|
||||
mc->init = petalogix_ml605_init;
|
||||
mc->is_default = 0;
|
||||
}
|
||||
|
||||
machine_init(petalogix_ml605_machine_init);
|
||||
DEFINE_MACHINE("petalogix-ml605", petalogix_ml605_machine_init)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue