Skip to contentSkip to conversation

MIPS: Fix 'write_msa_##' inline macro.

PATCH New Steven J. Hill 1 participant 1 message Apr 11, 2014 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 MIPS: Fix 'write_msa_##' inline macro.

From: "Steven J. Hill" <[email protected]>

The 'write_msa_##' macro incorrectly uses the 'cfcmsa' instruction, which should be the 'ctcmsa' instruction.

---
v2: Fix typo.

 arch/mips/include/asm/msa.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/include/asm/msa.h +1 -1
index a2aba6c..baddc5f 100644
@@ -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));						\
 }
Signature · 1 line
1.8.3.2