summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorZhangjin Wu <falcon@tinylab.org>2023-08-06 02:43:53 +0800
committerWilly Tarreau <w@1wt.eu>2023-08-23 05:17:07 +0200
commit8a5040cb3f5ac3b1bea5aaa1150daf43b883f938 (patch)
tree50b4c4b984b722b76f739c1226abbd1d34fcd54c /samples
parent587e98459102448d77c6d06aaca88aa99d3b8279 (diff)
downloadlinux-stable-8a5040cb3f5ac3b1bea5aaa1150daf43b883f938.tar.gz
linux-stable-8a5040cb3f5ac3b1bea5aaa1150daf43b883f938.tar.bz2
linux-stable-8a5040cb3f5ac3b1bea5aaa1150daf43b883f938.zip
selftests/nolibc: add test support for ppc64le
Kernel uses ARCH=powerpc for both 32-bit and 64-bit PowerPC, here adds a ppc64le variant for little endian 64-bit PowerPC, users can pass XARCH=ppc64le to test it. The powernv machine of qemu-system-ppc64le is used for there is just a working powernv_defconfig. As the document [1] shows: PowerNV (as Non-Virtualized) is the “bare metal” platform using the OPAL firmware. It runs Linux on IBM and OpenPOWER systems and it can be used as an hypervisor OS, running KVM guests, or simply as a host OS. Notes, - since the VSX support may be disabled in kernel side, to avoid "illegal instruction" errors due to missing VSX kernel support, let's simply let compiler not generate vector/scalar (VSX) instructions via the '-mno-vsx' option. - little endian ppc64 prefers elfv2 to elfv1 if the toolchain (e.g. gcc 13.1.0) supports it, let's align with kernel, otherwise, our elfv1 binary will not run on kernel with elfv2 ABI. [1]: https://qemu.readthedocs.io/en/latest/system/ppc/powernv.html Suggested-by: Willy Tarreau <w@1wt.eu> Link: https://lore.kernel.org/lkml/20230722120747.GC17311@1wt.eu/ Reviewed-by: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Zhangjin Wu <falcon@tinylab.org> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions