aboutsummaryrefslogtreecommitdiff
path: root/hw/pc.c
diff options
context:
space:
mode:
authorGlauber Costa <glommer@redhat.com>2009-04-23 15:20:55 -0400
committerAnthony Liguori <aliguori@us.ibm.com>2009-05-01 09:44:11 -0500
commit49669fc551e0ccd2310a9584a9b7343a0bcae477 (patch)
tree7169cb680bc8de9e5158d34f6027c9959b2b5a98 /hw/pc.c
parent8b91408b620b5b244999d97540c3ec304abe7810 (diff)
suport device driver initialization model
According to PnP specification, Appendix B, Option ROMs that support DDIM (device driver initialization model) should have their memory space writeable. KVM deviates from us here, by removing the IO_MEM_ROM flag, to allow for PCI option ROMs (they require DDIM). However, there's absolutely no reason we can't do the same. Signed-off-by: Glauber Costa <glommer@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pc.c')
-rw-r--r--hw/pc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/pc.c b/hw/pc.c
index 340b313cd4..61f6e7b211 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -920,8 +920,7 @@ static void pc_init1(ram_addr_t ram_size, int vga_ram_size,
option_rom_offset = qemu_ram_alloc(0x20000);
oprom_area_size = 0;
- cpu_register_physical_memory(0xc0000, 0x20000,
- option_rom_offset | IO_MEM_ROM);
+ cpu_register_physical_memory(0xc0000, 0x20000, option_rom_offset);
if (using_vga) {
/* VGA BIOS load */