static void openpic_set_irq(void *opaque, int n_IRQ, int level)

{

    OpenPICState *opp = opaque;

    IRQSource *src;



    src = &opp->src[n_IRQ];

    DPRINTF("openpic: set irq %d = %d ipvp=%08x\n",

            n_IRQ, level, src->ipvp);

    if (src->ipvp & IPVP_SENSE_MASK) {

        /* level-sensitive irq */

        src->pending = level;

        if (!level) {

            src->ipvp &= ~IPVP_ACTIVITY_MASK;

        }

    } else {

        /* edge-sensitive irq */

        if (level) {

            src->pending = 1;

        }

    }

    openpic_update_irq(opp, n_IRQ);

}

static void openpic_set_irq(void *opaque, int n_IRQ, int level)

{

    OpenPICState *opp = opaque;

    IRQSource *src;



    src = &opp->src[n_IRQ];

    DPRINTF("openpic: set irq %d = %d ipvp=%08x\n",

            n_IRQ, level, src->ipvp);

    if (src->ipvp & IPVP_SENSE_MASK) {

        

        src->pending = level;

        if (!level) {

            src->ipvp &= ~IPVP_ACTIVITY_MASK;

        }

    } else {

        

        if (level) {

            src->pending = 1;

        }

    }

    openpic_update_irq(opp, n_IRQ);

}

    DPRINTF("openpic: set irq %d = %d ipvp=%08x\n",
static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2)

{

    OpenPICState *opp = VAR_0;

    IRQSource *src;



    src = &opp->src[VAR_1];

    DPRINTF("openpic: set irq %d = %d ipvp=%08x\n",

            VAR_1, VAR_2, src->ipvp);

    if (src->ipvp & IPVP_SENSE_MASK) {

        

        src->pending = VAR_2;

        if (!VAR_2) {

            src->ipvp &= ~IPVP_ACTIVITY_MASK;

        }

    } else {

        

        if (VAR_2) {

            src->pending = 1;

        }

    }

    openpic_update_irq(opp, VAR_1);

}

static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2)
{ OpenPICState *opp = VAR_0; IRQSource *src; src = &opp->src[VAR_1]; DPRINTF("openpic: set irq %d = %d ipvp=%08x\n",
VAR_1, VAR_2, src->ipvp); if (src->ipvp & IPVP_SENSE_MASK) { src->pending = VAR_2; if (!VAR_2) { src->ipvp &= ~IPVP_ACTIVITY_MASK; } } else { if (VAR_2) { src->pending = 1; } } openpic_update_irq(opp, VAR_1); }