sst-linux/arch/powerpc/kernel/trace
Nicholas Piggin 9eb76d5168 powerpc/64: Add support to build with prefixed instructions
[ Upstream commit dc5dac748af9087e9240bd2ae6ae7db48d5360ae ]

Add an option to build kernel and module with prefixed instructions if
the CPU and toolchain support it.

This is not related to kernel support for userspace execution of
prefixed instructions.

Building with prefixed instructions breaks some extended inline asm
memory addressing, for example it will provide immediates that exceed
the range of simple load/store displacement. Whether this is a
toolchain or a kernel asm problem remains to be seen. For now, these
are replaced with simpler and less efficient direct register addressing
when compiling with prefixed.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230408021752.862660-4-npiggin@gmail.com
Stable-dep-of: 39190ac7cff1 ("powerpc/atomic: Use YZ constraints for DS-form instructions")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-10-17 15:21:24 +02:00
..
ftrace_64_pg.S
ftrace_low.S
ftrace_mprofile.S
ftrace.c powerpc/64: Add support to build with prefixed instructions 2024-10-17 15:21:24 +02:00
Makefile
trace_clock.c