summaryrefslogtreecommitdiff
path: root/hw/display/tcx.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-04-17 10:21:27 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2013-04-25 14:45:46 -0500
commitaa2beaa1f57ca329cfceece08cc19d52368e6a8f (patch)
tree6d8e5b3e63351cfd751b994c5b973f84be437e4a /hw/display/tcx.c
parent95be0669a353d7f4093876a8fe94474e39c7af9d (diff)
downloadqemu-aa2beaa1f57ca329cfceece08cc19d52368e6a8f.tar.gz
console: add device link to QemuConsoles
So it is possible to figure which qemu console displays which device. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display/tcx.c')
-rw-r--r--hw/display/tcx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/display/tcx.c b/hw/display/tcx.c
index d7465c63f1..fc27f45e4e 100644
--- a/hw/display/tcx.c
+++ b/hw/display/tcx.c
@@ -571,14 +571,14 @@ static int tcx_init1(SysBusDevice *dev)
&s->vram_mem, vram_offset, size);
sysbus_init_mmio(dev, &s->vram_cplane);
- s->con = graphic_console_init(&tcx24_ops, s);
+ s->con = graphic_console_init(DEVICE(dev), &tcx24_ops, s);
} else {
/* THC 8 bit (dummy) */
memory_region_init_io(&s->thc8, &dummy_ops, s, "tcx.thc8",
TCX_THC_NREGS_8);
sysbus_init_mmio(dev, &s->thc8);
- s->con = graphic_console_init(&tcx_ops, s);
+ s->con = graphic_console_init(DEVICE(dev), &tcx_ops, s);
}
qemu_console_resize(s->con, s->width, s->height);