Revision eda48c34 target-sh4/exec.h

b/target-sh4/exec.h
32 32
    return (env->interrupt_request & CPU_INTERRUPT_HARD);
33 33
}
34 34

  
35
static inline int cpu_halted(CPUState *env) {
36
    if (!env->halted)
37
        return 0;
38
    if (cpu_has_work(env)) {
39
        env->halted = 0;
40
        return 0;
41
    }
42
    return EXCP_HALTED;
43
}
44

  
45 35
#ifndef CONFIG_USER_ONLY
46 36
#include "softmmu_exec.h"
47 37
#endif

Also available in: Unified diff