Explorar o código

[MIPS] Use "R" constraint for cache_op.

Gcc might emit an absolute address for the the "m" constraint which
gas unfortunately does not permit.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle %!s(int64=19) %!d(string=hai) anos
pai
achega
675055bfb5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      include/asm-mips/r4kcache.h

+ 1 - 1
include/asm-mips/r4kcache.h

@@ -37,7 +37,7 @@
 	"	cache	%0, %1					\n"	\
 	"	.set	pop					\n"	\
 	:								\
-	: "i" (op), "m" (*(unsigned char *)(addr)))
+	: "i" (op), "R" (*(unsigned char *)(addr)))
 
 static inline void flush_icache_line_indexed(unsigned long addr)
 {