qemu-patch-raspberry4/hw/pci-host
Thomas Huth fb38ebfbfe hw/pci-host/prep: Do not use hw_error() in realize function
hw_error() is for CPU related errors only (it prints out a
register dump and calls abort()), so we should not use it
if we just failed to load the bios image. Apart from that,
realize() functions should not exit directly but always set
the errp with error_setg() in case of errors instead.
Additionally, move some code around and delete the bios memory
subregion again in case of such an error, so that we leave a
clean state when returning to the caller.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Hervé Poussineau <hpoussin@reactos.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2017-02-22 11:28:28 +11:00
..
apb.c apb: convert init to realize 2016-07-29 00:07:09 +03:00
bonito.c pci: Clean up includes 2016-01-29 15:07:24 +00:00
gpex.c pci: Clean up includes 2016-01-29 15:07:24 +00:00
grackle.c hw/grackle: fix PCI bus initialization 2016-07-20 19:30:26 +03:00
Makefile.objs pci: Add generic PCIe host bridge 2015-02-13 05:46:07 +00:00
pam.c x86: Clean up includes 2016-01-29 15:07:22 +00:00
piix.c range: Eliminate direct Range member access 2016-07-04 16:49:33 +03:00
ppce500.c pci: Clean up includes 2016-01-29 15:07:24 +00:00
prep.c hw/pci-host/prep: Do not use hw_error() in realize function 2017-02-22 11:28:28 +11:00
q35.c range: Eliminate direct Range member access 2016-07-04 16:49:33 +03:00
uninorth.c ppc: Make uninorth interrupt swizzling identical to Grackle 2016-11-23 12:00:48 +11:00
versatile.c hw/versatile: realize the PCI root bus as part of the versatile init 2016-07-20 19:30:27 +03:00