mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 03:13:44 +08:00
cris: Set btaken when storing direct jumps
When storing a direct jmp from translation state into runtime state we should set the btaken flag. Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
This commit is contained in:
parent
facf1a60f2
commit
d03d11260e
@ -1129,6 +1129,9 @@ static void cris_store_direct_jmp(DisasContext *dc)
|
||||
{
|
||||
/* Store the direct jmp state into the cpu-state. */
|
||||
if (dc->jmp == JMP_DIRECT || dc->jmp == JMP_DIRECT_CC) {
|
||||
if (dc->jmp == JMP_DIRECT) {
|
||||
tcg_gen_movi_tl(env_btaken, 1);
|
||||
}
|
||||
tcg_gen_movi_tl(env_btarget, dc->jmp_pc);
|
||||
dc->jmp = JMP_INDIRECT;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user