diff options
author | Blue Swirl | 2011-05-21 14:16:05 +0200 |
---|---|---|
committer | Blue Swirl | 2011-06-26 20:25:26 +0200 |
commit | f3e270377acd074f62e08960ef9444adf67d3590 (patch) | |
tree | 18a26d7473c79d8ccb4918bc703fc1ab3d8d14ab /target-cris | |
parent | cpu-exec: unify do_interrupt call (diff) | |
download | qemu-f3e270377acd074f62e08960ef9444adf67d3590.tar.gz qemu-f3e270377acd074f62e08960ef9444adf67d3590.tar.xz qemu-f3e270377acd074f62e08960ef9444adf67d3590.zip |
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-cris')
-rw-r--r-- | target-cris/exec.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-cris/exec.h b/target-cris/exec.h index 2d5d297e1b..70d99d184f 100644 --- a/target-cris/exec.h +++ b/target-cris/exec.h @@ -28,9 +28,9 @@ register struct CPUCRISState *env asm(AREG0); #include "softmmu_exec.h" #endif -static inline int cpu_has_work(CPUState *env) +static inline bool cpu_has_work(CPUState *env) { - return (env->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI)); + return env->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI); } static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb) |