Re: [Qemu-devel] [PATCH] hw/pc.c: Fix converting of ioport_register* to MemoryRegion

2013-01-09 Thread Adam Lackorzynski
On Wed Jan 09, 2013 at 18:10:22 +, Julien Grall wrote: > The commit 258711 introduced MemoryRegion to replace ioport_region* > for ioport 80h and F0h. > A MemoryRegion needs to have both read and write callback otherwise a segfault > will occur when an access is made. > > The previous behaviou

[Qemu-devel] [PATCH] hw/pc.c: Fix converting of ioport_register* to MemoryRegion

2013-01-09 Thread Julien Grall
The commit 258711 introduced MemoryRegion to replace ioport_region* for ioport 80h and F0h. A MemoryRegion needs to have both read and write callback otherwise a segfault will occur when an access is made. The previous behaviour of this both ioport is to return 0x. So keep this beh