void xtensa_breakpoint_handler(CPUState *cs)

{

    XtensaCPU *cpu = XTENSA_CPU(cs);

    CPUXtensaState *env = &cpu->env;



    if (cs->watchpoint_hit) {

        if (cs->watchpoint_hit->flags & BP_CPU) {

            uint32_t cause;



            cs->watchpoint_hit = NULL;

            cause = check_hw_breakpoints(env);

            if (cause) {

                debug_exception_env(env, cause);

            }

            cpu_resume_from_signal(cs, NULL);

        }

    }

}

void xtensa_breakpoint_handler(CPUState *cs)

{

    XtensaCPU *cpu = XTENSA_CPU(cs);

    CPUXtensaState *env = &cpu->env;



    if (cs->watchpoint_hit) {

        if (cs->watchpoint_hit->flags & BP_CPU) {

            uint32_t cause;



            cs->watchpoint_hit = NULL;

            cause = check_hw_breakpoints(env);

            if (cause) {

                debug_exception_env(env, cause);

            }

            cpu_resume_from_signal(cs, NULL);

        }

    }

}

void FUNC_0(CPUState *VAR_0)

{

    XtensaCPU *cpu = XTENSA_CPU(VAR_0);

    CPUXtensaState *env = &cpu->env;



    if (VAR_0->watchpoint_hit) {

        if (VAR_0->watchpoint_hit->flags & BP_CPU) {

            uint32_t cause;



            VAR_0->watchpoint_hit = NULL;

            cause = check_hw_breakpoints(env);

            if (cause) {

                debug_exception_env(env, cause);

            }

            cpu_resume_from_signal(VAR_0, NULL);

        }

    }

}

void FUNC_0(CPUState *VAR_0)
{ XtensaCPU *cpu = XTENSA_CPU(VAR_0); CPUXtensaState *env = &cpu->env; if (VAR_0->watchpoint_hit) { if (VAR_0->watchpoint_hit->flags & BP_CPU) { uint32_t cause; VAR_0->watchpoint_hit = NULL; cause = check_hw_breakpoints(env); if (cause) { debug_exception_env(env, cause); } cpu_resume_from_signal(VAR_0, NULL); } } }