OSDN Git Service

MIPS: fix read_msa_* & write_msa_* functions on non-MSA toolchains
authorPaul Burton <paul.burton@imgtec.com>
Fri, 11 Jul 2014 15:44:33 +0000 (16:44 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 1 Aug 2014 22:06:44 +0000 (00:06 +0200)
commit70dff4d90aab40326d1d06a331e2b07eae99d067
tree66a5f64bd6981b5ce08c5eeb67271438a2583cbe
parent732c0c3c70869af53654db2b56dffdd8d4df5211
MIPS: fix read_msa_* & write_msa_* functions on non-MSA toolchains

Commit d96cc3d1ec5d "MIPS: Add microMIPS MSA support." attempted to use
the value of a macro within an inline asm statement but instead emitted
a comment leading to the cfcmsa & ctcmsa instructions being omitted. Fix
that by passing CFC_MSA_INSN & CTC_MSA_INSN as arguments to the asm
statements.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7305/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/msa.h