[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 05/34] tcg: Fix tcg_reg_alloc_dup*
From: |
Richard Henderson |
Subject: |
[PATCH v3 05/34] tcg: Fix tcg_reg_alloc_dup* |
Date: |
Thu, 1 Dec 2022 21:39:29 -0800 |
The assignment to mem_coherent should be done with any
modification, not simply with a newly allocated register.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
tcg/tcg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tcg/tcg.c b/tcg/tcg.c
index db64799e03..d1e91b8acc 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -3515,7 +3515,6 @@ static void tcg_reg_alloc_dup(TCGContext *s, const TCGOp
*op)
ots->reg = tcg_reg_alloc(s, dup_out_regs, allocated_regs,
op->output_pref[0], ots->indirect_base);
ots->val_type = TEMP_VAL_REG;
- ots->mem_coherent = 0;
s->reg_to_temp[ots->reg] = ots;
}
@@ -3569,6 +3568,7 @@ static void tcg_reg_alloc_dup(TCGContext *s, const TCGOp
*op)
tcg_debug_assert(ok);
done:
+ ots->mem_coherent = 0;
if (IS_DEAD_ARG(1)) {
temp_dead(s, its);
}
@@ -3799,7 +3799,6 @@ static bool tcg_reg_alloc_dup2(TCGContext *s, const TCGOp
*op)
ots->reg = tcg_reg_alloc(s, dup_out_regs, allocated_regs,
op->output_pref[0], ots->indirect_base);
ots->val_type = TEMP_VAL_REG;
- ots->mem_coherent = 0;
s->reg_to_temp[ots->reg] = ots;
}
@@ -3843,6 +3842,7 @@ static bool tcg_reg_alloc_dup2(TCGContext *s, const TCGOp
*op)
return false;
done:
+ ots->mem_coherent = 0;
if (IS_DEAD_ARG(1)) {
temp_dead(s, itsl);
}
--
2.34.1
- [PATCH for-8.0 v3 00/34] tcg misc patches, Richard Henderson, 2022/12/02
- [PATCH v3 02/34] meson: Move CONFIG_TCG_INTERPRETER to config_host, Richard Henderson, 2022/12/02
- [PATCH v3 03/34] tcg/s390x: Fix coding style, Richard Henderson, 2022/12/02
- [PATCH v3 04/34] tcg: Cleanup trailing whitespace, Richard Henderson, 2022/12/02
- [PATCH v3 05/34] tcg: Fix tcg_reg_alloc_dup*,
Richard Henderson <=
- [PATCH v3 06/34] tcg: Centralize updates to reg_to_temp, Richard Henderson, 2022/12/02
- [PATCH v3 01/34] tcg: convert tcg/README to rst, Richard Henderson, 2022/12/02
- [PATCH v3 07/34] tcg: Remove check_regs, Richard Henderson, 2022/12/02
- [PATCH v3 10/34] tcg: Remove TCG_TARGET_STACK_GROWSUP, Richard Henderson, 2022/12/02
- [PATCH v3 09/34] tcg: Introduce paired register allocation, Richard Henderson, 2022/12/02
- [PATCH v3 11/34] accel/tcg: Set cflags_next_tb in cpu_common_initfn, Richard Henderson, 2022/12/02
- [PATCH v3 08/34] tcg: Tidy tcg_reg_alloc_op, Richard Henderson, 2022/12/02
- [PATCH v3 12/34] target/sparc: Avoid TCGV_{LOW,HIGH}, Richard Henderson, 2022/12/02
- [PATCH v3 13/34] tcg: Move TCG_{LOW,HIGH} to tcg-internal.h, Richard Henderson, 2022/12/02
- [PATCH v3 14/34] tcg: Add temp_subindex to TCGTemp, Richard Henderson, 2022/12/02