qemu-patch-raspberry4/target/sparc
Thomas Huth 854e67fea6 monitor: Fix crashes when using HMP commands without CPU
When running certain HMP commands ("info registers", "info cpustats",
"info tlb", "nmi", "memsave" or dumping virtual memory) with the "none"
machine, QEMU crashes with a segmentation fault. This happens because the
"none" machine does not have any CPUs by default, but these HMP commands
did not check for a valid CPU pointer yet. Add such checks now, so we get
an error message about the missing CPU instead.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1484309555-1935-1-git-send-email-thuth@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
2017-02-21 18:29:01 +00:00
..
asi.h target-sparc: implement UA2005 scratchpad registers 2017-01-18 22:03:44 +01:00
cc_helper.c
cpu-qom.h
cpu.c target-sparc: implement UA2005 GL register 2017-01-18 22:03:44 +01:00
cpu.h target-sparc: store the UA2005 entries in sun4u format 2017-01-18 22:03:44 +01:00
fop_helper.c
gdbstub.c
helper.c
helper.h target-sparc: implement UA2005 GL register 2017-01-18 22:03:44 +01:00
int32_helper.c
int64_helper.c target-sparc: implement UA2005 GL register 2017-01-18 22:03:44 +01:00
ldst_helper.c target-sparc: store the UA2005 entries in sun4u format 2017-01-18 22:03:44 +01:00
machine.c migration: extend VMStateInfo 2017-01-24 17:54:47 +00:00
Makefile.objs
mmu_helper.c target-sparc: add more registers to dump_mmu 2017-01-18 22:03:44 +01:00
monitor.c monitor: Fix crashes when using HMP commands without CPU 2017-02-21 18:29:01 +00:00
TODO
trace-events
translate.c target-sparc: add ST_BLKINIT_ ASIs for UA2005+ CPUs 2017-01-18 22:03:44 +01:00
vis_helper.c
win_helper.c target-sparc: implement UA2005 GL register 2017-01-18 22:03:44 +01:00