[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 15/27] tcg: Change default temp lifetime to TEMP_TB
From: |
Richard Henderson |
Subject: |
[PATCH 15/27] tcg: Change default temp lifetime to TEMP_TB |
Date: |
Mon, 30 Jan 2023 10:59:23 -1000 |
Guest front-ends now get temps that span the lifetime of
the translation block by default, which avoids accidentally
using the temp across branches and invalidating the data.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
include/tcg/tcg.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h
index 0a3d14ce66..a6512ac53e 100644
--- a/include/tcg/tcg.h
+++ b/include/tcg/tcg.h
@@ -899,7 +899,7 @@ static inline TCGv_i32 tcg_temp_ebb_new_i32(void)
static inline TCGv_i32 tcg_temp_new_i32(void)
{
- TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I32, TEMP_EBB);
+ TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I32, TEMP_TB);
return temp_tcgv_i32(t);
}
@@ -925,7 +925,7 @@ static inline TCGv_i64 tcg_temp_ebb_new_i64(void)
static inline TCGv_i64 tcg_temp_new_i64(void)
{
- TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I64, TEMP_EBB);
+ TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I64, TEMP_TB);
return temp_tcgv_i64(t);
}
@@ -944,7 +944,7 @@ static inline TCGv_i128 tcg_temp_ebb_new_i128(void)
static inline TCGv_i128 tcg_temp_new_i128(void)
{
- TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I128, TEMP_EBB);
+ TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I128, TEMP_TB);
return temp_tcgv_i128(t);
}
@@ -970,7 +970,7 @@ static inline TCGv_ptr tcg_temp_ebb_new_ptr(void)
static inline TCGv_ptr tcg_temp_new_ptr(void)
{
- TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_PTR, TEMP_EBB);
+ TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_PTR, TEMP_TB);
return temp_tcgv_ptr(t);
}
--
2.34.1
- [PATCH 06/27] tcg: Add liveness_pass_0, (continued)
- [PATCH 06/27] tcg: Add liveness_pass_0, Richard Henderson, 2023/01/30
- [PATCH 08/27] tcg: Pass TCGTempKind to tcg_temp_new_internal, Richard Henderson, 2023/01/30
- [PATCH 09/27] tcg: Add tcg_temp_ebb_new_{i32,i64,ptr}, Richard Henderson, 2023/01/30
- [PATCH 04/27] tcg: Remove branch-to-next regardless of reference count, Richard Henderson, 2023/01/30
- [PATCH 10/27] tcg: Add tcg_gen_movi_ptr, Richard Henderson, 2023/01/30
- [PATCH 07/27] tcg: Remove TEMP_NORMAL, Richard Henderson, 2023/01/30
- [PATCH 16/27] target/arm: Drop copies in gen_sve_{ldr,str}, Richard Henderson, 2023/01/30
- [PATCH 15/27] tcg: Change default temp lifetime to TEMP_TB,
Richard Henderson <=
- [PATCH 13/27] accel/tcg/plugin: Tidy plugin_gen_disable_mem_helpers, Richard Henderson, 2023/01/30
- [PATCH 11/27] tcg: Use tcg_temp_ebb_new_* in tcg/, Richard Henderson, 2023/01/30
- [PATCH 14/27] tcg: Don't re-use TEMP_TB temporaries, Richard Henderson, 2023/01/30
- [PATCH 19/27] target/hexagon: Don't use tcg_temp_local_new_*, Richard Henderson, 2023/01/30
- [PATCH 21/27] target/i386: Don't use tcg_temp_local_new, Richard Henderson, 2023/01/30
- [PATCH 22/27] target/mips: Don't use tcg_temp_local_new, Richard Henderson, 2023/01/30