qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: qemu-devel@nongnu.org
Cc: "Philippe Mathieu-Daudé" <philmd@linaro.org>
Subject: [PATCH v2 25/28] exec/gen-icount: Don't use tcg_temp_local_new_i32
Date: Wed, 22 Feb 2023 13:27:12 -1000	[thread overview]
Message-ID: <20230222232715.15034-26-richard.henderson@linaro.org> (raw)
In-Reply-To: <20230222232715.15034-1-richard.henderson@linaro.org>

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>
---
 include/exec/gen-icount.h | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/include/exec/gen-icount.h b/include/exec/gen-icount.h
index c57204ddad..21a1bff8b7 100644
--- a/include/exec/gen-icount.h
+++ b/include/exec/gen-icount.h
@@ -19,13 +19,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) -
-- 
2.34.1



  parent reply	other threads:[~2023-02-22 23:30 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-22 23:26 [PATCH v2 00/28] tcg: Simplify temporary usage Richard Henderson
2023-02-22 23:26 ` [PATCH v2 01/28] tcg: Adjust TCGContext.temps_in_use check Richard Henderson
2023-02-22 23:26 ` [PATCH v2 02/28] accel/tcg: Pass max_insn to gen_intermediate_code by pointer Richard Henderson
2023-02-22 23:26 ` [PATCH v2 03/28] accel/tcg: Use more accurate max_insns for tb_overflow Richard Henderson
2023-02-24  8:07   ` Philippe Mathieu-Daudé
2023-02-22 23:26 ` [PATCH v2 04/28] tcg: Remove branch-to-next regardless of reference count Richard Henderson
2023-02-24  8:10   ` Philippe Mathieu-Daudé
2023-02-22 23:26 ` [PATCH v2 05/28] tcg: Rename TEMP_LOCAL to TEMP_TB Richard Henderson
2023-02-22 23:26 ` [PATCH v2 06/28] tcg: Add liveness_pass_0 Richard Henderson
2023-02-22 23:26 ` [PATCH v2 07/28] tcg: Remove TEMP_NORMAL Richard Henderson
2023-02-22 23:26 ` [PATCH v2 08/28] tcg: Pass TCGTempKind to tcg_temp_new_internal Richard Henderson
2023-02-22 23:26 ` [PATCH v2 09/28] tcg: Add tcg_temp_ebb_new_{i32,i64,ptr} Richard Henderson
2023-02-22 23:26 ` [PATCH v2 10/28] tcg: Add tcg_gen_movi_ptr Richard Henderson
2023-02-22 23:26 ` [PATCH v2 11/28] tcg: Use tcg_temp_ebb_new_* in tcg/ Richard Henderson
2023-02-22 23:26 ` [PATCH v2 12/28] accel/tcg/plugin: Use tcg_temp_ebb_* Richard Henderson
2023-02-22 23:27 ` [PATCH v2 13/28] accel/tcg/plugin: Tidy plugin_gen_disable_mem_helpers Richard Henderson
2023-02-22 23:27 ` [PATCH v2 14/28] tcg: Don't re-use TEMP_TB temporaries Richard Henderson
2023-02-22 23:27 ` [PATCH v2 15/28] tcg: Change default temp lifetime to TEMP_TB Richard Henderson
2023-02-22 23:27 ` [PATCH v2 16/28] target/arm: Drop copies in gen_sve_{ldr,str} Richard Henderson
2023-02-23 17:31   ` Peter Maydell
2023-02-22 23:27 ` [PATCH v2 17/28] target/arm: Don't use tcg_temp_local_new_* Richard Henderson
2023-02-22 23:27 ` [PATCH v2 18/28] target/cris: Don't use tcg_temp_local_new Richard Henderson
2023-02-22 23:27 ` [PATCH v2 19/28] target/hexagon: Don't use tcg_temp_local_new_* Richard Henderson
2023-02-22 23:27 ` [PATCH v2 20/28] target/hppa: Don't use tcg_temp_local_new Richard Henderson
2023-02-22 23:27 ` [PATCH v2 21/28] target/i386: " Richard Henderson
2023-02-22 23:27 ` [PATCH v2 22/28] target/mips: " Richard Henderson
2023-02-22 23:27 ` [PATCH v2 23/28] target/ppc: " Richard Henderson
2023-02-22 23:27 ` [PATCH v2 24/28] target/xtensa: Don't use tcg_temp_local_new_* Richard Henderson
2023-02-22 23:27 ` Richard Henderson [this message]
2023-02-22 23:27 ` [PATCH v2 26/28] tcg: Remove tcg_temp_local_new_*, tcg_const_local_* Richard Henderson
2023-02-22 23:27 ` [PATCH v2 27/28] tcg: Update docs/devel/tcg-ops.rst for temporary changes Richard Henderson
2023-02-23 17:42   ` Peter Maydell
2023-02-22 23:27 ` [PATCH v2 28/28] tcg: Use noinline for major tcg_gen_code_subroutines Richard Henderson
2023-02-23 17:42   ` Peter Maydell
2023-02-24  8:05   ` Philippe Mathieu-Daudé

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230222232715.15034-26-richard.henderson@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).