summary refs log tree commit diff stats
path: root/target/sparc/monitor.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-02-21 19:41:57 +0000
committerPeter Maydell <peter.maydell@linaro.org>2017-02-21 19:41:57 +0000
commite295a154c2a95f114e52ef4b0fb22b801b028bdc (patch)
tree95528d10774a6b5021083310dee65c7bbe376274 /target/sparc/monitor.c
parent796b288f7be875045670f963ce99991b3c8e96ac (diff)
parent854e67fea6a6f181163a5467fc9ba04de8d181bb (diff)
downloadfocaccia-qemu-e295a154c2a95f114e52ef4b0fb22b801b028bdc.tar.gz
focaccia-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/sparc/monitor.c')
-rw-r--r--target/sparc/monitor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/sparc/monitor.c b/target/sparc/monitor.c
index 7cc1b0f87f..f3ca524ae9 100644
--- a/target/sparc/monitor.c
+++ b/target/sparc/monitor.c
@@ -32,6 +32,10 @@ void hmp_info_tlb(Monitor *mon, const QDict *qdict)
 {
     CPUArchState *env1 = mon_get_cpu_env();
 
+    if (!env1) {
+        monitor_printf(mon, "No CPU available\n");
+        return;
+    }
     dump_mmu((FILE*)mon, (fprintf_function)monitor_printf, env1);
 }