From a37330f6cc0d3e034b0f9158218ab9530aa56dfb Mon Sep 17 00:00:00 2001 From: Jakob Gruber Date: Tue, 31 Jul 2012 12:42:59 +0200 Subject: [PATCH] interrupts: Do not clear raised bit twice avr_regbit_clear is already called in avr_clear_interrupt. --- simavr/sim/sim_interrupts.c | 1 - 1 file changed, 1 deletion(-) 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); -- 2.39.5