On Mon, Mar 19, 2012 at 17:16, Avi Kivity <a...@redhat.com> wrote: > On 03/19/2012 06:52 AM, TeLeMan wrote: >> > static bool memory_region_wrong_endianness(MemoryRegion *mr) >> > @@ -942,7 +940,7 @@ void memory_region_init_io(MemoryRegion *mr, >> > mr->opaque = opaque; >> > mr->terminates = true; >> > mr->destructor = memory_region_destructor_iomem; >> > - mr->ram_addr = cpu_register_io_memory(mr); >> > + mr->ram_addr = ~(ram_addr_t)0; >> Why not 0 but -1? >> > > To catch bugs. In fact it triggered bugs (not the ones I wanted though). There may be BSOD on the guest windows xp after applying this patch. > > -- > error compiling committee.c: too many arguments to function >
- Re: [Qemu-devel] [PATCH 3/5] exec: fix code tlb entry mi... jcmvbkbc
- Re: [Qemu-devel] [PATCH 3/5] exec: fix code tlb entr... Avi Kivity
- Re: [Qemu-devel] [PATCH 3/5] exec: fix code tlb ... Max Filippov
- Re: [Qemu-devel] [PATCH 3/5] exec: fix code ... Avi Kivity
- Re: [Qemu-devel] [PATCH 3/5] exec: fix ... Max Filippov
- [Qemu-devel] [PATCH 2/5] memory: store section indices in iot... Avi Kivity
- [Qemu-devel] [PATCH 1/5] memory: make phys_page_find() return... Avi Kivity
- [Qemu-devel] [PATCH 5/5] memory: get rid of cpu_register_io_m... Avi Kivity
- Re: [Qemu-devel] [PATCH 5/5] memory: get rid of cpu_regi... TeLeMan
- Re: [Qemu-devel] [PATCH 5/5] memory: get rid of cpu_... Avi Kivity
- Re: [Qemu-devel] [PATCH 5/5] memory: get rid of ... TeLeMan
- [Qemu-devel] [PATCH 4/5] memory: dispatch directly via Memory... Avi Kivity