Commit ca896ef389fc44c7a673d1bd2b94823e28da37a1

Authored by aurel32
1 parent a8c33204

cirrusfb: proper "Attribute Controller Toggle Readback" register behaviour

(Marcelo Tosatti)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4386 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 3 additions and 1 deletions
hw/cirrus_vga.c
@@ -1626,13 +1626,15 @@ cirrus_hook_read_cr(CirrusVGAState * s, unsigned reg_index, int *reg_value) @@ -1626,13 +1626,15 @@ cirrus_hook_read_cr(CirrusVGAState * s, unsigned reg_index, int *reg_value)
1626 case 0x17: // Standard VGA 1626 case 0x17: // Standard VGA
1627 case 0x18: // Standard VGA 1627 case 0x18: // Standard VGA
1628 return CIRRUS_HOOK_NOT_HANDLED; 1628 return CIRRUS_HOOK_NOT_HANDLED;
  1629 + case 0x24: // Attribute Controller Toggle Readback (R)
  1630 + *reg_value = (s->ar_flip_flop << 7);
  1631 + break;
1629 case 0x19: // Interlace End 1632 case 0x19: // Interlace End
1630 case 0x1a: // Miscellaneous Control 1633 case 0x1a: // Miscellaneous Control
1631 case 0x1b: // Extended Display Control 1634 case 0x1b: // Extended Display Control
1632 case 0x1c: // Sync Adjust and Genlock 1635 case 0x1c: // Sync Adjust and Genlock
1633 case 0x1d: // Overlay Extended Control 1636 case 0x1d: // Overlay Extended Control
1634 case 0x22: // Graphics Data Latches Readback (R) 1637 case 0x22: // Graphics Data Latches Readback (R)
1635 - case 0x24: // Attribute Controller Toggle Readback (R)  
1636 case 0x25: // Part Status 1638 case 0x25: // Part Status
1637 case 0x27: // Part ID (R) 1639 case 0x27: // Part ID (R)
1638 *reg_value = s->cr[reg_index]; 1640 *reg_value = s->cr[reg_index];