|
From: | Richard Henderson |
Subject: | Re: [PATCH 28/28] cpus: Remove CPUClass::has_work() handler |
Date: | Fri, 24 Jan 2025 09:40:06 -0800 |
User-agent: | Mozilla Thunderbird |
On 1/21/25 06:23, Philippe Mathieu-Daudé wrote:
diff --git a/hw/core/cpu-system.c b/hw/core/cpu-system.c index 7b16bda2250..7f287984aa6 100644 --- a/hw/core/cpu-system.c +++ b/hw/core/cpu-system.c @@ -25,12 +25,8 @@bool cpu_has_work(CPUState *cpu){ - if (cpu->cc->sysemu_ops->has_work) { - return cpu->cc->sysemu_ops->has_work(cpu); - } - - g_assert(cpu->cc->has_work); - return cpu->cc->has_work(cpu); + g_assert(cpu->cc->sysemu_ops->has_work); + return cpu->cc->sysemu_ops->has_work(cpu);
Let's assert this once at startup, much like we do in tcg_exec_realizefn for TCGCPUOps. Otherwise, Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
[Prev in Thread] | Current Thread | [Next in Thread] |