From d5c3c6f6f1c5318ef21a3c205687aeb5ade4e23d Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 24 Feb 2023 14:53:35 -1000 Subject: [PATCH] tcg: Use tcg_constant_i32 in tcg_gen_io_start MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Daniel Henrique Barboza Signed-off-by: Richard Henderson --- 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 166170b08eb..5b1794188fc 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.39.5