Commit d0ced270 authored by Mao Minkai's avatar Mao Minkai Committed by guzitao
Browse files

sw64: fix broken rdfpcr()

Sunway inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IBDJNZ



--------------------------------

The memory output is used again after the register output is written, so
the register of the register output constraint cannot be reused to store
the memory address. Add the necessary constraint modifier to avoid this
register reuse.

Signed-off-by: default avatarMao Minkai <maominkai@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent a3c30f18
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ rdfpcr(void)
		"	rfpcr	$f0\n\t"
		"	fimovd	$f0, %1\n\t"
		"	vldd	$f0, %0\n\t"
		: "=m"(*fp), "=r"(ret));
		: "=m"(*fp), "=&r"(ret));

	return ret;
}