mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
target-microblaze: Don't clobber the IMM reg for ld/st reversed
Do not clobber the IMM register on reversed load/stores. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
parent
5153bb897a
commit
df1e528aad
1 changed files with 0 additions and 2 deletions
|
@ -952,7 +952,6 @@ static void dec_load(DisasContext *dc)
|
||||||
tcg_gen_sub_tl(low, tcg_const_tl(3), low);
|
tcg_gen_sub_tl(low, tcg_const_tl(3), low);
|
||||||
tcg_gen_andi_tl(t, t, ~3);
|
tcg_gen_andi_tl(t, t, ~3);
|
||||||
tcg_gen_or_tl(t, t, low);
|
tcg_gen_or_tl(t, t, low);
|
||||||
tcg_gen_mov_tl(env_imm, t);
|
|
||||||
tcg_temp_free(low);
|
tcg_temp_free(low);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1104,7 +1103,6 @@ static void dec_store(DisasContext *dc)
|
||||||
tcg_gen_sub_tl(low, tcg_const_tl(3), low);
|
tcg_gen_sub_tl(low, tcg_const_tl(3), low);
|
||||||
tcg_gen_andi_tl(t, t, ~3);
|
tcg_gen_andi_tl(t, t, ~3);
|
||||||
tcg_gen_or_tl(t, t, low);
|
tcg_gen_or_tl(t, t, low);
|
||||||
tcg_gen_mov_tl(env_imm, t);
|
|
||||||
tcg_temp_free(low);
|
tcg_temp_free(low);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue