MIPS: Simplify DSP instruction encoding macros
authorJames Hogan <james.hogan@imgtec.com>
Fri, 20 May 2016 22:28:41 +0000 (23:28 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 28 May 2016 10:35:10 +0000 (12:35 +0200)
commit5aadab0c1a3451565dec3b02ebbe162854d39181
treecc5eae4abc73be41839b7a202d48932bb20cf79a
parentc84700cc575f4625e719817595b3df33c00307c7
MIPS: Simplify DSP instruction encoding macros

Simplify the DSP instruction wrapper macros which use explicit encodings
for microMIPS and normal MIPS by using the new encoding macros and
removing duplication.

To me this makes it easier to read since it is much shorter, but it also
ensures .insn is used, preventing objdump disassembling the microMIPS
code as normal MIPS.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/13314/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mipsregs.h