OSDN Git Service

powerpc: Use a function for byte swapping instructions
authorJordan Niethe <jniethe5@gmail.com>
Wed, 6 May 2020 03:40:29 +0000 (13:40 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 May 2020 14:10:37 +0000 (00:10 +1000)
commitaabd2233b6aefeee6d7a2f667076d8346be1d30a
tree16af29fb1e8ce389f1fb220c3ff6845a15f65122
parent8094892d1aff14269d3b7bfcd8b941217eecd81f
powerpc: Use a function for byte swapping instructions

Use a function for byte swapping instructions in preparation of a more
complicated instruction type.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Balamuruhan S <bala24@linux.ibm.com>
Link: https://lore.kernel.org/r/20200506034050.24806-10-jniethe5@gmail.com
arch/powerpc/include/asm/inst.h
arch/powerpc/kernel/align.c