This does nothing for most drivers but works around issue and fixes output with the Solaris R128 driver that only sets display parameters after enabling CRT controller which we would miss otherwise.
Signed-off-by: BALATON Zoltan <[email protected]> --- hw/display/ati.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/display/ati.c b/hw/display/ati.c index 05cf507bd4..1a6a5ad4fd 100644 --- a/hw/display/ati.c +++ b/hw/display/ati.c @@ -617,6 +617,7 @@ static void ati_mm_write(void *opaque, hwaddr addr, ati_reg_write_offs(&s->regs.crtc_gen_cntl, addr - CRTC_GEN_CNTL, data, size); if ((val & CRTC2_CUR_EN) != (s->regs.crtc_gen_cntl & CRTC2_CUR_EN)) { + ati_vga_switch_mode(s); if (s->cursor_guest_mode) { s->vga.force_shadow = !!(s->regs.crtc_gen_cntl & CRTC2_CUR_EN); } else { -- 2.41.3
