mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03: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
|
@ -132,17 +132,12 @@ static void openrisc_sim_init(MachineState *machine)
|
|||
cpu_openrisc_load_kernel(ram_size, kernel_filename, cpu);
|
||||
}
|
||||
|
||||
static QEMUMachine openrisc_sim_machine = {
|
||||
.name = "or32-sim",
|
||||
.desc = "or32 simulation",
|
||||
.init = openrisc_sim_init,
|
||||
.max_cpus = 1,
|
||||
.is_default = 1,
|
||||
};
|
||||
|
||||
static void openrisc_sim_machine_init(void)
|
||||
static void openrisc_sim_machine_init(MachineClass *mc)
|
||||
{
|
||||
qemu_register_machine(&openrisc_sim_machine);
|
||||
mc->desc = "or32 simulation";
|
||||
mc->init = openrisc_sim_init;
|
||||
mc->max_cpus = 1;
|
||||
mc->is_default = 1;
|
||||
}
|
||||
|
||||
machine_init(openrisc_sim_machine_init);
|
||||
DEFINE_MACHINE("or32-sim", openrisc_sim_machine_init)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue