]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
target/xtensa: drop gen_io_end call
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 22 Jun 2020 05:26:50 +0000 (22:26 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 22 Jun 2020 10:38:30 +0000 (03:38 -0700)
Since commit
ba3e7926691e ("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 <jcmvbkbc@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
target/xtensa/translate.c

index 4bc15252c8a53d94ecd655c99c382cb110393219..6346b2eef014376160f6082a38abcd85a253e60d 100644 (file)
@@ -595,9 +595,6 @@ static int gen_postprocess(DisasContext *dc, int slot)
             gen_io_start();
         }
         gen_helper_check_interrupts(cpu_env);
-        if (tb_cflags(dc->base.tb) & CF_USE_ICOUNT) {
-            gen_io_end();
-        }
     }
 #endif
     if (op_flags & XTENSA_OP_SYNC_REGISTER_WINDOW) {