Revision eda48c34 target-m68k/exec.h

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

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

  
46 36
static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb)
47 37
{
48 38
    env->pc = tb->pc;

Also available in: Unified diff