monitor: Check whether TCG is enabled before running the "info jit" code
commitb7da97eef74bf834be244de0796ccb01db3985c9
authorThomas Huth <thuth@redhat.com>
Wed, 26 Apr 2017 04:11:47 +0000 (26 06:11 +0200)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 26 Apr 2017 13:42:31 +0000 (26 14:42 +0100)
treed2dce19498700abae9b4e6d860e5201c68641a9e
parente9628441df3a7aa0ee83601a0cc9111b91e2319a
monitor: Check whether TCG is enabled before running the "info jit" code

The "info jit" command currently aborts on Mac OS X with the message
"qemu_mutex_lock: Invalid argument" when running with "-M accel=qtest".
We should only call into the TCG code here if TCG has really been
enabled and initialized.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1493179907-22516-1-git-send-email-thuth@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Tested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
monitor.c