mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-01 22:23:23 -10:00
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 <[email protected]> Message-Id: <[email protected]> Reviewed-by: Dr. David Alan Gilbert <[email protected]> Tested-by: Peter Maydell <[email protected]> Signed-off-by: Dr. David Alan Gilbert <[email protected]>
This commit is contained in:
1 parent
e9628441df
commit
b7da97eef7
1 file changed
+5
@@ -1086,6 +1086,11 @@ static void hmp_info_registers(Monitor *mon, const QDict *qdict)
|
||||
|
||||
static void hmp_info_jit(Monitor *mon, const QDict *qdict)
|
||||
{
|
||||
if (!tcg_enabled()) {
|
||||
error_report("JIT information is only available with accel=tcg");
|
||||
return;
|
||||
}
|
||||
|
||||
dump_exec_info((FILE *)mon, monitor_fprintf);
|
||||
dump_drift_info((FILE *)mon, monitor_fprintf);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user