mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-11 04:45:31 +00:00
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:
parent
bffa25cc07
commit
0f8d216d67
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue