mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-25 13:45:36 -07:00
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 != env
}
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20240129164514.73104-5-philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
|
||
|---|---|---|
| .. | ||
| cpu-param.h | ||
| cpu-qom.h | ||
| cpu.c | ||
| cpu.h | ||
| fpu_helper.c | ||
| gdbstub.c | ||
| helper.c | ||
| helper.h | ||
| insns.decode | ||
| int_helper.c | ||
| Kconfig | ||
| machine.c | ||
| mem_helper.c | ||
| meson.build | ||
| op_helper.c | ||
| sys_helper.c | ||
| trace-events | ||
| trace.h | ||
| translate.c | ||