]> git.baikalelectronics.ru Git - kernel.git/commitdiff
MIPS: Correctly define DBSHFL type instruction opcodes.
authorDavid Daney <david.daney@cavium.com>
Tue, 13 Jun 2017 22:28:44 +0000 (15:28 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 28 Jun 2017 10:22:38 +0000 (12:22 +0200)
DSHD was incorrectly classified as being BSHFL, and DSHD was missing
altogether.

Signed-off-by: David Daney <david.daney@cavium.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Matt Redfearn <matt.redfearn@imgtec.com>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/16366/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/uapi/asm/inst.h

index b5e46ae872d3b55214f16e1249a13a86387c7aca..e5f538584b8e11da169c18968ae40c9bd2780e4d 100644 (file)
@@ -276,11 +276,18 @@ enum lx_func {
  */
 enum bshfl_func {
        wsbh_op = 0x2,
-       dshd_op = 0x5,
        seb_op  = 0x10,
        seh_op  = 0x18,
 };
 
+/*
+ * DBSHFL opcodes
+ */
+enum dbshfl_func {
+       dsbh_op = 0x2,
+       dshd_op = 0x5,
+};
+
 /*
  * MSA minor opcodes.
  */