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); |