summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2012-09-08 16:01:20 +0200
committerAurelien Jarno <aurelien@aurel32.net>2012-10-06 18:48:37 +0200
commit36b7f27d2195a09dbfb7f08b2323d807c1ad90b0 (patch)
tree882d27001e3b635ad5e4e2b4606258f4d212ac38 /vl.c
parent6405c86412719a0ccd1a09b81baf0b78e8a4ae6b (diff)
downloadqemu-36b7f27d2195a09dbfb7f08b2323d807c1ad90b0.tar.gz
qemu-36b7f27d2195a09dbfb7f08b2323d807c1ad90b0.tar.bz2
qemu-36b7f27d2195a09dbfb7f08b2323d807c1ad90b0.zip
vl.c: convert *vga_enabled functions to QOM
And get rid of qdev_exists(). Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/vl.c b/vl.c
index 8d305ca59b..bf9cdf8eb2 100644
--- a/vl.c
+++ b/vl.c
@@ -1700,17 +1700,18 @@ static const QEMUOption qemu_options[] = {
static bool vga_available(void)
{
- return qdev_exists("VGA") || qdev_exists("isa-vga");
+ return object_class_by_name("VGA") || object_class_by_name("isa-vga");
}
static bool cirrus_vga_available(void)
{
- return qdev_exists("cirrus-vga") || qdev_exists("isa-cirrus-vga");
+ return object_class_by_name("cirrus-vga")
+ || object_class_by_name("isa-cirrus-vga");
}
static bool vmware_vga_available(void)
{
- return qdev_exists("vmware-svga");
+ return object_class_by_name("vmware-svga");
}
static void select_vgahw (const char *p)