powerpc/ppc-opcode: Introduce PPC_RAW_* macros for base instruction encoding
authorBalamuruhan S <bala24@linux.ibm.com>
Wed, 24 Jun 2020 11:30:33 +0000 (17:00 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 16 Jul 2020 03:12:41 +0000 (13:12 +1000)
commitdb551f8cc6a33f79cd2d2a6cfd1903f044e828a8
tree2d9f50cdb59925d8fa3cc78cfa5c2ae351f5c364
parent792f73f747b82f6cb191a323e1f5755d33149b50
powerpc/ppc-opcode: Introduce PPC_RAW_* macros for base instruction encoding

Introduce PPC_RAW_* macros to have all the bare encoding of ppc
instructions. Move `VSX_XX*()` and `TMRN()` macros up to reuse it.

Signed-off-by: Balamuruhan S <bala24@linux.ibm.com>
Tested-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Acked-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
[mpe: Add DCBFPS, DCBSTPS, PHWSYNC, PLWSYNC]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200624113038.908074-2-bala24@linux.ibm.com
arch/powerpc/include/asm/ppc-opcode.h