From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: qemu-devel@nongnu.org
Cc: "Anton Johansson" <anjo@rev.ng>,
"Pierrick Bouvier" <pierrick.bouvier@linaro.org>,
"Yoshinori Sato" <yoshinori.sato@nifty.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>
Subject: [PATCH 6/6] target/sh4: Remove target_ulong use in gen_goto_tb()
Date: Wed, 8 Oct 2025 08:48:13 +0200 [thread overview]
Message-ID: <20251008064814.90520-7-philmd@linaro.org> (raw)
In-Reply-To: <20251008064814.90520-1-philmd@linaro.org>
translator_use_goto_tb() expects a vaddr type since commit
b1c09220b4c ("accel/tcg: Replace target_ulong with vaddr in
translator_*()").
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/sh4/translate.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/target/sh4/translate.c b/target/sh4/translate.c
index 70fd13aa3f5..038c8e37063 100644
--- a/target/sh4/translate.c
+++ b/target/sh4/translate.c
@@ -223,7 +223,7 @@ static inline bool use_exit_tb(DisasContext *ctx)
return (ctx->tbflags & TB_FLAG_GUSA_EXCLUSIVE) != 0;
}
-static bool use_goto_tb(DisasContext *ctx, target_ulong dest)
+static bool use_goto_tb(DisasContext *ctx, vaddr dest)
{
if (use_exit_tb(ctx)) {
return false;
@@ -231,7 +231,7 @@ static bool use_goto_tb(DisasContext *ctx, target_ulong dest)
return translator_use_goto_tb(&ctx->base, dest);
}
-static void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest)
+static void gen_goto_tb(DisasContext *ctx, int n, vaddr dest)
{
if (use_goto_tb(ctx, dest)) {
tcg_gen_goto_tb(n);
@@ -267,7 +267,7 @@ static void gen_jump(DisasContext * ctx)
}
/* Immediate conditional jump (bt or bf) */
-static void gen_conditional_jump(DisasContext *ctx, target_ulong dest,
+static void gen_conditional_jump(DisasContext *ctx, vaddr dest,
bool jump_if_true)
{
TCGLabel *l1 = gen_new_label();
--
2.51.0
next prev parent reply other threads:[~2025-10-08 6:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-08 6:48 [PATCH 0/6] target/sh4: Remove all uses of target_ulong type Philippe Mathieu-Daudé
2025-10-08 6:48 ` [PATCH 1/6] target/sh4: Convert CPUSH4State::sr register to uint32_t type Philippe Mathieu-Daudé
2025-10-08 10:46 ` Anton Johansson via
2025-10-08 6:48 ` [PATCH 2/6] target/sh4: Remove target_ulong use in cpu_sh4_is_cached() Philippe Mathieu-Daudé
2025-10-08 10:48 ` Anton Johansson via
2025-10-08 6:48 ` [PATCH 3/6] target/sh4: Use hwaddr type for hardware addresses Philippe Mathieu-Daudé
2025-10-08 10:52 ` Anton Johansson via
2025-10-08 6:48 ` [PATCH 4/6] target/sh4: Remove target_ulong uses in superh_cpu_get_phys_page_debug Philippe Mathieu-Daudé
2025-10-08 10:57 ` Anton Johansson via
2025-10-08 6:48 ` [PATCH 5/6] target/sh4: Use vaddr type for TLB virtual addresses Philippe Mathieu-Daudé
2025-10-08 11:00 ` Anton Johansson via
2025-10-08 6:48 ` Philippe Mathieu-Daudé [this message]
2025-10-08 11:03 ` [PATCH 6/6] target/sh4: Remove target_ulong use in gen_goto_tb() Anton Johansson via
2025-10-15 17:15 ` [PATCH 0/6] target/sh4: Remove all uses of target_ulong type 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=20251008064814.90520-7-philmd@linaro.org \
--to=philmd@linaro.org \
--cc=anjo@rev.ng \
--cc=pierrick.bouvier@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=yoshinori.sato@nifty.com \
/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).