提交 f295149f 编写于 作者: D duhuanpeng 提交者: Du Huanpeng

MIPS: fix inline assembly for FPU

Signed-off-by: Nduhuanpeng <548708880@qq.com>
上级 ee61d78b
......@@ -999,7 +999,7 @@ do { \
#define write_32bit_cp0_set1_register(register,value) \
__asm__ __volatile__( \
"ctc0\t%0,"STR(register)"\n\t" \
"ctc0\t%0,$"STR(register)"\n\t" \
"nop" \
: : "r" (value));
......@@ -1037,14 +1037,14 @@ do { \
__asm__ __volatile__( \
".set\tpush\n\t" \
".set\treorder\n\t" \
"cfc1\t%0,"STR(source)"\n\t" \
"cfc1\t%0,$"STR(source)"\n\t" \
".set\tpop" \
: "=r" (__res)); \
__res;})
#define write_32bit_cp1_register(register,value) \
__asm__ __volatile__( \
"ctc1\t%0,"STR(register)"\n\t" \
"ctc1\t%0,$"STR(register)"\n\t" \
"nop" \
: : "r" (value));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册