]> git.proxmox.com Git - mirror_qemu.git/blobdiff - cpu-exec.c
Merge remote-tracking branch 'mst/tags/for_upstream' into staging
[mirror_qemu.git] / cpu-exec.c
index 3e408865a85f5d618de47331c76531d101fab437..4188fed3c62c66545f515cb41401441360164588 100644 (file)
@@ -150,11 +150,13 @@ static inline tcg_target_ulong cpu_tb_exec(CPUState *cpu, TranslationBlock *itb)
 #if defined(DEBUG_DISAS)
     if (qemu_loglevel_mask(CPU_LOG_TB_CPU)
         && qemu_log_in_addr_range(itb->pc)) {
+        qemu_log_lock();
 #if defined(TARGET_I386)
         log_cpu_state(cpu, CPU_DUMP_CCOP);
 #else
         log_cpu_state(cpu, 0);
 #endif
+        qemu_log_unlock();
     }
 #endif /* DEBUG_DISAS */