mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23: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
|
@ -252,18 +252,13 @@ static void tosa_init(MachineState *machine)
|
|||
sl_bootparam_write(SL_PXA_PARAM_BASE);
|
||||
}
|
||||
|
||||
static QEMUMachine tosapda_machine = {
|
||||
.name = "tosa",
|
||||
.desc = "Tosa PDA (PXA255)",
|
||||
.init = tosa_init,
|
||||
};
|
||||
|
||||
static void tosapda_machine_init(void)
|
||||
static void tosapda_machine_init(MachineClass *mc)
|
||||
{
|
||||
qemu_register_machine(&tosapda_machine);
|
||||
mc->desc = "Tosa PDA (PXA255)";
|
||||
mc->init = tosa_init;
|
||||
}
|
||||
|
||||
machine_init(tosapda_machine_init);
|
||||
DEFINE_MACHINE("tosa", tosapda_machine_init)
|
||||
|
||||
static void tosa_dac_class_init(ObjectClass *klass, void *data)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue