Revision bfed01fc target-sparc/exec.h

b/target-sparc/exec.h
115 115
int cpu_sparc_handle_mmu_fault(CPUState *env, target_ulong address, int rw,
116 116
                               int is_user, int is_softmmu);
117 117

  
118
static inline int cpu_halted(CPUState *env) {
119
    if (!env->halted)
120
        return 0;
121
    if ((env->interrupt_request & CPU_INTERRUPT_HARD) && (env->psret != 0)) {
122
        env->halted = 0;
123
        return 0;
124
    }
125
    return EXCP_HALTED;
126
}
127

  
118 128
#endif

Also available in: Unified diff