sh_pci: fix memory and I/O access
authorAurelien Jarno <aurelien@aurel32.net>
Sun, 11 Apr 2010 21:59:39 +0000 (23:59 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 13 Apr 2010 18:17:24 +0000 (20:17 +0200)
commit46f0cc3a2b65124c707b41f9d812e50812b34725
tree126da50490a47854c125ba1fac2e431c2dbddd86
parent8d943c22a72fece47a673b032ae6823eb54178c4
sh_pci: fix memory and I/O access

Since commit 8da3ff180974732fc4272cb4433fef85c1822961 ("MMIO callback
interface changes"), the addresses passed to the I/O functions are an
offset to the start of the area. As a consequence, there is no need to
correct the address using the value of IOBR. This make possible the use
of the default MMIO functions. Moreover the addresses are now remaped
when the value if IOBR change.

The memory area corresponds to the devices behing the PCI bus, it should
not be mapped by the PCI controller. Remove the corresponding code.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
default-configs/sh4-softmmu.mak
default-configs/sh4eb-softmmu.mak
hw/sh_pci.c