qemu-irix/hw
Thomas Huth 6516367fc0 hw/core/generic-loader: Fix crash when running without CPU
When running QEMU with "-M none -device loader,file=kernel.elf", it
currently crashes with a segmentation fault, because the "none"-machine
does not have any CPU by default and the generic loader code tries
to dereference s->cpu. Fix it by adding an appropriate check for a
NULL pointer.

Reported-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2017-05-10 10:19:23 +03:00
..
9pfs Xen 2017/04/21 + fix 2017-04-26 10:22:31 +01:00
acpi tco: do not generate an NMI 2017-04-05 17:23:52 +02:00
adc
alpha
arm -----BEGIN PGP SIGNATURE----- 2017-04-25 14:14:17 +01:00
audio
block virtio-blk: Remove useless condition around g_free() 2017-05-10 10:19:23 +03:00
bt
char hw/char/exynos4210_uart: Constify static array and few arguments 2017-04-20 17:39:17 +01:00
core hw/core/generic-loader: Fix crash when running without CPU 2017-05-10 10:19:23 +03:00
cpu
cris
display fix display update races, part one. 2017-04-24 15:37:30 +01:00
dma
gpio
i2c
i386 Xen 2017/04/21 + fix 2017-04-26 10:22:31 +01:00
ide
input
intc ppc/pnv: add a PnvICPState object 2017-04-26 12:00:42 +10:00
ipack
ipmi ipmi: introduce an ipmi_bmc_gen_event() API 2017-04-26 12:41:55 +10:00
isa tco: do not generate an NMI 2017-04-05 17:23:52 +02:00
lm32
m68k
mem
microblaze Remove reduntant qemu: from error functions 2017-05-07 09:57:51 +03:00
mips
misc hw/misc/exynos4210_pmu: Reorder local variables for readability 2017-04-20 17:39:17 +01:00
moxie
net net/ftgmac100: add a 'aspeed' property 2017-04-25 19:17:25 +08:00
nios2 Remove reduntant qemu: from error functions 2017-05-07 09:57:51 +03:00
nvram
openrisc
pci pci: Only unmap bus_master_enabled_region if was added previously 2017-04-04 18:32:25 +03:00
pci-bridge
pci-host versatile: remove cannot_destroy_with_object_finalize_yet 2017-04-21 07:18:34 +02:00
pcmcia
ppc ppc_booke: drop useless assignment 2017-05-07 09:57:51 +03:00
s390x Remove reduntant qemu: from error functions 2017-05-07 09:57:51 +03:00
scsi scsi: Make errp the last parameter of virtio_scsi_common_realize 2017-04-24 09:13:44 +02:00
sd
sh4 sm501: QOMify 2017-04-24 12:32:12 +01:00
smbios
sparc tcx: switch to load_image_mr() and remove prom_addr hack 2017-04-21 09:02:04 +01:00
sparc64
ssi
timer hw/arm/exynos: Convert fprintf to qemu_log_mask/error_report 2017-04-20 17:39:17 +01:00
tpm
tricore Remove reduntant qemu: from error functions 2017-05-07 09:57:51 +03:00
unicore32
usb usb-ccid: make ccid_write_data_block() cope with null buffers 2017-05-07 09:57:51 +03:00
vfio memory: add section range info for IOMMU notifier 2017-04-20 15:22:41 -03:00
virtio migration/next for 20170421 2017-04-21 15:59:27 +01:00
watchdog
xen move xen-common.c to hw/xen/ 2017-04-25 11:04:34 -07:00
xenpv
xtensa
Makefile.objs