diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-09-25 21:41:20 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-09-25 21:41:20 +0000 |
commit | 42fc925ec0df2cb8d924bec1c9fb782c12bd8364 (patch) | |
tree | 70e3f83854d6b326d74ff9e83984f93045b7f336 /hw | |
parent | 6f15b608f2a1466de0dccc3e6d9cdee354a1e178 (diff) | |
download | qemu-42fc925ec0df2cb8d924bec1c9fb782c12bd8364.zip qemu-42fc925ec0df2cb8d924bec1c9fb782c12bd8364.tar.gz qemu-42fc925ec0df2cb8d924bec1c9fb782c12bd8364.tar.bz2 |
VBE 4 bit bank selection fix (Volker Rupper)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2181 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r-- | hw/vga.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -447,7 +447,11 @@ static void vbe_ioport_write_data(void *opaque, uint32_t addr, uint32_t val) } break; 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->bank_offset = (val << 16); break; |