qemu-e2k/hw/pci-host
Peter Maydell 4f91740698 hw/pci-host/xilinx-pcie: don't make "io" region be RAM
Currently we use memory_region_init_rom_nomigrate() to create
the "io" memory region to pass to pci_register_root_bus().
This is a dummy region, because this PCI controller doesn't
support accesses to PCI IO space.

There is no reason for the dummy region to be a RAM region;
it is only used as a place where PCI BARs can be mapped,
and if you could get a PCI card to do a bus master access
to the IO space it should not get acts-like-RAM behaviour.
Use a simple container memory region instead. (We do have
one PCI card model which can do bus master accesses to IO
space -- the LSI53C895A SCSI adaptor.)

This avoids the oddity of having a memory region which is
RAM but where the RAM is not migrated.

Note that the size of the region we use here has no
effect on behaviour.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Aleksandar Markovic <aleksandar.markovic@mips.com>
2018-06-27 20:12:34 +02:00
..
Makefile.objs pci: Add support for Designware IP block 2018-03-09 17:09:43 +00:00
bonito.c hw/pci*: Replace fprintf(stderr, "*\n" with error_report() 2018-02-06 18:29:26 +01:00
designware.c pci: Add support for Designware IP block 2018-03-09 17:09:43 +00:00
gpex.c pci: Rename root bus initialization functions for clarity 2017-12-05 19:13:45 +02:00
grackle.c grackle: move PCI IO (ISA) memory region into the grackle device 2018-04-27 18:05:22 +10:00
pam.c x86: Clean up includes 2016-01-29 15:07:22 +00:00
piix.c hw/pci-host/piix: QOM'ify the IGD Passthrough host bridge 2017-12-21 22:36:33 +02:00
ppce500.c Merge remote-tracking branch 'origin/master' into HEAD 2018-01-11 22:03:50 +02:00
prep.c pci: Rename root bus initialization functions for clarity 2017-12-05 19:13:45 +02:00
q35.c hw/pci-host/q35: Replace hardcoded value with macro 2018-05-23 03:14:40 +03:00
sabre.c Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
trace-events uninorth: create new uninorth device 2018-05-04 15:00:37 +10:00
uninorth.c uninorth: remove token register from uninorth device 2018-06-12 09:33:52 +10:00
versatile.c hw: Do not include "exec/address-spaces.h" if it is not necessary 2018-06-01 14:15:10 +02:00
xilinx-pcie.c hw/pci-host/xilinx-pcie: don't make "io" region be RAM 2018-06-27 20:12:34 +02:00