mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Willy Tarreau <w@1wt.eu>
To: "Thomas Weißschuh" <linux@weissschuh.net>
Cc: Shuah Khan <shuah@kernel.org>,
	linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] selftests/nolibc: always build sparc32 tests with -mcpu=v8
Date: Tue, 6 Jan 2026 12:05:31 +0100	[thread overview]
Message-ID: <aVzse_i9tuFOiUO7@1wt.eu> (raw)
In-Reply-To: <20260106-nolibc-sparc32-fix-v2-1-7c5cd6b175c2@weissschuh.net>

On Tue, Jan 06, 2026 at 11:39:55AM +0100, Thomas Weißschuh wrote:
> Since LLVM commit 39e30508a7f6 ("[Driver][Sparc] Default to -mcpu=v9 for
> 32-bit Linux/sparc64 (#109278)"), clang defaults to -mcpu=v9 for 32-bit
> SPARC builds. -mcpu=v9 generates instructions which are not recognized
> by qemu-sparc and qemu-system-sparc.
> 
> Explicitly enforce -mcpu=v8 to generate compatible code.
> 
> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
> ---
> Changes in v2:
> - Use -mcpu=v8
> - Link to v1: https://patch.msgid.link/20260104-nolibc-sparc32-fix-v1-1-e341b06cbdb7@weissschuh.net
> ---
>  tools/testing/selftests/nolibc/Makefile.nolibc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/testing/selftests/nolibc/Makefile.nolibc b/tools/testing/selftests/nolibc/Makefile.nolibc
> index b17ba2f8fb46..f5704193038f 100644
> --- a/tools/testing/selftests/nolibc/Makefile.nolibc
> +++ b/tools/testing/selftests/nolibc/Makefile.nolibc
> @@ -226,7 +226,7 @@ CFLAGS_mipsn32be = -EB -mabi=n32 -march=mips64r6
>  CFLAGS_mips64le = -EL -mabi=64 -march=mips64r6
>  CFLAGS_mips64be = -EB -mabi=64 -march=mips64r2
>  CFLAGS_loongarch = $(if $(LLVM),-fuse-ld=lld)
> -CFLAGS_sparc32 = $(call cc-option,-m32)
> +CFLAGS_sparc32 = $(call cc-option,-m32) -mcpu=v8
>  CFLAGS_sh4 = -ml -m4
>  ifeq ($(origin XARCH),command line)
>  CFLAGS_XARCH = $(CFLAGS_$(XARCH))

Thank you Thomas!

Acked-by: Willy Tarreau <w@1wt.eu>

willy

      reply	other threads:[~2026-01-06 11:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-06 10:39 Thomas Weißschuh
2026-01-06 11:05 ` Willy Tarreau [this message]

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=aVzse_i9tuFOiUO7@1wt.eu \
    --to=w@1wt.eu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux@weissschuh.net \
    --cc=shuah@kernel.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

all inboxes | Powered by JetHome®