mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 11:39:53 +00:00
target/avr: Fix interrupt execution
Only one interrupt is in progress at the moment. It is only necessary to set to reset interrupt_request after all interrupts have been executed. Signed-off-by: Ivanov Arkasha <ivanovrkasha@gmail.com> Message-Id: <20210312164754.18437-1-arkaisp2021@gmail.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Michael Rolnik <mrolnik@gmail.com>
This commit is contained in:
parent
2e35dfb634
commit
56b90e60c4
@ -49,7 +49,9 @@ bool avr_cpu_exec_interrupt(CPUState *cs, int interrupt_request)
|
||||
cc->tcg_ops->do_interrupt(cs);
|
||||
|
||||
env->intsrc &= env->intsrc - 1; /* clear the interrupt */
|
||||
cs->interrupt_request &= ~CPU_INTERRUPT_HARD;
|
||||
if (!env->intsrc) {
|
||||
cs->interrupt_request &= ~CPU_INTERRUPT_HARD;
|
||||
}
|
||||
|
||||
ret = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user