[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 41/62] tcg: Use tcg_constant_i32 in tcg_gen_io_start
From: |
Richard Henderson |
Subject: |
[PULL 41/62] tcg: Use tcg_constant_i32 in tcg_gen_io_start |
Date: |
Tue, 28 Feb 2023 16:56:22 -1000 |
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
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 166170b08e..5b1794188f 100644
--- a/include/exec/gen-icount.h
+++ b/include/exec/gen-icount.h
@@ -9,11 +9,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
- [PULL 48/62] tcg: Don't re-use TEMP_TB temporaries, (continued)
- [PULL 48/62] tcg: Don't re-use TEMP_TB temporaries, Richard Henderson, 2023/02/28
- [PULL 40/62] tcg: Pass TCGTempKind to tcg_temp_new_internal, Richard Henderson, 2023/02/28
- [PULL 49/62] tcg: Change default temp lifetime to TEMP_TB, Richard Henderson, 2023/02/28
- [PULL 59/62] target/xtensa: Don't use tcg_temp_local_new_*, Richard Henderson, 2023/02/28
- [PULL 42/62] tcg: Add tcg_gen_movi_ptr, Richard Henderson, 2023/02/28
- [PULL 45/62] tcg: Use tcg_constant_ptr in do_dup, Richard Henderson, 2023/02/28
- [PULL 53/62] target/hexagon: Don't use tcg_temp_local_new_*, Richard Henderson, 2023/02/28
- [PULL 57/62] target/mips: Don't use tcg_temp_local_new, Richard Henderson, 2023/02/28
- [PULL 54/62] target/hexagon/idef-parser: Drop gen_tmp_local, Richard Henderson, 2023/02/28
- [PULL 61/62] tcg: Remove tcg_temp_local_new_*, tcg_const_local_*, Richard Henderson, 2023/02/28
- [PULL 41/62] tcg: Use tcg_constant_i32 in tcg_gen_io_start,
Richard Henderson <=
- [PULL 51/62] target/arm: Don't use tcg_temp_local_new_*, Richard Henderson, 2023/02/28
- [PULL 52/62] target/cris: Don't use tcg_temp_local_new, Richard Henderson, 2023/02/28
- [PULL 62/62] tcg: Update docs/devel/tcg-ops.rst for temporary changes, Richard Henderson, 2023/02/28