[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 10/30] tcg: Use tcg_constant_i32 in tcg_gen_io_start
From: |
Richard Henderson |
Subject: |
[PATCH v3 10/30] tcg: Use tcg_constant_i32 in tcg_gen_io_start |
Date: |
Fri, 24 Feb 2023 22:59:25 -1000 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
include/exec/gen-icount.h | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/include/exec/gen-icount.h b/include/exec/gen-icount.h
index c57204ddad..4d8b1f9ae5 100644
--- a/include/exec/gen-icount.h
+++ b/include/exec/gen-icount.h
@@ -10,11 +10,9 @@ static TCGOp *icount_start_insn;
static inline void gen_io_start(void)
{
- TCGv_i32 tmp = tcg_const_i32(1);
- tcg_gen_st_i32(tmp, cpu_env,
+ tcg_gen_st_i32(tcg_constant_i32(1), cpu_env,
offsetof(ArchCPU, parent_obj.can_do_io) -
offsetof(ArchCPU, env));
- tcg_temp_free_i32(tmp);
}
static inline void gen_tb_start(const TranslationBlock *tb)
--
2.34.1
- [PATCH v3 00/30] tcg: Simplify temporary usage, Richard Henderson, 2023/02/25
- [PATCH v3 01/30] tcg: Adjust TCGContext.temps_in_use check, Richard Henderson, 2023/02/25
- [PATCH v3 02/30] accel/tcg: Pass max_insn to gen_intermediate_code by pointer, Richard Henderson, 2023/02/25
- [PATCH v3 04/30] tcg: Remove branch-to-next regardless of reference count, Richard Henderson, 2023/02/25
- [PATCH v3 03/30] accel/tcg: Use more accurate max_insns for tb_overflow, Richard Henderson, 2023/02/25
- [PATCH v3 05/30] tcg: Rename TEMP_LOCAL to TEMP_TB, Richard Henderson, 2023/02/25
- [PATCH v3 06/30] tcg: Use noinline for major tcg_gen_code subroutines, Richard Henderson, 2023/02/25
- [PATCH v3 07/30] tcg: Add liveness_pass_0, Richard Henderson, 2023/02/25
- [PATCH v3 08/30] tcg: Remove TEMP_NORMAL, Richard Henderson, 2023/02/25
- [PATCH v3 09/30] tcg: Pass TCGTempKind to tcg_temp_new_internal, Richard Henderson, 2023/02/25
- [PATCH v3 10/30] tcg: Use tcg_constant_i32 in tcg_gen_io_start,
Richard Henderson <=
- [PATCH v3 11/30] tcg: Add tcg_gen_movi_ptr, Richard Henderson, 2023/02/25
- [PATCH v3 14/30] tcg: Use tcg_constant_ptr in do_dup, Richard Henderson, 2023/02/25
- [PATCH v3 13/30] tcg: Use tcg_temp_ebb_new_* in tcg/, Richard Henderson, 2023/02/25
- [PATCH v3 19/30] target/arm: Drop copies in gen_sve_{ldr,str}, Richard Henderson, 2023/02/25
- [PATCH v3 15/30] accel/tcg/plugin: Use tcg_temp_ebb_*, Richard Henderson, 2023/02/25