mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53: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
|
@ -309,20 +309,28 @@ static void vab_init(ram_addr_t ram_size,
|
|||
initrd_filename, cpu_model, 0x25e);
|
||||
}
|
||||
|
||||
QEMUMachine versatilepb_machine = {
|
||||
static QEMUMachine versatilepb_machine = {
|
||||
.name = "versatilepb",
|
||||
.desc = "ARM Versatile/PB (ARM926EJ-S)",
|
||||
.init = vpb_init,
|
||||
.use_scsi = 1,
|
||||
};
|
||||
|
||||
QEMUMachine versatileab_machine = {
|
||||
static QEMUMachine versatileab_machine = {
|
||||
.name = "versatileab",
|
||||
.desc = "ARM Versatile/AB (ARM926EJ-S)",
|
||||
.init = vab_init,
|
||||
.use_scsi = 1,
|
||||
};
|
||||
|
||||
static void versatile_machine_init(void)
|
||||
{
|
||||
qemu_register_machine(&versatilepb_machine);
|
||||
qemu_register_machine(&versatileab_machine);
|
||||
}
|
||||
|
||||
machine_init(versatile_machine_init);
|
||||
|
||||
static void versatilepb_register_devices(void)
|
||||
{
|
||||
sysbus_register_dev("versatilepb_sic", sizeof(vpb_sic_state),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue