MIPS: Fix 'write_msa_##' inline macro.
authorSteven J. Hill <Steven.Hill@imgtec.com>
Fri, 11 Apr 2014 15:11:31 +0000 (10:11 -0500)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 3 Jun 2014 20:12:05 +0000 (22:12 +0200)
The 'write_msa_##' macro incorrectly uses the 'cfcmsa'
instruction, which should be the 'ctcmsa' instruction.

Signed-off-by: Steven J. Hill <Steven.Hill@imgtec.com>
Reviewed-by: Paul Burton <Paul.Burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6750/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/msa.h

index a2aba6c..baddc5f 100644 (file)
@@ -84,7 +84,7 @@ static inline void write_msa_##name(unsigned int val)         \
        __asm__ __volatile__(                                   \
        "       .set    push\n"                                 \
        "       .set    msa\n"                                  \
-       "       cfcmsa  $" #cs ", %0\n"                         \
+       "       ctcmsa  $" #cs ", %0\n"                         \
        "       .set    pop\n"                                  \
        : : "r"(val));                                          \
 }