aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-01-27 00:14:11 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-01-27 00:14:11 +0000
commitc92b2e845f0669c71081f0f637191d553f9f3499 (patch)
treea2c41f772fb2572a9c22e95234258fb2c0dd41f8
parent68e73e391fe7a26c46bb95df226fade0427669c0 (diff)
vga memory address fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@591 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--hw/vga.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/vga.c b/hw/vga.c
index c3aa93f424..ac97081613 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -494,6 +494,8 @@ static uint32_t vga_mem_readb(uint32_t addr)
default:
case 3:
addr -= 0xb8000;
+ if (addr >= 0x8000)
+ return 0xff;
break;
}
@@ -570,6 +572,8 @@ void vga_mem_writeb(uint32_t addr, uint32_t val)
default:
case 3:
addr -= 0xb8000;
+ if (addr >= 0x8000)
+ return;
break;
}