Skip to contentSkip to conversation

[4386] cirrusfb: proper "Attribute Controller Toggle Readback" register behaviour

Qemu-devel Aurelien Jarno 1 participant 1 message May 8, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 4386

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4386
Author:   aurel32
Date:     2008-05-08 12:21:27 +0000 (Thu, 08 May 2008)

Log Message:
-----------
cirrusfb: proper "Attribute Controller Toggle Readback" register behaviour

(Marcelo Tosatti)

Modified Paths:
--------------
trunk/hw/cirrus_vga.c

Modified: trunk/hw/cirrus_vga.c
===================================================================

hw/cirrus_vga.c +3 -1
@@ -1626,13 +1626,15 @@
     case 0x17:			// Standard VGA
     case 0x18:			// Standard VGA
 	return CIRRUS_HOOK_NOT_HANDLED;
+    case 0x24:			// Attribute Controller Toggle Readback (R)
+        *reg_value = (s->ar_flip_flop << 7);
+        break;
     case 0x19:			// Interlace End
     case 0x1a:			// Miscellaneous Control
     case 0x1b:			// Extended Display Control
     case 0x1c:			// Sync Adjust and Genlock
     case 0x1d:			// Overlay Extended Control
     case 0x22:			// Graphics Data Latches Readback (R)
-    case 0x24:			// Attribute Controller Toggle Readback (R)
     case 0x25:			// Part Status
     case 0x27:			// Part ID (R)
 	*reg_value = s->cr[reg_index];