[PATCH] powerpc: Fix instruction encoding for lis in ppc_function_entry()

Segher Boessenkool segher at kernel.crashing.org
Sat Mar 6 05:41:25 AEDT 2021


On Thu, Mar 04, 2021 at 07:34:11AM +0530, Naveen N. Rao wrote:
> 'lis r2,N' is 'addis r2,0,N' and the instruction encoding in the macro
> LIS_R2 is incorrect (it currently maps to 'addis 0,r2,N'). Fix the same.

That is written "addis r0,r2,N" even.  Your patch looks fine otherwise,
so with that fix:

Acked-by: Segher Boessenkool <segher at kernel.crashing.org>


Segher


More information about the Linuxppc-dev mailing list