Files
u-boot/include
J. Neuschäfer 3e132bd724 powerpc: Introduce and enforce assembler checks on GPR usage
PowerPC general-purpose registers are historically specified as plain
numbers (0-31), which makes them hard to distinguish from immediates.
For this reason, include/ppc_asm.tmpl defines aliases named r0-r31.
This can still lead to uncaught mistakes if a register is used in place
of a number.

Instead of (e.g.) 5 use %r5, which will result in an assembler warning
if used as a number. Turn these warnings into errors by passing
`--fatal-warnings` to the assembler.

I verified with gazerbeam_defconfig (MPC83xx) and qemu-ppce500_defconfig
(MPC85xx) that this patch results in the same machine code.

Signed-off-by: J. Neuschäfer <j.ne@posteo.net>
(cherry picked from commit c3e425ead4)
2025-12-24 05:17:05 -07:00
..
2025-12-17 10:51:23 -07:00
2025-12-07 17:18:57 -07:00
2025-12-20 09:56:13 -07:00
2025-11-12 08:40:05 -07:00
2025-12-07 11:53:55 -07:00
2025-12-22 16:49:47 -07:00
2025-11-19 19:51:46 -07:00
2025-11-17 06:59:47 -07:00