mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -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
|
@ -297,15 +297,10 @@ static void virtex_init(MachineState *machine)
|
|||
env->load_info = &boot_info;
|
||||
}
|
||||
|
||||
static QEMUMachine virtex_machine = {
|
||||
.name = "virtex-ml507",
|
||||
.desc = "Xilinx Virtex ML507 reference design",
|
||||
.init = virtex_init,
|
||||
};
|
||||
|
||||
static void virtex_machine_init(void)
|
||||
static void virtex_machine_init(MachineClass *mc)
|
||||
{
|
||||
qemu_register_machine(&virtex_machine);
|
||||
mc->desc = "Xilinx Virtex ML507 reference design";
|
||||
mc->init = virtex_init;
|
||||
}
|
||||
|
||||
machine_init(virtex_machine_init);
|
||||
DEFINE_MACHINE("virtex-ml507", virtex_machine_init)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue