Re: [PATCH] selftests/nolibc: fix sparc32 tests with -mcpu=v9

From: Thomas Weißschuh

Date: Tue Jan 06 2026 - 06:47:58 EST


Hi Geert,

On 2026-01-06 12:40:12+0100, Geert Uytterhoeven wrote:
> On Sun, 4 Jan 2026 at 23:14, Thomas Weißschuh <linux@xxxxxxxxxxxxxx> wrote:

(...)

> > --- a/tools/testing/selftests/nolibc/Makefile.nolibc
> > +++ b/tools/testing/selftests/nolibc/Makefile.nolibc
> > @@ -117,7 +117,7 @@ DEFCONFIG_riscv32 = rv32_defconfig
> > DEFCONFIG_riscv64 = defconfig
> > DEFCONFIG_s390x = defconfig
> > DEFCONFIG_loongarch = defconfig
> > -DEFCONFIG_sparc32 = sparc32_defconfig
> > +DEFCONFIG_sparc32 = sparc64_defconfig
>
> How can we test sparc32 using a 64-bit kernel?

CONFIG_COMPAT=y

Please note that this changed in (the now committed) v2 anyways:
https://lore.kernel.org/lkml/20260106-nolibc-sparc32-fix-v2-1-7c5cd6b175c2@xxxxxxxxxxxxxx/

> > DEFCONFIG_sparc64 = sparc64_defconfig
> > DEFCONFIG_m68k = virt_defconfig
> > DEFCONFIG_sh4 = rts7751r2dplus_defconfig

(...)


Thomas