qemu/target/mips/tcg/sysemu
Philippe Mathieu-Daudé b254c342cf accel/tcg: Access tcg_cflags with getter / setter
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>
2024-05-06 11:21:05 +02:00
..
cp0_helper.c target/mips: Remove helpers accessing SAARI register 2024-02-15 15:53:12 +01:00
lcsr_helper.c target/mips: Remove unused headers in lcsr_helper.c 2023-08-31 19:47:43 +02:00
meson.build target/mips: Implement Loongson CSR instructions 2023-07-10 23:33:37 +02:00
mips-semi.c semihosting: Rename softmmu_FOO_user() -> uaccess_FOO_user() 2023-10-07 19:02:59 +02:00
special_helper.c accel/tcg: Access tcg_cflags with getter / setter 2024-05-06 11:21:05 +02:00
tlb_helper.c exec/cpu: Extract page-protection definitions to page-protection.h 2024-05-06 11:17:15 +02:00