[7025] Revert r6989
Revision: 7025
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7025 Author: aliguori Date: 2009-04-07 20:55:29 +0000 (Tue, 07 Apr 2009)
Log Message:
-----------
Revert r6989
There is a much more elegant fix that will follow up after this commit.
Signed-off-by Anthony Liguori <[email protected]>
Modified Paths:
--------------
trunk/hw/cirrus_vga.c
trunk/hw/vga.c
trunk/hw/vga_int.h
Modified: trunk/hw/cirrus_vga.c
===================================================================
hw/cirrus_vga.c +1 -10
@@ -1392,8 +1392,6 @@break ; } -vga_update_resolution ((VGAState *)s); -return CIRRUS_HOOK_HANDLED ; }
@@ -1421,7 +1419,6 @@#endif } s->cirrus_hidden_dac_lockindex =0 ; -vga_update_resolution ((VGAState *)s); }/***************************************
@@ -1708,8 +1705,6 @@break ; } -vga_update_resolution ((VGAState *)s); -return CIRRUS_HOOK_HANDLED ; }
@@ -2835,7 +2830,6 @@if (s->ar_flip_flop ==0 ) { val &=0x3f ; s->ar_index = val; -vga_update_resolution ((VGAState *)s); }else { index = s->ar_index &0x1f ;switch (index) {
@@ -2929,7 +2923,6 @@/* can always write bit 4 of CR7 */ if (s->cr_index ==7 ) s->cr[7 ] = (s->cr[7 ] & ~0x10 ) | (val &0x10 ); -vga_update_resolution ((VGAState *)s);return ; }switch (s->cr_index) {
@@ -2958,7 +2951,6 @@ s->update_retrace_info ((VGAState *) s);break ; } -vga_update_resolution ((VGAState *)s);break ;case 0x3ba :case 0x3da :
@@ -3165,8 +3157,7 @@cirrus_update_memory_access (s);/* force refresh */ -vga_update_resolution ((VGAState *)s); - s->want_full_update =1 ; + s->graphic_mode =-1 ;cirrus_update_bank_ptr (s,0 );cirrus_update_bank_ptr (s,1 );return 0 ;
Modified: trunk/hw/vga.c
===================================================================
hw/vga.c +119 -156
496 lines not on this page · raw message
Modified: trunk/hw/vga_int.h
===================================================================
hw/vga_int.h +0 -4
@@ -147,11 +147,8 @@DisplayState *ds; \uint32_t font_offsets[2 ]; \int graphic_mode; \ -int want_full_update; \uint8_t shift_control; \uint8_t double_scan; \ -uint8_t multi_run; \ -uint8_t multi_scan; \uint32_t line_offset; \uint32_t line_compare; \uint32_t start_addr; \
@@ -198,7 +195,6 @@ ram_addr_t vga_ram_offset, int vga_ram_size);void vga_init (VGAState *s);void vga_reset (void *s); -void vga_update_resolution (VGAState *s);void vga_dirty_log_start (VGAState *s);void vga_dirty_log_stop (VGAState *s);