mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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:
@@ -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) {
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user