ati-vga: Implement dummy VBlank IRQ
commitb7105d280cab053465de79ff1766d2f7e1ea7554
authorBALATON Zoltan <balaton@eik.bme.hu>
Thu, 15 Aug 2019 22:18:09 +0000 (16 00:18 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 22 Aug 2019 08:04:20 +0000 (22 10:04 +0200)
tree43d9a7f15db59a02aabc2f28f0b50107fc822c5d
parent8bb9a2b26d83a0989367e3688badb2914283827d
ati-vga: Implement dummy VBlank IRQ

The MacOS driver exits if the card does not have an interrupt. If we
set PCI_INTERRUPT_PIN to 1 then it enables VBlank interrupts and it
boots but the mouse pointer cannot be moved. This patch implements a
dummy VBlank interrupt triggered by a 60 Hz timer. With this the
pointer now moves but MacOS still hangs somewhere before completely
finishing boot.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-Id: <89364275f2fb5f85ee73c0e76528aa91691a499a.1565907489.git.balaton@eik.bme.hu>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/ati.c
hw/display/ati_dbg.c
hw/display/ati_int.h
hw/display/ati_regs.h