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-04-26 17:03:05 +02:00
2023-08-31 19:47:43 +02:00
2024-04-26 17:03:05 +02:00
2024-04-23 17:35:25 +02:00
2024-04-26 17:03:05 +02:00
2024-05-06 11:17:15 +02:00
2024-05-06 11:21:05 +02:00
2024-04-26 09:49:51 +02:00
2024-04-26 17:03:05 +02:00
2024-05-06 11:21:05 +02:00
2024-02-28 09:11:42 +00:00
2024-04-30 16:12:05 -07:00
2023-06-05 12:04:29 -07:00
2024-04-30 16:12:05 -07:00
2024-04-26 15:31:37 +02:00
2024-04-26 15:31:37 +02:00
2024-04-30 16:12:05 -07:00
2023-06-05 12:04:29 -07:00
2024-04-26 15:31:37 +02:00
2023-01-18 11:14:34 +01:00
2024-02-14 06:09:32 -05:00
2022-04-20 10:51:11 -07:00
2024-03-05 13:22:56 +00:00
2024-04-26 09:49:51 +02:00
2022-05-11 16:50:26 +02:00
2021-05-26 08:35:51 -07:00
2021-05-26 08:35:51 -07:00
2023-08-31 19:47:43 +02:00
2023-01-09 13:50:13 +01:00
2024-04-26 09:49:51 +02:00
2024-04-26 17:03:05 +02:00
2024-05-06 11:17:15 +02:00
2023-08-31 19:47:43 +02:00
2024-04-30 16:12:05 -07:00
2024-04-24 16:03:38 +02:00
2024-04-26 17:03:05 +02:00
2024-04-23 21:32:22 -07:00
2021-11-02 15:55:14 +00:00
2023-02-27 22:29:01 +01:00
2023-10-22 16:34:21 -07:00
2023-06-23 02:54:44 -04:00
2023-11-07 12:13:27 +01:00
2023-06-05 12:04:28 -07:00
2024-01-19 12:28:59 +01:00
2024-01-29 21:04:10 +10:00
2024-04-26 17:03:05 +02:00
2024-04-26 17:03:05 +02:00
2024-01-29 07:06:03 +10:00