qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] piix_pci.c update_pam() incorrectness
@ 2009-09-19 18:57 Sebastian Herbszt
  0 siblings, 0 replies; only message in thread
From: Sebastian Herbszt @ 2009-09-19 18:57 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-19 18:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-19 18:57 [Qemu-devel] piix_pci.c update_pam() incorrectness Sebastian Herbszt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).