void ppc_set_irq (CPUState *env, int n_IRQ, int level)

{

    if (level) {

        env->pending_interrupts |= 1 << n_IRQ;

        cpu_interrupt(env, CPU_INTERRUPT_HARD);

    } else {

        env->pending_interrupts &= ~(1 << n_IRQ);

        if (env->pending_interrupts == 0)

            cpu_reset_interrupt(env, CPU_INTERRUPT_HARD);

    }

#if defined(PPC_DEBUG_IRQ)

    if (loglevel & CPU_LOG_INT) {

        fprintf(logfile, "%s: %p n_IRQ %d level %d => pending %08x req %08x\n",

                __func__, env, n_IRQ, level,

                env->pending_interrupts, env->interrupt_request);

    }

#endif

}

void ppc_set_irq (CPUState *env, int n_IRQ, int level)

{

    if (level) {

        env->pending_interrupts |= 1 << n_IRQ;

        cpu_interrupt(env, CPU_INTERRUPT_HARD);

    } else {

        env->pending_interrupts &= ~(1 << n_IRQ);

        if (env->pending_interrupts == 0)

            cpu_reset_interrupt(env, CPU_INTERRUPT_HARD);

    }

#if defined(PPC_DEBUG_IRQ)

    if (loglevel & CPU_LOG_INT) {

        fprintf(logfile, "%s: %p n_IRQ %d level %d => pending %08x req %08x\n",

                __func__, env, n_IRQ, level,

                env->pending_interrupts, env->interrupt_request);

    }

#endif

}

void FUNC_0 (CPUState *VAR_0, int VAR_1, int VAR_2)

{

    if (VAR_2) {

        VAR_0->pending_interrupts |= 1 << VAR_1;

        cpu_interrupt(VAR_0, CPU_INTERRUPT_HARD);

    } else {

        VAR_0->pending_interrupts &= ~(1 << VAR_1);

        if (VAR_0->pending_interrupts == 0)

            cpu_reset_interrupt(VAR_0, CPU_INTERRUPT_HARD);

    }

#if defined(PPC_DEBUG_IRQ)

    if (loglevel & CPU_LOG_INT) {

        fprintf(logfile, "%s: %p VAR_1 %d VAR_2 %d => pending %08x req %08x\n",

                __func__, VAR_0, VAR_1, VAR_2,

                VAR_0->pending_interrupts, VAR_0->interrupt_request);

    }

#endif

}

void FUNC_0 (CPUState *VAR_0, int VAR_1, int VAR_2)
{ if (VAR_2) { VAR_0->pending_interrupts |= 1 << VAR_1; cpu_interrupt(VAR_0, CPU_INTERRUPT_HARD); } else { VAR_0->pending_interrupts &= ~(1 << VAR_1); if (VAR_0->pending_interrupts == 0)
cpu_reset_interrupt(VAR_0, CPU_INTERRUPT_HARD); } #if defined(PPC_DEBUG_IRQ)
if (loglevel & CPU_LOG_INT) { fprintf(logfile, "%s: %p VAR_1 %d VAR_2 %d => pending %08x req %08x\n",
__func__, VAR_0, VAR_1, VAR_2,
VAR_0->pending_interrupts, VAR_0->interrupt_request); } #endif
}