target/m68k: always call gen_exit_tb() after writes to SR
commitc7546abfaa1b1c2729eaddd41c6268a73cdae14f
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sat, 17 Sep 2022 11:25:15 +0000 (17 12:25 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 21 Sep 2022 13:10:57 +0000 (21 15:10 +0200)
tree8f20d53103e4802e4eceed82769803d32b622feb
parentaece90d85df4c33e413af6ba75964acb304945f5
target/m68k: always call gen_exit_tb() after writes to SR

Any write to SR can change the security state so always call gen_exit_tb() when
this occurs. In particular MacOS makes use of andiw/oriw in a few places to
handle the switch between user and supervisor mode.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220917112515.83905-5-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
target/m68k/translate.c