From f3e270377acd074f62e08960ef9444adf67d3590 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 21 May 2011 12:16:05 +0000 Subject: exec.h: fix coding style and change cpu_has_work to return bool Before the next patch, fix coding style of the areas affected. Change the type of the return value from cpu_has_work() and qemu_cpu_has_work() to bool. Signed-off-by: Blue Swirl --- target-ppc/exec.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target-ppc') diff --git a/target-ppc/exec.h b/target-ppc/exec.h index f87847acb1..81c3c547f8 100644 --- a/target-ppc/exec.h +++ b/target-ppc/exec.h @@ -32,9 +32,9 @@ register struct CPUPPCState *env asm(AREG0); #include "softmmu_exec.h" #endif /* !defined(CONFIG_USER_ONLY) */ -static inline int cpu_has_work(CPUState *env) +static inline bool cpu_has_work(CPUState *env) { - return (msr_ee && (env->interrupt_request & CPU_INTERRUPT_HARD)); + return msr_ee && (env->interrupt_request & CPU_INTERRUPT_HARD); } -- cgit v1.2.3