VBE 4 bit bank selection fix (Volker Rupper)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2181 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
6f15b608f2
commit
42fc925ec0
6
hw/vga.c
6
hw/vga.c
@ -447,7 +447,11 @@ static void vbe_ioport_write_data(void *opaque, uint32_t addr, uint32_t val)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case VBE_DISPI_INDEX_BANK:
|
case VBE_DISPI_INDEX_BANK:
|
||||||
val &= s->vbe_bank_mask;
|
if (s->vbe_regs[VBE_DISPI_INDEX_BPP] == 4) {
|
||||||
|
val &= (s->vbe_bank_mask >> 2);
|
||||||
|
} else {
|
||||||
|
val &= s->vbe_bank_mask;
|
||||||
|
}
|
||||||
s->vbe_regs[s->vbe_index] = val;
|
s->vbe_regs[s->vbe_index] = val;
|
||||||
s->bank_offset = (val << 16);
|
s->bank_offset = (val << 16);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user