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
This commit is contained in:

committed by
Michael Ellerman

parent
8094892d1a
commit
aabd2233b6
@@ -310,7 +310,7 @@ int fix_alignment(struct pt_regs *regs)
|
||||
/* We don't handle PPC little-endian any more... */
|
||||
if (cpu_has_feature(CPU_FTR_PPC_LE))
|
||||
return -EIO;
|
||||
instr = swab32(instr);
|
||||
instr = ppc_inst_swab(instr);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SPE
|
||||
|
Reference in New Issue
Block a user