From: Hollis Blanchard Date: Fri, 28 Mar 2008 02:49:38 +0000 Subject: [kvm-ppc-devel] [PATCH 2 of 4] [qemu ppc uic] Remove interrupt Message-Id: <86c8ce190142bc39927f.1206672578@basalt> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ppc@vger.kernel.org 1 file changed, 1 insertion(+), 5 deletions(-) qemu/hw/ppc4xx_devs.c | 6 +----- # HG changeset patch # User Hollis Blanchard # Date 1206672146 18000 # Branch merge # Node ID 86c8ce190142bc39927ffaf0cfd8773f04a35086 # Parent 70ac21ad91e107e5b58a7488f8f9a81a1acbda9f [qemu ppc uic] Remove interrupt polarity code. Interrupt polarity should have no functional effect, since qemu tracks logical IRQ state, not the electrical state of physical lines. Signed-off-by: Hollis Blanchard diff --git a/qemu/hw/ppc4xx_devs.c b/qemu/hw/ppc4xx_devs.c --- a/qemu/hw/ppc4xx_devs.c +++ b/qemu/hw/ppc4xx_devs.c @@ -377,10 +377,7 @@ static void ppcuic_set_irq (void *opaque if (irq_num < 0 || irq_num > 31) return; sr = uic->uicsr; - if (!(uic->uicpr & mask)) { - /* Negatively asserted IRQ */ - level = level = 0 ? 1 : 0; - } + /* Update status register */ if (uic->uictr & mask) { /* Edge sensitive interrupt */ @@ -479,7 +476,6 @@ static void dcr_write_uic (void *opaque, break; case DCR_UICPR: uic->uicpr = val; - ppcuic_trigger_irq(uic); break; case DCR_UICTR: uic->uictr = val; ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ kvm-ppc-devel mailing list kvm-ppc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel