[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 11/51] tcg: Change temp_allocate_frame arg to TCGTemp
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PULL 11/51] tcg: Change temp_allocate_frame arg to TCGTemp |
Date: |
Wed, 25 Oct 2017 11:34:55 +0200 |
From: Richard Henderson <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Emilio G. Cota <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
tcg/tcg.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/tcg/tcg.c b/tcg/tcg.c
index 840e65c0d4..c10e73babe 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -2096,10 +2096,8 @@ static void check_regs(TCGContext *s)
}
#endif
-static void temp_allocate_frame(TCGContext *s, int temp)
+static void temp_allocate_frame(TCGContext *s, TCGTemp *ts)
{
- TCGTemp *ts;
- ts = &s->temps[temp];
#if !(defined(__sparc__) && TCG_TARGET_REG_BITS == 64)
/* Sparc64 stack is accessed with offset of 2047 */
s->current_frame_offset = (s->current_frame_offset +
@@ -2152,7 +2150,7 @@ static void temp_sync(TCGContext *s, TCGTemp *ts,
}
if (!ts->mem_coherent) {
if (!ts->mem_allocated) {
- temp_allocate_frame(s, temp_idx(s, ts));
+ temp_allocate_frame(s, ts);
}
switch (ts->val_type) {
case TEMP_VAL_CONST:
@@ -2382,7 +2380,7 @@ static void tcg_reg_alloc_mov(TCGContext *s, const TCGOp
*op)
liveness analysis disabled). */
tcg_debug_assert(NEED_SYNC_ARG(0));
if (!ots->mem_allocated) {
- temp_allocate_frame(s, op->args[0]);
+ temp_allocate_frame(s, ots);
}
tcg_out_st(s, otype, ts->reg, ots->mem_base->reg, ots->mem_offset);
if (IS_DEAD_ARG(1)) {
--
2.13.6
- [Qemu-devel] [PULL 00/51] tcg queued patches, Richard Henderson, 2017/10/25
- [Qemu-devel] [PULL 01/51] tcg: Merge opcode arguments into TCGOp, Richard Henderson, 2017/10/25
- [Qemu-devel] [PULL 03/51] tcg: Propagate args to op->args in tcg.c, Richard Henderson, 2017/10/25
- [Qemu-devel] [PULL 06/51] tcg: Add temp_global bit to TCGTemp, Richard Henderson, 2017/10/25
- [Qemu-devel] [PULL 04/51] tcg: Propagate TCGOp down to allocators, Richard Henderson, 2017/10/25
- [Qemu-devel] [PULL 05/51] tcg: Introduce arg_temp, Richard Henderson, 2017/10/25
- [Qemu-devel] [PULL 02/51] tcg: Propagate args to op->args in optimizer, Richard Henderson, 2017/10/25
- [Qemu-devel] [PULL 07/51] tcg: Return NULL temp for TCG_CALL_DUMMY_ARG, Richard Henderson, 2017/10/25
- [Qemu-devel] [PULL 08/51] tcg: Introduce temp_arg, export temp_idx, Richard Henderson, 2017/10/25
- [Qemu-devel] [PULL 11/51] tcg: Change temp_allocate_frame arg to TCGTemp,
Richard Henderson <=
- [Qemu-devel] [PULL 09/51] tcg: Use per-temp state data in liveness, Richard Henderson, 2017/10/25
- [Qemu-devel] [PULL 10/51] tcg: Avoid loops against variable bounds, Richard Henderson, 2017/10/25
- [Qemu-devel] [PULL 12/51] tcg: Remove unused TCG_CALL_DUMMY_TCGV, Richard Henderson, 2017/10/25
- [Qemu-devel] [PULL 15/51] tcg: Push tcg_ctx into tcg_gen_callN, Richard Henderson, 2017/10/25
- [Qemu-devel] [PULL 14/51] tcg: Push tcg_ctx into generator functions, Richard Henderson, 2017/10/25
- [Qemu-devel] [PULL 13/51] tcg: Use per-temp state data in optimize, Richard Henderson, 2017/10/25
- [Qemu-devel] [PULL 18/51] tcg: Remove GET_TCGV_* and MAKE_TCGV_*, Richard Henderson, 2017/10/25
- [Qemu-devel] [PULL 21/51] tcg: Use offsets not indices for TCGv_*, Richard Henderson, 2017/10/25
- [Qemu-devel] [PULL 17/51] tcg: Introduce temp_tcgv_{i32,i64,ptr}, Richard Henderson, 2017/10/25
- [Qemu-devel] [PULL 24/51] tcg: Include CF_COUNT_MASK in CF_HASH_MASK, Richard Henderson, 2017/10/25