mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06: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
1 changed files with 3 additions and 0 deletions
|
@ -1129,6 +1129,9 @@ static void cris_store_direct_jmp(DisasContext *dc)
|
||||||
{
|
{
|
||||||
/* Store the direct jmp state into the cpu-state. */
|
/* Store the direct jmp state into the cpu-state. */
|
||||||
if (dc->jmp == JMP_DIRECT || dc->jmp == JMP_DIRECT_CC) {
|
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);
|
tcg_gen_movi_tl(env_btarget, dc->jmp_pc);
|
||||||
dc->jmp = JMP_INDIRECT;
|
dc->jmp = JMP_INDIRECT;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue