From: SeokYeon Hwang Date: Tue, 25 Aug 2015 04:25:41 +0000 (+0900) Subject: upstream: PC board is updated X-Git-Tag: TizenStudio_2.0_p2.3.2~265 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1702967f9991dedb7f4255fcc28acda8d9f6b0d2;p=sdk%2Femulator%2Fqemu.git upstream: PC board is updated Change-Id: I46932542a3f57c80db52e3a89adc1e52093de6a4 Signed-off-by: SeokYeon Hwang --- diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index bd84766..61c4a24 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -304,6 +304,15 @@ static void pc_init1(MachineState *machine) } } +#ifdef CONFIG_MARU +void maru_pc_init(MachineState *machine); + +void maru_pc_init(MachineState *machine) +{ + pc_init1(machine); +} +#endif + static void pc_compat_2_3(MachineState *machine) { PCMachineState *pcms = PC_MACHINE(machine); @@ -340,15 +349,6 @@ static void pc_compat_2_2(MachineState *machine) machine->suppress_vmdesc = true; } -#ifdef CONFIG_MARU -void maru_pc_init(MachineState *machine); - -void maru_pc_init(MachineState *machine) -{ - pc_init1(machine); -} -#endif - static void pc_compat_2_1(MachineState *machine) { PCMachineState *pcms = PC_MACHINE(machine); diff --git a/tizen/src/hw/maru_board.c b/tizen/src/hw/maru_board.c index a45d125..c00398b 100644 --- a/tizen/src/hw/maru_board.c +++ b/tizen/src/hw/maru_board.c @@ -4,7 +4,6 @@ * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved * * Contact: - * YeongKyoon Lee * SeokYeon Hwang * SangJin Kim * KiTae Kim @@ -50,32 +49,29 @@ static void maru_device_init(void) // do nothing for now... } -extern void maru_pc_init_pci(MachineState *args); -static void maru_x86_board_init(MachineState *args) +extern void maru_pc_init(MachineState *args); +static void maru_x86_board_init(MachineState *machine) { - maru_pc_init_pci(args); + maru_pc_init(machine); maru_device_init(); } -static QEMUMachine maru_x86_machine = { - PC_DEFAULT_MACHINE_OPTIONS, - .name = "maru-x86-machine", - .alias = "maru-x86-machine", - .desc = "Maru Board (x86)", - .init = maru_x86_board_init, - .hot_add_cpu = pc_hot_add_cpu, - .no_parallel = 1, - .no_floppy = 1, - .no_cdrom = 1, - .no_sdcard = 1, - .default_machine_opts = "firmware=bios-256k.bin", - .default_boot_order = "c", -}; - -static void maru_machine_init(void) +static void maru_x86_machine_options(MachineClass *m) { - qemu_register_pc_machine(&maru_x86_machine); + pc_default_machine_options(m); + m->family = "pc_piix"; + m->desc = "Maru Board (x86)"; + m->hot_add_cpu = pc_hot_add_cpu; + m->default_machine_opts = "firmware=bios-256k.bin"; + m->default_display = "std"; + m->alias = "maru-x86-machine"; + m->no_parallel = 1; + m->no_floppy = 1; + m->no_cdrom = 1; + m->no_sdcard = 1; + m->default_boot_order = "c"; } -machine_init(maru_machine_init); +DEFINE_PC_MACHINE(maru, "maru-x86-machine", maru_x86_board_init, + maru_x86_machine_options);