mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
vga-isa: make optional
Ignore failure with vga-isa device creation, but print a warning message. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
7435b791ca
commit
c74b88dffc
1 changed files with 8 additions and 2 deletions
10
hw/pc.h
10
hw/pc.h
|
@ -183,9 +183,15 @@ extern enum vga_retrace_method vga_retrace_method;
|
||||||
|
|
||||||
static inline int isa_vga_init(void)
|
static inline int isa_vga_init(void)
|
||||||
{
|
{
|
||||||
isa_create_simple("isa-vga");
|
ISADevice *dev;
|
||||||
|
|
||||||
return 0;
|
dev = isa_try_create("isa-vga");
|
||||||
|
if (!dev) {
|
||||||
|
fprintf(stderr, "Warning: isa-vga not available\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
qdev_init_nofail(&dev->qdev);
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int pci_vga_init(PCIBus *bus);
|
int pci_vga_init(PCIBus *bus);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue