pci: remove explicit check to 64K ioport size
commit9f1a029abf15751e32a4b1df99ed2b8315f9072c
authorHervé Poussineau <hpoussin@reactos.org>
Fri, 13 Sep 2013 11:58:44 +0000 (13 13:58 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 15 Sep 2013 08:49:51 +0000 (15 11:49 +0300)
tree18b39e10d04fc9851e217acac3f960a0603b7f42
parentc046e8c4a26c902ca1b4f5bdf668a2da6bc75f54
pci: remove explicit check to 64K ioport size

This check is useless, as bigger addresses will be ignored when
added to 'io' MemoryRegion, which has a size of 64K.

However, some architectures don't use the 'io' MemoryRegion, like
the alpha and versatile platforms. They create a PCI I/O region
bigger than 64K, so let them handle PCI I/O BARs in the higher range.

MST: reinstated work-around for BAR sizing.

Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pci.c