summaryrefslogtreecommitdiffstats
path: root/hw/display/vga-pci.c
diff options
context:
space:
mode:
authorGonglei2014-12-05 04:33:37 +0100
committerGerd Hoffmann2014-12-16 15:14:42 +0100
commit46817e86fc1d97af0a7d9e4060730f7b00183083 (patch)
tree23136278f8f3927916ac0d971446e21651e554a2 /hw/display/vga-pci.c
parentmove hw cursor pos from cirrus to vga (diff)
downloadqemu-46817e86fc1d97af0a7d9e4060730f7b00183083.tar.gz
qemu-46817e86fc1d97af0a7d9e4060730f7b00183083.tar.xz
qemu-46817e86fc1d97af0a7d9e4060730f7b00183083.zip
vga: set catagory bit for secondary vga device
Signed-off-by: Gonglei <arei.gonglei@huawei.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display/vga-pci.c')
-rw-r--r--hw/display/vga-pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/display/vga-pci.c b/hw/display/vga-pci.c
index db922f1843..53739e4f79 100644
--- a/hw/display/vga-pci.c
+++ b/hw/display/vga-pci.c
@@ -321,6 +321,7 @@ static void secondary_class_init(ObjectClass *klass, void *data)
dc->vmsd = &vmstate_vga_pci;
dc->props = secondary_pci_properties;
dc->reset = pci_secondary_vga_reset;
+ set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
}
static const TypeInfo vga_info = {