diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-02-24 14:53:35 -1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-03-01 07:33:27 -1000 |
commit | d5c3c6f6f1c5318ef21a3c205687aeb5ade4e23d (patch) | |
tree | fdd2b11f381cf5944efbcc72150c251b1572e605 /include | |
parent | bbf989bf623fd4414969b1798f5cee1f02b80885 (diff) | |
download | qemu-d5c3c6f6f1c5318ef21a3c205687aeb5ade4e23d.zip qemu-d5c3c6f6f1c5318ef21a3c205687aeb5ade4e23d.tar.gz qemu-d5c3c6f6f1c5318ef21a3c205687aeb5ade4e23d.tar.bz2 |
tcg: Use tcg_constant_i32 in tcg_gen_io_start
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/exec/gen-icount.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/exec/gen-icount.h b/include/exec/gen-icount.h index 166170b..5b17941 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) |