[PATCH v2 03/10] tcg: Use one-insn-per-tb accelerator property in curr_cflags()

Richard Henderson richard.henderson at linaro.org
Mon Apr 3 18:33:49 UTC 2023


On 4/3/23 07:46, Peter Maydell wrote:
>   uint32_t curr_cflags(CPUState *cpu)
>   {
>       uint32_t cflags = cpu->tcg_cflags;
> +    TCGState *tcgstate = TCG_STATE(current_accel());

As mentioned against the cover, this is a very hot path.

We should try for something less expensive.  Perhaps as simple as

     return cpu->tcg_cflags | tcg_cflags_global;

where cpu->tcg_cflags is updated with cpu->singlestep_enabled.


r~



More information about the libvir-list mailing list