diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-01-29 14:47:48 -1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-03-01 07:33:28 -1000 |
commit | 383f50f7535a1c2798455bb7292fdc5c827ecb55 (patch) | |
tree | 6ad5df66e11bc48d82115e44056d050ea04b5b19 | |
parent | 177bbc81b51dc4d432a85c8356417d38913fd8ed (diff) | |
download | qemu-383f50f7535a1c2798455bb7292fdc5c827ecb55.zip qemu-383f50f7535a1c2798455bb7292fdc5c827ecb55.tar.gz qemu-383f50f7535a1c2798455bb7292fdc5c827ecb55.tar.bz2 |
exec/gen-icount: Don't use tcg_temp_local_new_i32
Since tcg_temp_new_i32 is now identical, use that.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r-- | include/exec/gen-icount.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/exec/gen-icount.h b/include/exec/gen-icount.h index 5b17941..aff35d6 100644 --- a/include/exec/gen-icount.h +++ b/include/exec/gen-icount.h @@ -16,13 +16,7 @@ static inline void gen_io_start(void) static inline void gen_tb_start(const TranslationBlock *tb) { - TCGv_i32 count; - - if (tb_cflags(tb) & CF_USE_ICOUNT) { - count = tcg_temp_local_new_i32(); - } else { - count = tcg_temp_new_i32(); - } + TCGv_i32 count = tcg_temp_new_i32(); tcg_gen_ld_i32(count, cpu_env, offsetof(ArchCPU, neg.icount_decr.u32) - |