target/arm/translate: ensure gen_goto_tb sets exit flags

As the gen_goto_tb function can do both static and dynamic jumps it
should also set the is_jmp field. This matches the behaviour of the
a64 code.

Backports commit 4cae8f56fbab2798586576a56cc669f0127d04fb from qemu
This commit is contained in:
Alex Bennée 2018-03-03 22:37:22 -05:00 committed by Lioncash
parent bffa25cc07
commit 0f8d216d67
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -4267,6 +4267,10 @@ static void gen_goto_ptr(DisasContext *s)
tcg_temp_free(tcg_ctx, addr);
}
/* This will end the TB but doesn't guarantee we'll return to
* cpu_loop_exec. Any live exit_requests will be processed as we
* enter the next TB.
*/
static void gen_goto_tb(DisasContext *s, int n, target_ulong dest)
{
TCGContext *tcg_ctx = s->uc->tcg_ctx;
@ -4279,6 +4283,7 @@ static void gen_goto_tb(DisasContext *s, int n, target_ulong dest)
gen_set_pc_im(s, dest);
gen_goto_ptr(s);
}
s->is_jmp = DISAS_TB_JUMP;
}
static inline void gen_jmp(DisasContext *s, uint32_t dest)