mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
Revert part of 6692b04319
Committed by accident. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
e9a6625e8d
commit
d68592022b
1 changed files with 4 additions and 8 deletions
12
tcg/tcg.c
12
tcg/tcg.c
|
@ -1385,16 +1385,12 @@ static void temp_save(TCGContext *s, int temp, TCGRegSet allocated_regs)
|
||||||
ts->val_type = TEMP_VAL_MEM;
|
ts->val_type = TEMP_VAL_MEM;
|
||||||
break;
|
break;
|
||||||
case TEMP_VAL_CONST:
|
case TEMP_VAL_CONST:
|
||||||
|
reg = tcg_reg_alloc(s, tcg_target_available_regs[ts->type],
|
||||||
|
allocated_regs);
|
||||||
if (!ts->mem_allocated)
|
if (!ts->mem_allocated)
|
||||||
temp_allocate_frame(s, temp);
|
temp_allocate_frame(s, temp);
|
||||||
if (ts->type == TCG_TYPE_I32) {
|
tcg_out_movi(s, ts->type, reg, ts->val);
|
||||||
tcg_out_sti(s, ts->type, ts->val, ts->mem_reg, ts->mem_offset);
|
tcg_out_st(s, ts->type, reg, ts->mem_reg, ts->mem_offset);
|
||||||
} else {
|
|
||||||
reg = tcg_reg_alloc(s, tcg_target_available_regs[ts->type],
|
|
||||||
allocated_regs);
|
|
||||||
tcg_out_movi(s, ts->type, reg, ts->val);
|
|
||||||
tcg_out_st(s, ts->type, reg, ts->mem_reg, ts->mem_offset);
|
|
||||||
}
|
|
||||||
ts->val_type = TEMP_VAL_MEM;
|
ts->val_type = TEMP_VAL_MEM;
|
||||||
break;
|
break;
|
||||||
case TEMP_VAL_MEM:
|
case TEMP_VAL_MEM:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue