mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-25 08:58:36 -07:00
Access the CPUState::tcg_cflags via tcg_cflags_has() and tcg_cflags_set() helpers. Mechanical change using the following Coccinelle spatch script: @@ expression cpu; expression flags; @@ - cpu->tcg_cflags & flags + tcg_cflags_has(cpu, flags) @@ expression cpu; expression flags; @@ - (tcg_cflags_has(cpu, flags)) + tcg_cflags_has(cpu, flags) @@ expression cpu; expression flags; @@ - cpu->tcg_cflags |= flags; + tcg_cflags_set(cpu, flags); Then manually moving the declarations, and adding both tcg_cflags_has() and tcg_cflags_set() definitions. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240427155714.53669-15-philmd@linaro.org> |
||
|---|---|---|
| .. | ||
| sysemu | ||
| tcg | ||
| cpu-defs.c.inc | ||
| cpu-param.h | ||
| cpu-qom.h | ||
| cpu.c | ||
| cpu.h | ||
| fpu.c | ||
| fpu_helper.h | ||
| gdbstub.c | ||
| helper.h | ||
| internal.h | ||
| Kconfig | ||
| kvm.c | ||
| kvm_mips.h | ||
| meson.build | ||
| mips-defs.h | ||
| msa.c | ||