qemu-e2k/target/ppc
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
..
translate target-ppc: Add xststdc[sp, dp, qp] instructions 2017-02-02 09:30:06 +11:00
arch_dump.c
compat.c ppc: Add ppc_set_compat_all() 2017-01-31 10:10:14 +11:00
cpu-models.c target/ppc/cpu-models: Fix/remove bad CPU aliases 2017-01-31 13:46:26 +11:00
cpu-models.h powerpc/cpu-models: rename ISAv3.00 logical PVR definition 2017-01-31 10:10:14 +11:00
cpu-qom.h spapr: clock should count only if vm is running 2017-01-31 10:10:14 +11:00
cpu.h target/ppc: Add pcr_supported to POWER9 cpu class definition 2017-01-31 10:10:14 +11:00
dfp_helper.c
excp_helper.c ppc: Clean up and QOMify hypercall emulation 2017-01-31 10:10:13 +11:00
fpu_helper.c target-ppc: Add xststdc[sp, dp, qp] instructions 2017-02-02 09:30:06 +11:00
gdbstub.c
helper_regs.h cputlb: drop flush_global flag from tlb_flush 2017-01-13 14:24:37 +00:00
helper.h target-ppc: Add xststdc[sp, dp, qp] instructions 2017-02-02 09:30:06 +11:00
int_helper.c ppc: Implement bcdutrunc. instruction 2017-01-31 10:10:14 +11:00
internal.h target-ppc: Add xststdc[sp, dp, qp] instructions 2017-02-02 09:30:06 +11:00
kvm_ppc.h ppc: Rename cpu_version to compat_pvr 2017-01-31 10:10:13 +11:00
kvm-stub.c
kvm.c ppc/kvm: Handle the "family" CPU via alias instead of registering new types 2017-02-02 09:30:07 +11:00
machine.c migration: extend VMStateInfo 2017-01-24 17:54:47 +00:00
Makefile.objs ppc: Rewrite ppc_set_compat() 2017-01-31 10:10:13 +11:00
mem_helper.c target-ppc: implement stxvll instructions 2017-01-31 10:10:13 +11:00
mfrom_table_gen.c
mfrom_table.c
misc_helper.c cputlb: drop flush_global flag from tlb_flush 2017-01-13 14:24:37 +00:00
mmu_helper.c cputlb: drop flush_global flag from tlb_flush 2017-01-13 14:24:37 +00:00
mmu-hash32.c
mmu-hash32.h
mmu-hash64.c target/ppc/mmu_hash64: Fix printing unsigned as signed int 2017-02-02 09:30:07 +11:00
mmu-hash64.h target/ppc/mmu_hash64: Fix incorrect shift value in amr calculation 2017-02-02 09:30:07 +11:00
monitor.c monitor: Fix crashes when using HMP commands without CPU 2017-02-21 18:29:01 +00:00
STATUS
timebase_helper.c
trace-events
translate_init.c target/ppc: Remove unused POWERPC_FAMILY(POWER) 2017-01-31 13:46:26 +11:00
translate.c tcg/POWER9: NOOP the cp_abort instruction 2017-02-02 09:30:06 +11:00
user_only_helper.c