mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06: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:
parent
c0ee4dd155
commit
8f8dbe04bd
2 changed files with 7 additions and 5 deletions
|
@ -31,6 +31,12 @@
|
||||||
#include "migration/vmstate.h"
|
#include "migration/vmstate.h"
|
||||||
#include "system/tcg.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)
|
bool cpu_paging_enabled(const CPUState *cpu)
|
||||||
{
|
{
|
||||||
if (cpu->cc->sysemu_ops->get_paging_enabled) {
|
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.
|
* Returns: %true if the CPU has work, %false otherwise.
|
||||||
*/
|
*/
|
||||||
static inline bool cpu_has_work(CPUState *cpu)
|
bool cpu_has_work(CPUState *cpu);
|
||||||
{
|
|
||||||
g_assert(cpu->cc->has_work);
|
|
||||||
return cpu->cc->has_work(cpu);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* CONFIG_USER_ONLY */
|
#endif /* CONFIG_USER_ONLY */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue