From: Philippe Mathieu-Daudé Date: Tue, 21 Jan 2025 11:56:10 +0000 (+0100) Subject: cpus: Un-inline cpu_has_work() X-Git-Tag: v10.0.0-rc0~17^2~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8f8dbe04bdafdbe265e9ae25737bb18daacc6ca6;p=thirdparty%2Fqemu.git cpus: Un-inline cpu_has_work() In order to expand cpu_has_work(), un-inline it. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20250125170125.32855-3-philmd@linaro.org> --- diff --git a/hw/core/cpu-system.c b/hw/core/cpu-system.c index e29664d39b..c10e3c9ba6 100644 --- a/hw/core/cpu-system.c +++ b/hw/core/cpu-system.c @@ -31,6 +31,12 @@ #include "migration/vmstate.h" #include "system/tcg.h" +bool cpu_has_work(CPUState *cpu) +{ + g_assert(cpu->cc->has_work); + return cpu->cc->has_work(cpu); +} + bool cpu_paging_enabled(const CPUState *cpu) { if (cpu->cc->sysemu_ops->get_paging_enabled) { diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index 2d4ebb7990..a54dd2cf69 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -758,11 +758,7 @@ bool cpu_virtio_is_big_endian(CPUState *cpu); * * Returns: %true if the CPU has work, %false otherwise. */ -static inline bool cpu_has_work(CPUState *cpu) -{ - g_assert(cpu->cc->has_work); - return cpu->cc->has_work(cpu); -} +bool cpu_has_work(CPUState *cpu); #endif /* CONFIG_USER_ONLY */