On 5/9/22 23:42, Dao Lu wrote:
+static bool trans_pause(DisasContext *ctx, arg_pause *a) +{ + REQUIRE_ZIHINTPAUSE(ctx); + + /* + * PAUSE is a no-op in QEMU, + * however we need to clear the reservation + */ + tcg_gen_movi_tl(load_res, -1);
I recommend ending the TB and returning to the main loop. When running in round-robin mode, this will yield to the next cpu.
r~