On 7/6/23 18:05, Richard Henderson wrote:
+++ b/accel/tcg/cpu-exec.c
@@ -531,6 +531,10 @@ static void cpu_exec_longjmp_cleanup(CPUState *cpu)
      /* Non-buggy compilers preserve this; assert the correct value. */
      g_assert(cpu == current_cpu);
+ if (tcg_ctx->gen_tb) {
+        tb_unlock_pages(tcg_ctx->gen_tb);
+        tcg_ctx->gen_tb = NULL;
+    }

Ho hum, fails for user-only, since there is one tcg_ctx and this cpu didn't necessarily own it. Just a slight tweak needed, I'm sure.


r~

Reply via email to