Skip to content

Commit 8a3a814

Browse files
committed
target/xtensa: drop gen_io_end call
Since commit ba3e792 ("icount: clean up cpu_can_io at the entry to the block") it has been unnecessary for target code to call gen_io_end() after an IO instruction in icount mode; it is sufficient to call gen_io_start() before it and to force the end of the TB. Remaining call in xtensa target translator is for the opcodes that may change IRQ state. All of them end current TB, so gen_io_end is not needed. Drop gen_io_end call from the xtensa target translator. Signed-off-by: Max Filippov <[email protected]> Reviewed-by: Peter Maydell <[email protected]>
1 parent 62ed68e commit 8a3a814

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

target/xtensa/translate.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -595,9 +595,6 @@ static int gen_postprocess(DisasContext *dc, int slot)
595595
gen_io_start();
596596
}
597597
gen_helper_check_interrupts(cpu_env);
598-
if (tb_cflags(dc->base.tb) & CF_USE_ICOUNT) {
599-
gen_io_end();
600-
}
601598
}
602599
#endif
603600
if (op_flags & XTENSA_OP_SYNC_REGISTER_WINDOW) {

0 commit comments

Comments
 (0)