]> Git Repo - qemu.git/commitdiff
target/arm: use gen_goto_tb for ISB handling
authorAlex Bennée <[email protected]>
Mon, 17 Jul 2017 12:36:07 +0000 (13:36 +0100)
committerPeter Maydell <[email protected]>
Mon, 17 Jul 2017 12:36:07 +0000 (13:36 +0100)
While an ISB will ensure any raised IRQs happen on the next
instruction it doesn't cause any to get raised by itself. We can
therefore use a simple tb exit for ISB instructions and rely on the
exit_request check at the top of each TB to deal with exiting if
needed.

Signed-off-by: Alex Bennée <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-id: 20170713141928[email protected]
Signed-off-by: Peter Maydell <[email protected]>
target/arm/translate-a64.c
target/arm/translate.c

index 66139b60460b55f1c74fbc77793ae87aa954f41c..2ac565eb10b02fad47c48c0c03c366d0fcce35fc 100644 (file)
@@ -1393,7 +1393,7 @@ static void handle_sync(DisasContext *s, uint32_t insn,
          * a self-modified code correctly and also to take
          * any pending interrupts immediately.
          */
-        s->is_jmp = DISAS_UPDATE;
+        gen_goto_tb(s, 0, s->pc);
         return;
     default:
         unallocated_encoding(s);
index bbae519276dbda49b4e8db47a6e38e34f5edfaf5..75cdecacd76e901dc2dadeb91924f3726faee68c 100644 (file)
@@ -8169,7 +8169,7 @@ static void disas_arm_insn(DisasContext *s, unsigned int insn)
                  * self-modifying code correctly and also to take
                  * any pending interrupts immediately.
                  */
-                gen_lookup_tb(s);
+                gen_goto_tb(s, 0, s->pc & ~1);
                 return;
             default:
                 goto illegal_op;
@@ -10562,7 +10562,7 @@ static int disas_thumb2_insn(CPUARMState *env, DisasContext *s, uint16_t insn_hw
                              * and also to take any pending interrupts
                              * immediately.
                              */
-                            gen_lookup_tb(s);
+                            gen_goto_tb(s, 0, s->pc & ~1);
                             break;
                         default:
                             goto illegal_op;
This page took 0.061353 seconds and 4 git commands to generate.