aboutsummaryrefslogtreecommitdiff
path: root/hw/pc.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-07 20:21:16 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-07 20:21:16 +0000
commitbb058620c3b6bbddb99c9afff956dded7139897b (patch)
tree8072a4eb7345b55a65a078c2a7ecafa0eb55dd8f /hw/pc.c
parent9eb153f18f69306d8b729c34e9f267bcacfe07c5 (diff)
downloadqemu-bb058620c3b6bbddb99c9afff956dded7139897b.zip
qemu-bb058620c3b6bbddb99c9afff956dded7139897b.tar.gz
qemu-bb058620c3b6bbddb99c9afff956dded7139897b.tar.bz2
refuse write accesses in BIOS area (aka EMM386.EXE fix) (Mike Nordell)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@712 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/pc.c')
-rw-r--r--hw/pc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pc.c b/hw/pc.c
index e62d56d..496f365 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -302,6 +302,7 @@ void pc_init(int ram_size, int vga_ram_size, int boot_device,
/* setup basic memory access */
cpu_register_physical_memory(0xc0000, 0x10000, 0xc0000 | IO_MEM_ROM);
+ cpu_register_physical_memory(0xd0000, 0x20000, IO_MEM_UNASSIGNED);
cpu_register_physical_memory(0xf0000, 0x10000, 0xf0000 | IO_MEM_ROM);
bochs_bios_init();