qemu/target
Laurent Vivier 6dba634097 hmp: fix "dump-quest-memory" segfault (arm)
Running QEMU with
    qemu-system-aarch64 -M none -nographic -m 256
and executing
    dump-guest-memory /dev/null 0 8192
results in segfault

Fix by checking if we have CPU, and exit with
error if there is no CPU:

    (qemu) dump-guest-memory /dev/null
    this feature or command is not currently supported

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Message-Id: <20170913142036.2469-3-lvivier@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
2017-09-14 15:52:10 +01:00
..
alpha target/alpha: Switch to do_transaction_failed() hook 2017-09-07 11:15:55 -07:00
arm hmp: fix "dump-quest-memory" segfault (arm) 2017-09-14 15:52:10 +01:00
cris
hppa target/hppa: Convert to TranslatorOps 2017-09-07 11:23:13 -07:00
i386
lm32
m68k target/m68k: Switch fpu_rom from make_floatx80() to make_floatx80_init() 2017-09-10 18:07:40 +02:00
microblaze
mips
moxie
nios2
openrisc
ppc hmp: fix "dump-quest-memory" segfault (ppc) 2017-09-14 15:52:10 +01:00
s390x
sh4
sparc sparc: Fix typedef clash 2017-09-14 15:00:41 +01:00
tilegx
tricore
unicore32
xtensa