aboutsummaryrefslogtreecommitdiff
path: root/target-sh4
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2011-05-21 12:16:05 +0000
committerBlue Swirl <blauwirbel@gmail.com>2011-06-26 18:25:26 +0000
commitf3e270377acd074f62e08960ef9444adf67d3590 (patch)
tree18a26d7473c79d8ccb4918bc703fc1ab3d8d14ab /target-sh4
parentd8108fb187bb68459cfe7dca4b5c983db33bcc7b (diff)
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 <blauwirbel@gmail.com>
Diffstat (limited to 'target-sh4')
-rw-r--r--target-sh4/exec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-sh4/exec.h b/target-sh4/exec.h
index 9f1c1f6a00..ff068c550e 100644
--- a/target-sh4/exec.h
+++ b/target-sh4/exec.h
@@ -27,9 +27,9 @@ register struct CPUSH4State *env asm(AREG0);
#include "cpu.h"
#include "exec-all.h"
-static inline int cpu_has_work(CPUState *env)
+static inline bool cpu_has_work(CPUState *env)
{
- return (env->interrupt_request & CPU_INTERRUPT_HARD);
+ return env->interrupt_request & CPU_INTERRUPT_HARD;
}
#ifndef CONFIG_USER_ONLY