Browse Source

tcg/tcti: fix goto as first instruction

osy 1 month ago
parent
commit
35ba52817d
1 changed files with 1 additions and 0 deletions
  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.
     // GOTO_PTR is too complex to emit a simple gadget for.
     // We'll let C handle it, since the overhead is similar.
     // We'll let C handle it, since the overhead is similar.
     cflags |= CF_NO_GOTO_PTR;
     cflags |= CF_NO_GOTO_PTR;
+    cpu->cflags_next_tb = CF_NO_GOTO_PTR;
 #endif
 #endif
     tcg_cflags_set(cpu, cflags);
     tcg_cflags_set(cpu, cflags);
 }
 }