diff --git a/qemu/accel/tcg/translate-all.c b/qemu/accel/tcg/translate-all.c index 16deed56..3e5f693d 100644 --- a/qemu/accel/tcg/translate-all.c +++ b/qemu/accel/tcg/translate-all.c @@ -1553,7 +1553,7 @@ TranslationBlock *tb_gen_code(CPUState *cpu, assert_memory_lock(); #ifdef HAVE_PTHREAD_JIT_PROTECT - tb_exec_unlock(false); + tb_exec_unlock(tcg_ctx); #endif phys_pc = get_page_addr_code(env, pc); @@ -2039,4 +2039,4 @@ void tb_exec_lock(TCGContext *tcg_ctx) void tb_exec_unlock(TCGContext *tcg_ctx) { tb_exec_change(tcg_ctx, false); -} \ No newline at end of file +}