mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
vga: improve VGA logic
Improve VGA selection logic, push check for device availabilty to vl.c. Create the devices at board level unconditionally. Remove now unused pci_try_create*() functions. Make PCI VGA devices optional. Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
0ae4699694
commit
a369da5f31
12 changed files with 55 additions and 64 deletions
|
@ -121,10 +121,8 @@ void alpha_pci_vga_setup(PCIBus *pci_bus)
|
|||
pci_cirrus_vga_init(pci_bus);
|
||||
return;
|
||||
case VGA_VMWARE:
|
||||
if (pci_vmsvga_init(pci_bus)) {
|
||||
return;
|
||||
}
|
||||
break;
|
||||
pci_vmsvga_init(pci_bus);
|
||||
return;
|
||||
}
|
||||
/* If VGA is enabled at all, and one of the above didn't work, then
|
||||
fallback to Standard VGA. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue