Skip to contentSkip to conversation

piix_pci.c update_pam() incorrectness

Qemu-devel Sebastian Herbszt 1 participant 1 message Sep 19, 2009

lore
Share & tools
lore
#0 lore raw

update_pam() in hw/piix_pci.c contains the following:

switch(r) {
...
case 2:
case 0:

       /* XXX: should distinguish read/write cases */
       for(addr = start; addr < end; addr += 4096) {
           cpu_register_physical_memory(addr, 4096,
                                        d->isa_page_descs[(addr - 0xa0000) >> 12]);
       }
       break;

Is anyone working on fixing this?
This emulation incorrectness prevents "in-place" copies between rom and ram. Bochs behaviour is correct in this case, but this issue in qemu requires the use of temporary storage (see bios_shadow_init() in rombios32.c (bochs bios) or shadow.c in seabios).

- Sebastian