cpus: Un-inline cpu_has_work()

In order to expand cpu_has_work(), un-inline it.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250125170125.32855-3-philmd@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé 2025-01-21 12:56:10 +01:00
parent c0ee4dd155
commit 8f8dbe04bd
2 changed files with 7 additions and 5 deletions

View file

@ -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) {

View file

@ -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 */