提交 c74b88df 编写于 作者: B Blue Swirl

vga-isa: make optional

Ignore failure with vga-isa device creation, but print a warning
message.
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 7435b791
......@@ -183,9 +183,15 @@ extern enum vga_retrace_method vga_retrace_method;
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册