From bfed01fc79cb2da1c6ca700bb0ce9238ce2974c7 Mon Sep 17 00:00:00 2001 From: ths Date: Sun, 3 Jun 2007 17:44:37 +0000 Subject: 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 --- target-alpha/exec.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'target-alpha/exec.h') 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__) */ -- cgit v1.2.3