cirrus_vga: also assign gr0/1 when writting shadow_gr0/1
PATCH 1/1 cirrus_vga: also assign gr0/1 when writting shadow_gr0/1
Signed-off-by Juan Quintela <[email protected]>
--- hw/cirrus_vga.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
hw/cirrus_vga.c +2 -0
@@ -1490,9 +1490,11 @@ cirrus_vga_write_gr(CirrusVGAState * s, unsigned reg_index, int reg_value)#endif switch (reg_index) {case 0x00 :// Standard VGA, BGCOLOR 0x000000ff + s->vga.gr[reg_index] = reg_value & gr_mask[reg_index]; s->cirrus_shadow_gr0 = reg_value;break ;case 0x01 :// Standard VGA, FGCOLOR 0x000000ff + s->vga.gr[reg_index] = reg_value & gr_mask[reg_index]; s->cirrus_shadow_gr1 = reg_value;break ;case 0x02 :// Standard VGA
Signature · 1 line
1.6.2.5