qemu-e2k/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 build: remove extra-obj-y 2013-01-26 13:15:37 +00:00
msi.c misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
msi.h pci: fix path for local includes 2012-12-17 13:02:27 +02:00
msix.c msix: add api to access msix message 2013-01-07 19:42:22 +02:00
msix.h msix: add api to access msix message 2013-01-07 19:42:22 +02:00
pci-hotplug.c softmmu: move include files to include/sysemu/ 2012-12-19 08:32:45 +01:00
pci-stub.c softmmu: move include files to include/sysemu/ 2012-12-19 08:32:45 +01:00
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: fix path for local includes 2012-12-17 13:02:27 +02:00
pci_host.h pci_host: Drop write-only address_space field 2013-03-08 13:15:27 +01:00
pci_ids.h Add TEWS TPCI200 IndustryPack emulation 2013-01-14 13:26:12 -06:00
pci_regs.h pci: move pci core code to hw/pci 2012-12-17 13:02:17 +02:00
pcie.c pcie: Fix bug in pcie_ext_cap_set_next 2012-12-26 11:49:28 +02:00
pcie.h pci: fix path for local includes 2012-12-17 13:02:27 +02:00
pcie_aer.c softmmu: move include files to include/sysemu/ 2012-12-19 08:32:45 +01:00
pcie_aer.h pci: fix path for local includes 2012-12-17 13:02:27 +02:00
pcie_host.c exec: move include files to include/exec/ 2012-12-19 08:31:31 +01:00
pcie_host.h exec: move include files to include/exec/ 2012-12-19 08:31:31 +01:00
pcie_port.c pci_bridge: factor out common code 2013-03-26 21:02:17 +02:00
pcie_port.h pci: rename pci_internals.h pci_bus.h 2012-12-17 13:02:27 +02:00
pcie_regs.h pci: move pci core code to hw/pci 2012-12-17 13:02:17 +02:00
shpc.c hw: move qdev-monitor.o to toplevel directory 2013-03-01 13:54:10 +01:00
shpc.h migration: move include files to include/migration/ 2012-12-19 08:31:32 +01:00
slotid_cap.c hw: move qdev-monitor.o to toplevel directory 2013-03-01 13:54:10 +01:00
slotid_cap.h pci: move pci core code to hw/pci 2012-12-17 13:02:17 +02:00