From aa2beaa1f57ca329cfceece08cc19d52368e6a8f Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 17 Apr 2013 10:21:27 +0200 Subject: console: add device link to QemuConsoles So it is possible to figure which qemu console displays which device. Signed-off-by: Gerd Hoffmann --- hw/display/cirrus_vga.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/display/cirrus_vga.c') diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c index db232af..6e47956 100644 --- a/hw/display/cirrus_vga.c +++ b/hw/display/cirrus_vga.c @@ -2910,7 +2910,7 @@ static int vga_initfn(ISADevice *dev) vga_common_init(s); cirrus_init_common(&d->cirrus_vga, CIRRUS_ID_CLGD5430, 0, isa_address_space(dev), isa_address_space_io(dev)); - s->con = graphic_console_init(s->hw_ops, s); + s->con = graphic_console_init(DEVICE(dev), s->hw_ops, s); rom_add_vga(VGABIOS_CIRRUS_FILENAME); /* XXX ISA-LFB support */ /* FIXME not qdev yet */ @@ -2957,7 +2957,7 @@ static int pci_cirrus_vga_initfn(PCIDevice *dev) vga_common_init(&s->vga); cirrus_init_common(s, device_id, 1, pci_address_space(dev), pci_address_space_io(dev)); - s->vga.con = graphic_console_init(s->vga.hw_ops, &s->vga); + s->vga.con = graphic_console_init(DEVICE(dev), s->vga.hw_ops, &s->vga); /* setup PCI */ -- cgit v1.1