diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-08-08 10:47:15 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-08-08 10:47:15 +0000 |
commit | 10696b4fb2564aeeef38e7dd3a827c8af2914c5e (patch) | |
tree | 14a0eaf4ffe46ab1281fa3a4f68638d06f784b3d /hw/ppc_newworld.c | |
parent | 7589690c2af543edb3dc15fe6c64ade24890dc63 (diff) |
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 <blauwirbel@gmail.com>
Diffstat (limited to 'hw/ppc_newworld.c')
-rw-r--r-- | hw/ppc_newworld.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/ppc_newworld.c b/hw/ppc_newworld.c index cfeddabbdd..784e52726a 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); } |