diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2009-05-20 18:38:09 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-05-21 08:47:55 -0500 |
commit | f80f9ec9a63bb2200d614feb658a77b78f9a4bba (patch) | |
tree | 59e22e0a617e392a65431b82256fb443aa6ad850 /hw/mips_jazz.c | |
parent | f92f8afebe038a4eae9ad90a140c9529f94919a6 (diff) |
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>
Diffstat (limited to 'hw/mips_jazz.c')
-rw-r--r-- | hw/mips_jazz.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/hw/mips_jazz.c b/hw/mips_jazz.c index 49c0b467fc..bf1621e8a7 100644 --- a/hw/mips_jazz.c +++ b/hw/mips_jazz.c @@ -286,16 +286,24 @@ void mips_pica61_init (ram_addr_t ram_size, mips_jazz_init(ram_size, cpu_model, JAZZ_PICA61); } -QEMUMachine mips_magnum_machine = { +static QEMUMachine mips_magnum_machine = { .name = "magnum", .desc = "MIPS Magnum", .init = mips_magnum_init, .use_scsi = 1, }; -QEMUMachine mips_pica61_machine = { +static QEMUMachine mips_pica61_machine = { .name = "pica61", .desc = "Acer Pica 61", .init = mips_pica61_init, .use_scsi = 1, }; + +static void mips_jazz_machine_init(void) +{ + qemu_register_machine(&mips_magnum_machine); + qemu_register_machine(&mips_pica61_machine); +} + +machine_init(mips_jazz_machine_init); |