From: Blue Swirl Date: Sat, 8 Aug 2009 10:47:15 +0000 (+0000) Subject: ppc_newworld: configure screen size from QEMU command line options X-Git-Tag: TizenStudio_2.0_p2.3~8101 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bef9e8d375899afb4724c47d4729913ceb1eed10;p=sdk%2Femulator%2Fqemu.git ppc_newworld: configure screen size from QEMU command line options Use the FW_CFG interface to send user requested screen size and depth to OpenBIOS like 7f1aec5f93382eef75920899f4065613aeaf02a2 for ppc_oldworld. Signed-off-by: Blue Swirl --- diff --git a/hw/ppc_newworld.c b/hw/ppc_newworld.c index cfeddab..784e527 100644 --- a/hw/ppc_newworld.c +++ b/hw/ppc_newworld.c @@ -360,6 +360,11 @@ static void ppc_core99_init (ram_addr_t ram_size, fw_cfg_add_i32(fw_cfg, FW_CFG_INITRD_ADDR, initrd_base); fw_cfg_add_i32(fw_cfg, FW_CFG_INITRD_SIZE, initrd_size); fw_cfg_add_i16(fw_cfg, FW_CFG_BOOT_DEVICE, ppc_boot_device); + + fw_cfg_add_i16(fw_cfg, FW_CFG_PPC_WIDTH, graphic_width); + fw_cfg_add_i16(fw_cfg, FW_CFG_PPC_HEIGHT, graphic_height); + fw_cfg_add_i16(fw_cfg, FW_CFG_PPC_DEPTH, graphic_depth); + qemu_register_boot_set(fw_cfg_boot_set, fw_cfg); }