cirrus_vga: also assign gr0/1 when writting shadow_gr0/1
This is a regression/bug caused by previous vga_cleanup. This fixes Ubuntu installer reported by: Pierre Riteau Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
		
							parent
							
								
									4e3db91706
								
							
						
					
					
						commit
						f22f5b077c
					
				@ -1490,9 +1490,11 @@ cirrus_vga_write_gr(CirrusVGAState * s, unsigned reg_index, int reg_value)
 | 
				
			|||||||
#endif
 | 
					#endif
 | 
				
			||||||
    switch (reg_index) {
 | 
					    switch (reg_index) {
 | 
				
			||||||
    case 0x00:			// Standard VGA, BGCOLOR 0x000000ff
 | 
					    case 0x00:			// Standard VGA, BGCOLOR 0x000000ff
 | 
				
			||||||
 | 
						s->vga.gr[reg_index] = reg_value & gr_mask[reg_index];
 | 
				
			||||||
	s->cirrus_shadow_gr0 = reg_value;
 | 
						s->cirrus_shadow_gr0 = reg_value;
 | 
				
			||||||
	break;
 | 
						break;
 | 
				
			||||||
    case 0x01:			// Standard VGA, FGCOLOR 0x000000ff
 | 
					    case 0x01:			// Standard VGA, FGCOLOR 0x000000ff
 | 
				
			||||||
 | 
						s->vga.gr[reg_index] = reg_value & gr_mask[reg_index];
 | 
				
			||||||
	s->cirrus_shadow_gr1 = reg_value;
 | 
						s->cirrus_shadow_gr1 = reg_value;
 | 
				
			||||||
	break;
 | 
						break;
 | 
				
			||||||
    case 0x02:			// Standard VGA
 | 
					    case 0x02:			// Standard VGA
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user