mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
f37799c6c1
commit
d0a4ccae95
5 changed files with 16 additions and 15 deletions
|
@ -27,6 +27,11 @@ void cpu_class_init_props(DeviceClass *dc)
|
|||
device_class_set_props(dc, cpu_user_props);
|
||||
}
|
||||
|
||||
void cpu_exec_class_post_init(CPUClass *cc)
|
||||
{
|
||||
/* nothing to do */
|
||||
}
|
||||
|
||||
void cpu_exec_initfn(CPUState *cpu)
|
||||
{
|
||||
/* nothing to do */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue