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
|
@ -121,22 +121,18 @@ static void verdex_init(MachineState *machine)
|
|||
qdev_get_gpio_in(cpu->gpio, 99));
|
||||
}
|
||||
|
||||
static QEMUMachine connex_machine = {
|
||||
.name = "connex",
|
||||
.desc = "Gumstix Connex (PXA255)",
|
||||
.init = connex_init,
|
||||
};
|
||||
|
||||
static QEMUMachine verdex_machine = {
|
||||
.name = "verdex",
|
||||
.desc = "Gumstix Verdex (PXA270)",
|
||||
.init = verdex_init,
|
||||
};
|
||||
|
||||
static void gumstix_machine_init(void)
|
||||
static void connex_machine_init(MachineClass *mc)
|
||||
{
|
||||
qemu_register_machine(&connex_machine);
|
||||
qemu_register_machine(&verdex_machine);
|
||||
mc->desc = "Gumstix Connex (PXA255)";
|
||||
mc->init = connex_init;
|
||||
}
|
||||
|
||||
machine_init(gumstix_machine_init);
|
||||
DEFINE_MACHINE("connex", connex_machine_init)
|
||||
|
||||
static void verdex_machine_init(MachineClass *mc)
|
||||
{
|
||||
mc->desc = "Gumstix Verdex (PXA270)";
|
||||
mc->init = verdex_init;
|
||||
}
|
||||
|
||||
DEFINE_MACHINE("verdex", verdex_machine_init)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue