|
From: | Richard Henderson |
Subject: | Re: [PATCH 1/1] Add Zihintpause support |
Date: | Tue, 10 May 2022 08:43:29 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 |
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~
[Prev in Thread] | Current Thread | [Next in Thread] |