Re: [PATCH v3 24/24] cpus: Remove CPUClass::has_work() handler

2025-02-10 Thread Richard Henderson
On 2/10/25 13:36, Philippe Mathieu-Daudé wrote: I'll amend to the description: --- Note, since cpu-common.c is in meson's common_ss[] source set, we must define cpu_exec_class_post_init() in cpu-target.c (which is in the specific_ss[] source set) to have CONFIG_USER_ONLY defined. --- Excellent

Re: [PATCH v3 24/24] cpus: Remove CPUClass::has_work() handler

2025-02-10 Thread Philippe Mathieu-Daudé
On 27/1/25 08:50, Philippe Mathieu-Daudé wrote: On 26/1/25 13:31, Richard Henderson wrote: On 1/25/25 09:01, Philippe Mathieu-Daudé wrote: diff --git a/cpu-target.c b/cpu-target.c index 98e9e7cc4a1..778f622b07a 100644 --- a/cpu-target.c +++ b/cpu-target.c @@ -230,6 +230,14 @@ void cpu_class_ini

Re: [PATCH v3 24/24] cpus: Remove CPUClass::has_work() handler

2025-01-26 Thread Philippe Mathieu-Daudé
On 26/1/25 13:31, Richard Henderson wrote: On 1/25/25 09:01, Philippe Mathieu-Daudé wrote: diff --git a/cpu-target.c b/cpu-target.c index 98e9e7cc4a1..778f622b07a 100644 --- a/cpu-target.c +++ b/cpu-target.c @@ -230,6 +230,14 @@ void cpu_class_init_props(DeviceClass *dc)   device_class_set_p

Re: [PATCH v3 24/24] cpus: Remove CPUClass::has_work() handler

2025-01-26 Thread Richard Henderson
On 1/25/25 09:01, Philippe Mathieu-Daudé wrote: diff --git a/cpu-target.c b/cpu-target.c index 98e9e7cc4a1..778f622b07a 100644 --- a/cpu-target.c +++ b/cpu-target.c @@ -230,6 +230,14 @@ void cpu_class_init_props(DeviceClass *dc) device_class_set_props(dc, cpu_common_props); } +void cpu

[PATCH v3 24/24] cpus: Remove CPUClass::has_work() handler

2025-01-25 Thread Philippe Mathieu-Daudé
All handlers have been converted to SysemuCPUOps::has_work(). Remove CPUClass::has_work along with cpu_common_has_work() and simplify cpu_has_work(), making SysemuCPUOps::has_work handler mandatory. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- include/hw/core/cpu.h