]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit738ff03518ba0ba211ba3661b0351e996a4a438b
treecc5eae4abc73be41839b7a202d48932bb20cf79a
parent28a20f24c33c6128932dc2fb6e3b0ba33f1fc407
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