diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2011-05-21 12:16:05 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-06-26 18:25:26 +0000 |
commit | 1f419eeddb1753723dea6c2e9fd7ecc8d225beef (patch) | |
tree | 18a26d7473c79d8ccb4918bc703fc1ab3d8d14ab /target-sparc | |
parent | 72fc9eecb45b49dc325f94a2955341db9512c8f0 (diff) | |
download | qemu-1f419eeddb1753723dea6c2e9fd7ecc8d225beef.tar.gz qemu-1f419eeddb1753723dea6c2e9fd7ecc8d225beef.tar.bz2 qemu-1f419eeddb1753723dea6c2e9fd7ecc8d225beef.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-sparc')
-rw-r--r-- | target-sparc/exec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sparc/exec.h b/target-sparc/exec.h index becdaf5bf3..c1ac2fd8b3 100644 --- a/target-sparc/exec.h +++ b/target-sparc/exec.h @@ -13,7 +13,7 @@ register struct CPUSPARCState *env asm(AREG0); #endif /* !defined(CONFIG_USER_ONLY) */ /* op_helper.c */ -static inline int cpu_has_work(CPUState *env1) +static inline bool cpu_has_work(CPUState *env1) { return (env1->interrupt_request & CPU_INTERRUPT_HARD) && cpu_interrupts_enabled(env1); |