diff options
author | Peter Maydell | 2017-02-21 20:41:57 +0100 |
---|---|---|
committer | Peter Maydell | 2017-02-21 20:41:57 +0100 |
commit | e295a154c2a95f114e52ef4b0fb22b801b028bdc (patch) | |
tree | 95528d10774a6b5021083310dee65c7bbe376274 /target/sh4/monitor.c | |
parent | Merge remote-tracking branch 'remotes/cody/tags/block-pull-request' into staging (diff) | |
parent | monitor: Fix crashes when using HMP commands without CPU (diff) | |
download | qemu-e295a154c2a95f114e52ef4b0fb22b801b028bdc.tar.gz qemu-e295a154c2a95f114e52ef4b0fb22b801b028bdc.tar.xz qemu-e295a154c2a95f114e52ef4b0fb22b801b028bdc.zip |
Merge remote-tracking branch 'remotes/dgilbert/tags/pull-hmp-20170221' into staging
HMP pull
Note, I had seen a fail in the vhost-user/flags-mismatch on one
host in one build, but not others with the same patches; and these patches
go nowhere near that, so I think that's a separate vhost-user issue.
# gpg: Signature made Tue 21 Feb 2017 18:49:25 GMT
# gpg: using RSA key 0x0516331EBC5BFDE7
# gpg: Good signature from "Dr. David Alan Gilbert (RH2) <dgilbert@redhat.com>"
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg: There is no indication that the signature belongs to the owner.
# Primary key fingerprint: 45F5 C71B 4A0C B7FB 977A 9FA9 0516 331E BC5B FDE7
* remotes/dgilbert/tags/pull-hmp-20170221:
monitor: Fix crashes when using HMP commands without CPU
monitor: add poll-* properties into query-iothreads result
hmp: fix block_set_io_throttle
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/sh4/monitor.c')
-rw-r--r-- | target/sh4/monitor.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target/sh4/monitor.c b/target/sh4/monitor.c index 426e5d4914..4c7f36c9cc 100644 --- a/target/sh4/monitor.c +++ b/target/sh4/monitor.c @@ -44,6 +44,11 @@ void hmp_info_tlb(Monitor *mon, const QDict *qdict) CPUArchState *env = mon_get_cpu_env(); int i; + if (!env) { + monitor_printf(mon, "No CPU available\n"); + return; + } + monitor_printf (mon, "ITLB:\n"); for (i = 0 ; i < ITLB_SIZE ; i++) print_tlb (mon, i, &env->itlb[i]); |