]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
ppc: fix default VGA display for Mac machines
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tue, 3 Jul 2018 19:10:43 +0000 (20:10 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sat, 7 Jul 2018 02:12:27 +0000 (12:12 +1000)
Commit 29f9cef39e "ppc: Include vga cirrus card into the compiling process"
changed the default display adapter for all PPC machines to cirrus. Unfortunately
it missed setting the default display type to stdvga for both Mac machines
causing the display to fail to initialise under OpenBIOS.

Update the MachineClass for both Old World and New World Macs so that the
default std(vga) display adapter is the default if no options are specified
which fixes the display for the Mac machines.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/mac_newworld.c
hw/ppc/mac_oldworld.c

index d11980166f242ea66dd204f87e5a135b0faef4d4..2ca294664bec3b7ff400f23a92d78e521be4d349 100644 (file)
@@ -525,6 +525,7 @@ static void core99_machine_class_init(ObjectClass *oc, void *data)
     mc->block_default_type = IF_IDE;
     mc->max_cpus = MAX_CPUS;
     mc->default_boot_order = "cd";
+    mc->default_display = "std";
     mc->kvm_type = core99_kvm_type;
 #ifdef TARGET_PPC64
     mc->default_cpu_type = POWERPC_CPU_TYPE_NAME("970fx_v3.1");
index 06ed6f660ef98b85f3c56ca73d75f8dbac8b9f66..064d7eb30a71556e69c8e44f2a23362d14e57da7 100644 (file)
@@ -383,6 +383,7 @@ static void heathrow_class_init(ObjectClass *oc, void *data)
     mc->default_boot_order = "cd";
     mc->kvm_type = heathrow_kvm_type;
     mc->default_cpu_type = POWERPC_CPU_TYPE_NAME("750_v3.1");
+    mc->default_display = "std";
 }
 
 static const TypeInfo ppc_heathrow_machine_info = {