mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -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
|
@ -19,17 +19,11 @@ static void machine_none_init(MachineState *machine)
|
|||
{
|
||||
}
|
||||
|
||||
static QEMUMachine machine_none = {
|
||||
.name = "none",
|
||||
.desc = "empty machine",
|
||||
.init = machine_none_init,
|
||||
.max_cpus = 0,
|
||||
};
|
||||
|
||||
static void register_machines(void)
|
||||
static void machine_none_machine_init(MachineClass *mc)
|
||||
{
|
||||
qemu_register_machine(&machine_none);
|
||||
mc->desc = "empty machine";
|
||||
mc->init = machine_none_init;
|
||||
mc->max_cpus = 0;
|
||||
}
|
||||
|
||||
machine_init(register_machines);
|
||||
|
||||
DEFINE_MACHINE("none", machine_none_machine_init)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue