macfb: don't clear interrupts when writing to DAFB_RESET
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Thu, 26 Oct 2023 08:56:47 +0000 (09:56 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Sun, 5 Nov 2023 14:48:36 +0000 (15:48 +0100)
Traces from A/UX suggest that this register is only used to reset the framebuffer
LUT (colour lookup table) and not any other device state.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-ID: <20231026085650.917663-2-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/display/macfb.c

index 2f8e01656640e55dd75577bdf01a2f2bc4cc0bb4..28db2e9f246aa18700089e33792af39cbdc87492 100644 (file)
@@ -585,8 +585,6 @@ static void macfb_ctrl_write(void *opaque,
         break;
     case DAFB_RESET:
         s->palette_current = 0;
-        s->regs[DAFB_INTR_STAT >> 2] &= ~DAFB_INTR_VBL;
-        macfb_update_irq(s);
         break;
     case DAFB_LUT:
         s->color_palette[s->palette_current] = val;