On 16/2/23 03:57, Richard Henderson wrote:
Like cpu_in_exclusive_context, but also true if
there is no other cpu against which we could race.

Use it in tb_flush as a direct replacement.
Use it in cpu_loop_exit_atomic to ensure that there
is no loop against cpu_exec_step_atomic.

Signed-off-by: Richard Henderson <[email protected]>
---
  accel/tcg/internal.h        | 5 +++++
  accel/tcg/cpu-exec-common.c | 3 +++
  accel/tcg/tb-maint.c        | 2 +-
  3 files changed, 9 insertions(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>


Reply via email to