From: Jakob Gruber Date: Tue, 31 Jul 2012 10:42:59 +0000 (+0200) Subject: interrupts: Do not clear raised bit twice X-Git-Tag: v1.0~40 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=a37330f6cc0d3e034b0f9158218ab9530aa56dfb;p=sx%2Fsimavr.git interrupts: Do not clear raised bit twice avr_regbit_clear is already called in avr_clear_interrupt. --- diff --git a/simavr/sim/sim_interrupts.c b/simavr/sim/sim_interrupts.c index a9606a0..e84bf7d 100644 --- a/simavr/sim/sim_interrupts.c +++ b/simavr/sim/sim_interrupts.c @@ -150,7 +150,6 @@ avr_clear_interrupt_if( { if (avr_regbit_get(avr, vector->raised)) { avr_clear_interrupt(avr, vector); - avr_regbit_clear(avr, vector->raised); return 1; } avr_regbit_setto(avr, vector->raised, old);