mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-24 22:15:07 +00:00
Merge pull request #25 from MerryMage/add_reg_for_lit
target/arm: Introduce add_reg_for_lit (fixup)
This commit is contained in:
commit
8626c1c69c
|
@ -924,7 +924,6 @@ static bool trans_VLDR_VSTR_sp(DisasContext *s, arg_VLDR_VSTR_sp *a)
|
||||||
|
|
||||||
/* For thumb, use of PC is UNPREDICTABLE. */
|
/* For thumb, use of PC is UNPREDICTABLE. */
|
||||||
addr = add_reg_for_lit(s, a->rn, offset);
|
addr = add_reg_for_lit(s, a->rn, offset);
|
||||||
tcg_gen_addi_i32(tcg_ctx, addr, addr, offset);
|
|
||||||
tmp = tcg_temp_new_i32(tcg_ctx);
|
tmp = tcg_temp_new_i32(tcg_ctx);
|
||||||
if (a->l) {
|
if (a->l) {
|
||||||
gen_aa32_ld32u(s, tmp, addr, get_mem_index(s));
|
gen_aa32_ld32u(s, tmp, addr, get_mem_index(s));
|
||||||
|
@ -967,7 +966,6 @@ static bool trans_VLDR_VSTR_dp(DisasContext *s, arg_VLDR_VSTR_dp *a)
|
||||||
|
|
||||||
/* For thumb, use of PC is UNPREDICTABLE. */
|
/* For thumb, use of PC is UNPREDICTABLE. */
|
||||||
addr = add_reg_for_lit(s, a->rn, offset);
|
addr = add_reg_for_lit(s, a->rn, offset);
|
||||||
tcg_gen_addi_i32(tcg_ctx, addr, addr, offset);
|
|
||||||
tmp = tcg_temp_new_i64(tcg_ctx);
|
tmp = tcg_temp_new_i64(tcg_ctx);
|
||||||
if (a->l) {
|
if (a->l) {
|
||||||
gen_aa32_ld64(s, tmp, addr, get_mem_index(s));
|
gen_aa32_ld64(s, tmp, addr, get_mem_index(s));
|
||||||
|
|
Loading…
Reference in a new issue