瀏覽代碼

tcg/tcti: fix goto as first instruction

osy 1 月之前
父節點
當前提交
35ba52817d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      accel/tcg/tcg-accel-ops.c

+ 1 - 0
accel/tcg/tcg-accel-ops.c

@@ -68,6 +68,7 @@ void tcg_cpu_init_cflags(CPUState *cpu, bool parallel)
     // GOTO_PTR is too complex to emit a simple gadget for.
     // We'll let C handle it, since the overhead is similar.
     cflags |= CF_NO_GOTO_PTR;
+    cpu->cflags_next_tb = CF_NO_GOTO_PTR;
 #endif
     tcg_cflags_set(cpu, cflags);
 }