Re: [PATCH v2 03/23] bulk: Call in place single use cpu_env()

2024-01-26 Thread Richard Henderson
On 1/27/24 08:03, Philippe Mathieu-Daudé wrote: Avoid CPUArchState local variable when cpu_env() is used once. Mechanical patch using the following Coccinelle spatch script: @@ type CPUArchState; identifier env; expression cs; @@ { -CPUArchState *env = cpu_env(cs); ...

[PATCH v2 03/23] bulk: Call in place single use cpu_env()

2024-01-26 Thread Philippe Mathieu-Daudé
Avoid CPUArchState local variable when cpu_env() is used once. Mechanical patch using the following Coccinelle spatch script: @@ type CPUArchState; identifier env; expression cs; @@ { -CPUArchState *env = cpu_env(cs); ... when != env - env + cpu_env(cs) ... when