qemu-patch-raspberry4/hw/pci
Stefan Hajnoczi 8c7f3dd05e pci: refuse empty ROM files
A zero size ROM file is invalid and should produce a warning.
Attempting to use a zero size file ends up hitting an assertion
qemu_ram_set_idstr() because RAMBlocks with duplicate addresses are
allocated - due to zero size the allocator doesn't increment the next
available RAMBlock offset.

Also convert __FUNCTION__ to __func__ while we're touching this code.
There are no other __FUNCTION__ instances in pci.c anymore.

Reported-by: Milos Ivanovic <milosivanovic@orcon.net.nz>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2013-03-26 21:02:17 +02:00
..
Makefile.objs
msi.c
msi.h
msix.c
msix.h
pci-hotplug.c
pci-stub.c
pci.c pci: refuse empty ROM files 2013-03-26 21:02:17 +02:00
pci.h pci: Add PCI VGA helpers 2013-03-26 21:02:16 +02:00
pci_bridge.c pci_bridge: Use a default map_irq function 2013-03-26 21:02:17 +02:00
pci_bridge.h pci_bridge: drop formatting from source 2013-03-26 21:02:17 +02:00
pci_bus.h pci: Teach PCI Bridges about VGA routing 2013-03-26 21:02:17 +02:00
pci_host.c
pci_host.h pci_host: Drop write-only address_space field 2013-03-08 13:15:27 +01:00
pci_ids.h
pci_regs.h
pcie.c
pcie.h
pcie_aer.c
pcie_aer.h
pcie_host.c
pcie_host.h
pcie_port.c pci_bridge: factor out common code 2013-03-26 21:02:17 +02:00
pcie_port.h
pcie_regs.h
shpc.c
shpc.h
slotid_cap.c
slotid_cap.h