void process_pending_signals(CPUArchState *cpu_env)

{

    CPUState *cpu = ENV_GET_CPU(cpu_env);

    int sig;

    TaskState *ts = cpu->opaque;



    if (!ts->signal_pending)

        return;



    /* FIXME: This is not threadsafe.  */

    for(sig = 1; sig <= TARGET_NSIG; sig++) {

        if (ts->sigtab[sig - 1].pending) {

            handle_pending_signal(cpu_env, sig);

            return;

        }

    }

    /* if no signal is pending, just return */

    ts->signal_pending = 0;

    return;

}

void process_pending_signals(CPUArchState *cpu_env)

{

    CPUState *cpu = ENV_GET_CPU(cpu_env);

    int sig;

    TaskState *ts = cpu->opaque;



    if (!ts->signal_pending)

        return;



    

    for(sig = 1; sig <= TARGET_NSIG; sig++) {

        if (ts->sigtab[sig - 1].pending) {

            handle_pending_signal(cpu_env, sig);

            return;

        }

    }

    

    ts->signal_pending = 0;

    return;

}

    if (!ts->signal_pending)     for(sig = 1; sig <= TARGET_NSIG; sig++) {         if (ts->sigtab[sig - 1].pending) {             handle_pending_signal(cpu_env, sig);     ts->signal_pending = 0;
void FUNC_0(CPUArchState *VAR_0)

{

    CPUState *cpu = ENV_GET_CPU(VAR_0);

    int VAR_1;

    TaskState *ts = cpu->opaque;



    if (!ts->signal_pending)

        return;



    

    for(VAR_1 = 1; VAR_1 <= TARGET_NSIG; VAR_1++) {

        if (ts->sigtab[VAR_1 - 1].pending) {

            handle_pending_signal(VAR_0, VAR_1);

            return;

        }

    }

    

    ts->signal_pending = 0;

    return;

}

void FUNC_0(CPUArchState *VAR_0)
{ CPUState *cpu = ENV_GET_CPU(VAR_0); int VAR_1; TaskState *ts = cpu->opaque; if (!ts->signal_pending)
return; for(VAR_1 = 1; VAR_1 <= TARGET_NSIG; VAR_1++) { if (ts->sigtab[VAR_1 - 1].pending) { handle_pending_signal(VAR_0, VAR_1); return; } } ts->signal_pending = 0; return; }