]> git.proxmox.com Git - qemu.git/commitdiff
vga memory address fix
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 27 Jan 2004 00:14:11 +0000 (00:14 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 27 Jan 2004 00:14:11 +0000 (00:14 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@591 c046a42c-6fe2-441c-8c8c-71466251a162

hw/vga.c

index c3aa93f424686a670da2870131a6c92f066bd8cb..ac9708161316b51c063262b05fc51a38972311e2 100644 (file)
--- 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;
     }