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
..
2024-03-22 15:24:37 +10:00
2024-04-29 15:26:56 +03:00
2024-05-06 11:21:05 +02:00
2024-02-09 20:43:14 +10:00
2024-03-22 15:10:45 +10:00
2024-05-06 11:17:15 +02:00
2024-04-26 15:31:37 +02:00
2024-02-09 20:49:41 +10:00
2024-04-25 10:21:06 +01:00
2024-04-26 15:31:37 +02:00
2024-03-08 16:38:09 +10:00
2024-02-09 20:40:32 +10:00
2024-04-26 17:03:05 +02:00
2024-02-28 09:10:11 +00:00
2024-02-09 17:52:30 +00:00
2024-03-08 20:48:03 +10:00
2024-05-06 11:17:15 +02:00
2024-03-08 16:39:32 +10:00
2024-03-12 14:03:00 +01:00
2024-04-09 07:45:09 -10:00
2024-03-22 15:20:02 +10:00
2024-05-06 11:17:15 +02:00
2024-03-22 15:20:02 +10:00
2024-03-22 15:20:02 +10:00