[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT d685920] Revert part of6692b043198d58a12317009edb
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT d685920] Revert part of6692b043198d58a12317009edb98654c6839f043 |
Date: |
Wed, 30 Sep 2009 12:20:27 -0000 |
From: Aurelien Jarno <address@hidden>
Committed by accident.
Signed-off-by: Aurelien Jarno <address@hidden>
diff --git a/tcg/tcg.c b/tcg/tcg.c
index 73a649a..3d74809 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -1385,16 +1385,12 @@ static void temp_save(TCGContext *s, int temp,
TCGRegSet allocated_regs)
ts->val_type = TEMP_VAL_MEM;
break;
case TEMP_VAL_CONST:
+ reg = tcg_reg_alloc(s, tcg_target_available_regs[ts->type],
+ allocated_regs);
if (!ts->mem_allocated)
temp_allocate_frame(s, temp);
- if (ts->type == TCG_TYPE_I32) {
- tcg_out_sti(s, ts->type, ts->val, 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);
- }
+ 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;
break;
case TEMP_VAL_MEM:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT d685920] Revert part of6692b043198d58a12317009edb98654c6839f043,
Anthony Liguori <=