mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -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
|
@ -231,15 +231,10 @@ mips_mipssim_init(MachineState *machine)
|
|||
mipsnet_init(0x4200, env->irq[2], &nd_table[0]);
|
||||
}
|
||||
|
||||
static QEMUMachine mips_mipssim_machine = {
|
||||
.name = "mipssim",
|
||||
.desc = "MIPS MIPSsim platform",
|
||||
.init = mips_mipssim_init,
|
||||
};
|
||||
|
||||
static void mips_mipssim_machine_init(void)
|
||||
static void mips_mipssim_machine_init(MachineClass *mc)
|
||||
{
|
||||
qemu_register_machine(&mips_mipssim_machine);
|
||||
mc->desc = "MIPS MIPSsim platform";
|
||||
mc->init = mips_mipssim_init;
|
||||
}
|
||||
|
||||
machine_init(mips_mipssim_machine_init);
|
||||
DEFINE_MACHINE("mipssim", mips_mipssim_machine_init)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue