target/avr: Disable interrupts when env->skip set
commit36027c70974fef1392e6c73dfb94c3f94f0930bc
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 26 Aug 2022 20:53:32 +0000 (26 13:53 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 1 Sep 2022 05:42:21 +0000 (1 06:42 +0100)
tree70f4dd74f40b820a8f12c9add46c8634bd15cbe0
parentcecaad540155927f2faf1b6897c72cc59074cb45
target/avr: Disable interrupts when env->skip set

This bit is not saved across interrupts, so we must
delay delivering the interrupt until the skip has
been processed.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1118
Reviewed-by: Michael Rolnik <mrolnik@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/avr/helper.c
target/avr/translate.c