/[qemu]/qemu/hw/cirrus_vga.c
ViewVC logotype

Diff of /qemu/hw/cirrus_vga.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by bellard, Sun Oct 10 15:14:20 2004 UTC revision 1.16 by bellard, Sun Nov 7 22:54:14 2004 UTC
# Line 2689  static void vga_ioport_write(void *opaqu Line 2689  static void vga_ioport_write(void *opaqu
2689          printf("vga: write CR%x = 0x%02x\n", s->cr_index, val);          printf("vga: write CR%x = 0x%02x\n", s->cr_index, val);
2690  #endif  #endif
2691          /* handle CR0-7 protection */          /* handle CR0-7 protection */
2692          if ((s->cr[11] & 0x80) && s->cr_index <= 7) {          if ((s->cr[0x11] & 0x80) && s->cr_index <= 7) {
2693              /* can always write bit 4 of CR7 */              /* can always write bit 4 of CR7 */
2694              if (s->cr_index == 7)              if (s->cr_index == 7)
2695                  s->cr[7] = (s->cr[7] & ~0x10) | (val & 0x10);                  s->cr[7] = (s->cr[7] & ~0x10) | (val & 0x10);

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26