mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43: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
|
@ -87,16 +87,11 @@ static void shix_init(MachineState *machine)
|
|||
tc58128_init(s, "shix_linux_nand.bin", NULL);
|
||||
}
|
||||
|
||||
static QEMUMachine shix_machine = {
|
||||
.name = "shix",
|
||||
.desc = "shix card",
|
||||
.init = shix_init,
|
||||
.is_default = 1,
|
||||
};
|
||||
|
||||
static void shix_machine_init(void)
|
||||
static void shix_machine_init(MachineClass *mc)
|
||||
{
|
||||
qemu_register_machine(&shix_machine);
|
||||
mc->desc = "shix card";
|
||||
mc->init = shix_init;
|
||||
mc->is_default = 1;
|
||||
}
|
||||
|
||||
machine_init(shix_machine_init);
|
||||
DEFINE_MACHINE("shix", shix_machine_init)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue