summaryrefslogtreecommitdiff
path: root/target-alpha
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-03 17:44:37 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-03 17:44:37 +0000
commitbfed01fc79cb2da1c6ca700bb0ce9238ce2974c7 (patch)
tree4260b2f4481ff9250eaacf143273a8c21796c5bf /target-alpha
parent08ab123c2dba80cf6b7f0df563af14a7d902f759 (diff)
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-alpha')
-rw-r--r--target-alpha/exec.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/target-alpha/exec.h b/target-alpha/exec.h
index f109160a51..32c27c7354 100644
--- a/target-alpha/exec.h
+++ b/target-alpha/exec.h
@@ -79,4 +79,14 @@ int cpu_alpha_mtpr (CPUState *env, int iprn, uint64_t val, uint64_t *oldvalp);
void do_interrupt (CPUState *env);
+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;
+}
+
#endif /* !defined (__ALPHA_EXEC_H__) */