提交 c92b2e84 编写于 作者: B bellard

vga memory address fix


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@591 c046a42c-6fe2-441c-8c8c-71466251a162
上级 68e73e39
...@@ -494,6 +494,8 @@ static uint32_t vga_mem_readb(uint32_t addr) ...@@ -494,6 +494,8 @@ static uint32_t vga_mem_readb(uint32_t addr)
default: default:
case 3: case 3:
addr -= 0xb8000; addr -= 0xb8000;
if (addr >= 0x8000)
return 0xff;
break; break;
} }
...@@ -570,6 +572,8 @@ void vga_mem_writeb(uint32_t addr, uint32_t val) ...@@ -570,6 +572,8 @@ void vga_mem_writeb(uint32_t addr, uint32_t val)
default: default:
case 3: case 3:
addr -= 0xb8000; addr -= 0xb8000;
if (addr >= 0x8000)
return;
break; break;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册