]> git.ipfire.org Git - thirdparty/qemu.git/commit
cpus: Remove CPUClass::has_work() handler
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Sun, 26 Jan 2025 07:17:59 +0000 (08:17 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Sun, 9 Mar 2025 16:00:47 +0000 (17:00 +0100)
commitd0a4ccae953b7482a682b9b9f8619804059ecc89
treeab0245ac09ee186750de5b22f15c4cc519b8de02
parentf37799c6c1d2e8fb43f5e1f100f26c5401d9b3ff
cpus: Remove CPUClass::has_work() handler

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.

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.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20250125170125.32855-25-philmd@linaro.org>
hw/core/cpu-common.c
hw/core/cpu-system.c
hw/core/cpu-user.c
include/hw/core/cpu.h
include/hw/core/sysemu-cpu-ops.h