Skip to content

Commit

Permalink
macfb: don't clear interrupts when writing to DAFB_RESET
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mcayland authored and vivier committed Nov 5, 2023
1 parent d762bf9 commit a24fe90
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hw/display/macfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a24fe90

Please sign in to comment.