From nobody Tue Feb 10 13:34:00 2026 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 41D161FCFFE; Sat, 21 Dec 2024 14:44:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734792280; cv=none; b=etM0Zx395es56OVjmdcT/2oNDSHNjX/iSAcmjnIlhIueHEJaL5tjrpEJw4OWUKUaTQDwa9mBZr8kUYadBcQFIikXjWxM6NV0DRclcKEQrjVNCX+mHpodK2/KYnlLGmVY4lhCIe4WMeMBPnh0YryhfVEe7rNSiqO63nqwuom4rLc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734792280; c=relaxed/simple; bh=Hm4oTXMI/JqCrQxZ82g7s2Sg91ri2J6sCyZLkfUdK78=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lbkr3uIiX+iw0/CHh3osEPp6L+AE+p1zxvaXYKs6aFG2+T6iixZqE9nnTtxWdjBaXzdo/45iReQS4ZOo07i7AYC2JDuCaBGftiFNpQCtUR9HFqaOQIXpZxmwUWALBGLvEqH4/v+HFj09KTs2KwShRkbEJ3la//zZUdFDEiSJenk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=dKEk9Z+Q; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="dKEk9Z+Q" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1734792273; bh=Hm4oTXMI/JqCrQxZ82g7s2Sg91ri2J6sCyZLkfUdK78=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=dKEk9Z+QAHT8Hz68ebE73fh6OP1VsVSkZoMG9gFyUGKaoPwqHGvyYVwZZdefJXjvF FZCvx9Oe7hdaYT2k7v8hx9KpxCwBYt3j8h6P5xE9u10gQxU0fnHgAs1lWdrcSCsl3n pXYWNE/pfN0RpeuJv1jMA/yHSL4jWWUi4DyFf2qA= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Sat, 21 Dec 2024 15:44:33 +0100 Subject: [PATCH 6/6] selftests/nolibc: add configurations for riscv32 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241221-nolibc-rv32-v1-6-d9ef6dab7c63@weissschuh.net> References: <20241221-nolibc-rv32-v1-0-d9ef6dab7c63@weissschuh.net> In-Reply-To: <20241221-nolibc-rv32-v1-0-d9ef6dab7c63@weissschuh.net> To: Willy Tarreau , Shuah Khan , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, Zhangjin Wu , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1734792271; l=3163; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=Hm4oTXMI/JqCrQxZ82g7s2Sg91ri2J6sCyZLkfUdK78=; b=zwMCx/hbd+g6QvU5d3rTtD17U0JfAipHmn2dW/Jh+MHAqJ81F/tmth+3uyXgH+ojln3qSklsH M2bPfLGMhuxCpe4P9CWTCQ+Nz6+QzUNYQ+ZsMGl5em7AAPtW1OEcpP9 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= nolibc already supports riscv32. Wire it up in the testsuite. Signed-off-by: Thomas Wei=C3=9Fschuh Reviewed-by: Charlie Jenkins Tested-by: Charlie Jenkins --- tools/testing/selftests/nolibc/Makefile | 5 +++++ tools/testing/selftests/nolibc/run-tests.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selfte= sts/nolibc/Makefile index 78f47e85b389ac229ac13f3e7c8299fb3ec92197..7d14a7c0cb62608f328b2514952= 64517d333db2e 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -52,6 +52,7 @@ ARCH_ppc64 =3D powerpc ARCH_ppc64le =3D powerpc ARCH_mips32le =3D mips ARCH_mips32be =3D mips +ARCH_riscv32 =3D riscv ARCH_riscv64 =3D riscv ARCH :=3D $(or $(ARCH_$(XARCH)),$(XARCH)) =20 @@ -67,6 +68,7 @@ IMAGE_ppc =3D vmlinux IMAGE_ppc64 =3D vmlinux IMAGE_ppc64le =3D arch/powerpc/boot/zImage IMAGE_riscv =3D arch/riscv/boot/Image +IMAGE_riscv32 =3D arch/riscv/boot/Image IMAGE_riscv64 =3D arch/riscv/boot/Image IMAGE_s390 =3D arch/s390/boot/bzImage IMAGE_loongarch =3D arch/loongarch/boot/vmlinuz.efi @@ -85,6 +87,7 @@ DEFCONFIG_ppc =3D pmac32_defconfig DEFCONFIG_ppc64 =3D powernv_be_defconfig DEFCONFIG_ppc64le =3D powernv_defconfig DEFCONFIG_riscv =3D defconfig +DEFCONFIG_riscv32 =3D rv32_defconfig DEFCONFIG_riscv64 =3D defconfig DEFCONFIG_s390 =3D defconfig DEFCONFIG_loongarch =3D defconfig @@ -108,6 +111,7 @@ QEMU_ARCH_ppc =3D ppc QEMU_ARCH_ppc64 =3D ppc64 QEMU_ARCH_ppc64le =3D ppc64 QEMU_ARCH_riscv =3D riscv64 +QEMU_ARCH_riscv32 =3D riscv32 QEMU_ARCH_riscv64 =3D riscv64 QEMU_ARCH_s390 =3D s390x QEMU_ARCH_loongarch =3D loongarch64 @@ -135,6 +139,7 @@ QEMU_ARGS_ppc =3D -M g3beige -append "console=3D= ttyS0 panic=3D-1 $(TEST:%=3DNOLIB QEMU_ARGS_ppc64 =3D -M powernv -append "console=3Dhvc0 panic=3D-1 $(T= EST:%=3DNOLIBC_TEST=3D%)" QEMU_ARGS_ppc64le =3D -M powernv -append "console=3Dhvc0 panic=3D-1 $(T= EST:%=3DNOLIBC_TEST=3D%)" QEMU_ARGS_riscv =3D -M virt -append "console=3DttyS0 panic=3D-1 $(TES= T:%=3DNOLIBC_TEST=3D%)" +QEMU_ARGS_riscv32 =3D -M virt -append "console=3DttyS0 panic=3D-1 $(TES= T:%=3DNOLIBC_TEST=3D%)" QEMU_ARGS_riscv64 =3D -M virt -append "console=3DttyS0 panic=3D-1 $(TES= T:%=3DNOLIBC_TEST=3D%)" QEMU_ARGS_s390 =3D -M s390-ccw-virtio -append "console=3DttyS0 panic= =3D-1 $(TEST:%=3DNOLIBC_TEST=3D%)" QEMU_ARGS_loongarch =3D -M virt -append "console=3DttyS0,115200 panic=3D-= 1 $(TEST:%=3DNOLIBC_TEST=3D%)" diff --git a/tools/testing/selftests/nolibc/run-tests.sh b/tools/testing/se= lftests/nolibc/run-tests.sh index caa1ae40fe9a2faf8931c299aacd19716227e2b8..67fefc847d77165f817c3befa57= 8cfa27e6f93d8 100755 --- a/tools/testing/selftests/nolibc/run-tests.sh +++ b/tools/testing/selftests/nolibc/run-tests.sh @@ -17,7 +17,7 @@ perform_download=3D0 test_mode=3Dsystem werror=3D1 llvm=3D -archs=3D"i386 x86_64 arm64 arm mips32le mips32be ppc ppc64 ppc64le riscv64= s390 loongarch" +archs=3D"i386 x86_64 arm64 arm mips32le mips32be ppc ppc64 ppc64le riscv32= riscv64 s390 loongarch" =20 TEMP=3D$(getopt -o 'j:d:c:b:a:m:pelh' -n "$0" -- "$@") =20 --=20 2.47.1