mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
Convert machine registration to use module init functions
This cleans up quite a lot of #ifdefs, extern variables, and other ugliness. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
f92f8afebe
commit
f80f9ec9a6
45 changed files with 321 additions and 263 deletions
|
@ -63,8 +63,15 @@ static void dummy_m68k_init(ram_addr_t ram_size,
|
|||
env->pc = entry;
|
||||
}
|
||||
|
||||
QEMUMachine dummy_m68k_machine = {
|
||||
static QEMUMachine dummy_m68k_machine = {
|
||||
.name = "dummy",
|
||||
.desc = "Dummy board",
|
||||
.init = dummy_m68k_init,
|
||||
};
|
||||
|
||||
static void dummy_m68k_machine_init(void)
|
||||
{
|
||||
qemu_register_machine(&dummy_m68k_machine);
|
||||
}
|
||||
|
||||
machine_init(dummy_m68k_machine_init);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue