summaryrefslogtreecommitdiffstats
path: root/target-m68k
diff options
context:
space:
mode:
authorths2007-06-03 19:44:37 +0200
committerths2007-06-03 19:44:37 +0200
commitbfed01fc79cb2da1c6ca700bb0ce9238ce2974c7 (patch)
tree4260b2f4481ff9250eaacf143273a8c21796c5bf /target-m68k
parentAvoid compiler warning. (diff)
downloadqemu-bfed01fc79cb2da1c6ca700bb0ce9238ce2974c7.tar.gz
qemu-bfed01fc79cb2da1c6ca700bb0ce9238ce2974c7.tar.xz
qemu-bfed01fc79cb2da1c6ca700bb0ce9238ce2974c7.zip
Clean up of some target specifics in exec.c/cpu-exec.c.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2936 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-m68k')
-rw-r--r--target-m68k/exec.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/target-m68k/exec.h b/target-m68k/exec.h
index 254f5581ff..331844b413 100644
--- a/target-m68k/exec.h
+++ b/target-m68k/exec.h
@@ -49,3 +49,13 @@ float64 helper_sub_cmpf64(CPUM68KState *env, float64 src0, float64 src1);
void helper_movec(CPUM68KState *env, int reg, uint32_t val);
void cpu_loop_exit(void);
+
+static inline int cpu_halted(CPUState *env) {
+ if (!env->halted)
+ return 0;
+ if (env->interrupt_request & CPU_INTERRUPT_HARD) {
+ env->halted = 0;
+ return 0;
+ }
+ return EXCP_HALTED;
+}