qemu/target/loongarch/tcg
Philippe Mathieu-Daudé 94956d7b51 bulk: Call in place single use cpu_env()
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>
2024-03-12 11:46:16 +01:00
..
insn_trans target/loongarch: Rename MMU_IDX_* 2024-02-03 16:46:07 +10:00
constant_timer.c
csr_helper.c
fpu_helper.c
iocsr_helper.c hw/loongarch/virt: Set iocsr address space per-board rather than percpu 2024-01-11 19:22:47 +08:00
meson.build
op_helper.c
tlb_helper.c include/exec: Change cpu_mmu_index argument to CPUState 2024-02-03 16:46:10 +10:00
translate.c bulk: Call in place single use cpu_env() 2024-03-12 11:46:16 +01:00
vec_helper.c