Commit 9bb34eac8b89f624776ce6604c22d7c3097a1e24
1 parent
85571bc7
CRTC register write protection fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1126 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
3 changed files
with
1 additions
and
1 deletions
hw/cirrus_vga.c
... | ... | @@ -2689,7 +2689,7 @@ static void vga_ioport_write(void *opaque, uint32_t addr, uint32_t val) |
2689 | 2689 | printf("vga: write CR%x = 0x%02x\n", s->cr_index, val); |
2690 | 2690 | #endif |
2691 | 2691 | /* handle CR0-7 protection */ |
2692 | - if ((s->cr[11] & 0x80) && s->cr_index <= 7) { | |
2692 | + if ((s->cr[0x11] & 0x80) && s->cr_index <= 7) { | |
2693 | 2693 | /* can always write bit 4 of CR7 */ |
2694 | 2694 | if (s->cr_index == 7) |
2695 | 2695 | s->cr[7] = (s->cr[7] & ~0x10) | (val & 0x10); | ... | ... |
pc-bios/vgabios-cirrus.bin
No preview for this file type
pc-bios/vgabios.bin
No preview for this file type