aboutsummaryrefslogtreecommitdiff
path: root/qemu-options.hx
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2017-01-25 21:45:17 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2017-05-10 10:19:23 +0300
commit6516367fc0803d079384e0ad370856ac328bef30 (patch)
tree5718b122f6af197ce4500ab179bd9d59ff8998da /qemu-options.hx
parent1d29b5b0499c4d1f0415fadf94e41ed8964a7ed3 (diff)
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>
Diffstat (limited to 'qemu-options.hx')
0 files changed, 0 insertions, 0 deletions