ati-vga: Implement foreground and background color register writes
These are straightforward 32-bit register write handlers. They're necessary for a future patch which will use them for color expansion from monochrome host data transfers. Signed-off-by: Chad Jablonski <chad@jablonski.xyz> Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu> Message-ID: <20260303024730.1489136-6-chad@jablonski.xyz> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Chad Jablonski committed
Mar 2, 2026 at 21:47 UTC
18e2382172e1cc8f046b120ede954e2e6c1b525f
1 file changed
+6
hw/display/ati.c
+6
@@ -924,6 +924,12 @@ static void ati_mm_write(void *opaque, hwaddr addr,
924
case DP_CNTL:
925
s->regs.dp_cntl = data;
926
break;
927
+ case DP_SRC_FRGD_CLR:
928
+ s->regs.dp_src_frgd_clr = data;
929
+ break;
930
+ case DP_SRC_BKGD_CLR:
931
+ s->regs.dp_src_bkgd_clr = data;
932
+ break;
933
case DP_DATATYPE:
934
s->regs.dp_datatype = data & 0xe0070f0f;
935
break;