From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Richard Henderson <richard.henderson@linaro.org>, qemu-devel@nongnu.org
Cc: alex.bennee@linaro.org, Thomas Huth <thuth@redhat.com>
Subject: Re: [PATCH v2 4/9] tcg/mips: Remove support for O32 and N32 ABIs
Date: Thu, 16 Oct 2025 07:54:56 +0200 [thread overview]
Message-ID: <14713a63-79f9-48f6-b9d6-d62c022fa7e3@linaro.org> (raw)
In-Reply-To: <20251015213843.14277-5-richard.henderson@linaro.org>
On 15/10/25 23:38, Richard Henderson wrote:
> From: Philippe Mathieu-Daudé <philmd@linaro.org>
>
> See previous commit for rationale.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> Reviewed-by: Thomas Huth <thuth@redhat.com>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> Message-ID: <20251009195210.33161-5-philmd@linaro.org>
> ---
> tcg/mips/tcg-target-reg-bits.h | 8 ++----
> common-user/host/mips/safe-syscall.inc.S | 35 ------------------------
> tcg/mips/tcg-target.c.inc | 14 ++--------
> 3 files changed, 6 insertions(+), 51 deletions(-)
Maybe squash here (improving comment if necessary):
-- >8 --
diff --git a/tcg/mips/tcg-target.c.inc b/tcg/mips/tcg-target.c.inc
index 43727512d46..fa4e4abcc17 100644
--- a/tcg/mips/tcg-target.c.inc
+++ b/tcg/mips/tcg-target.c.inc
@@ -959,17 +959,10 @@ static void tcg_out_call_int(TCGContext *s, const
tcg_insn_unit *arg, bool tail)
* Note that __mips_abicalls requires the called function's address
* to be loaded into $25 (t9), even if a direct branch is in range.
*
- * For n64, always drop the pointer into the constant pool.
- * We can re-use helper addresses often and do not want any
- * of the longer sequences tcg_out_movi may try.
+ * Always drop the pointer into the constant pool.
*/
- if (sizeof(uintptr_t) == 8) {
- tcg_out_movi_pool(s, TCG_REG_T9, (uintptr_t)arg, TCG_REG_TB);
- } else {
- tcg_out_movi(s, TCG_TYPE_PTR, TCG_REG_T9, (uintptr_t)arg);
- }
+ tcg_out_movi_pool(s, TCG_REG_T9, (uintptr_t)arg, TCG_REG_TB);
- /* But do try a direct branch, allowing the cpu better insn
prefetch. */
if (tail) {
if (!tcg_out_opc_jmp(s, OPC_J, arg)) {
tcg_out_opc_reg(s, OPC_JR, 0, TCG_REG_T9, 0);
---
Otherwise I can post as a following up cleanup patch.
next prev parent reply other threads:[~2025-10-16 5:55 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-15 21:38 [PATCH v2 0/9] tcg: Remove support for 32-bit mips/ppc hosts Richard Henderson
2025-10-15 21:38 ` [PATCH v2 1/9] gitlab: Stop cross-testing for 32-bit MIPS hosts Richard Henderson
2025-10-16 7:59 ` Daniel P. Berrangé
2025-10-16 20:49 ` Richard Henderson
2025-10-15 21:38 ` [PATCH v2 2/9] buildsys: Remove support " Richard Henderson
2025-10-15 21:38 ` [PATCH v2 3/9] kvm/mips: Remove support for 32-bit hosts Richard Henderson
2025-10-15 21:38 ` [PATCH v2 4/9] tcg/mips: Remove support for O32 and N32 ABIs Richard Henderson
2025-10-16 5:54 ` Philippe Mathieu-Daudé [this message]
2025-10-15 21:38 ` [PATCH v2 5/9] tcg/mips: Remove support for 32-bit hosts Richard Henderson
2025-10-15 21:38 ` [PATCH v2 6/9] tcg/mips: Remove ALIAS_PADD, ALIAS_PADDI Richard Henderson
2025-10-16 5:53 ` Philippe Mathieu-Daudé
2025-10-16 6:28 ` Thomas Huth
2025-10-15 21:38 ` [PATCH v2 7/9] buildsys: Remove support for 32-bit PPC hosts Richard Henderson
2025-10-16 6:30 ` Thomas Huth
2025-10-15 21:38 ` [PATCH v2 8/9] tcg/ppc: Remove support for 32-bit hosts Richard Henderson
2025-10-15 22:04 ` Richard Henderson
2025-10-15 21:38 ` [PATCH v2 9/9] tcg/ppc: Remove dead cases from tcg_target_op_def Richard Henderson
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=14713a63-79f9-48f6-b9d6-d62c022fa7e3@linaro.org \
--to=philmd@linaro.org \
--cc=alex.bennee@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=thuth@redhat.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).