MIPS: fix inline assembly for FPU

Signed-off-by: duhuanpeng <548708880@qq.com>
This commit is contained in:
duhuanpeng 2020-04-03 20:32:07 +08:00 committed by Du Huanpeng
parent ee61d78b18
commit f295149f20
1 changed files with 3 additions and 3 deletions

View File

@ -999,7 +999,7 @@ do { \
#define write_32bit_cp0_set1_register(register,value) \ #define write_32bit_cp0_set1_register(register,value) \
__asm__ __volatile__( \ __asm__ __volatile__( \
"ctc0\t%0,"STR(register)"\n\t" \ "ctc0\t%0,$"STR(register)"\n\t" \
"nop" \ "nop" \
: : "r" (value)); : : "r" (value));
@ -1037,14 +1037,14 @@ do { \
__asm__ __volatile__( \ __asm__ __volatile__( \
".set\tpush\n\t" \ ".set\tpush\n\t" \
".set\treorder\n\t" \ ".set\treorder\n\t" \
"cfc1\t%0,"STR(source)"\n\t" \ "cfc1\t%0,$"STR(source)"\n\t" \
".set\tpop" \ ".set\tpop" \
: "=r" (__res)); \ : "=r" (__res)); \
__res;}) __res;})
#define write_32bit_cp1_register(register,value) \ #define write_32bit_cp1_register(register,value) \
__asm__ __volatile__( \ __asm__ __volatile__( \
"ctc1\t%0,"STR(register)"\n\t" \ "ctc1\t%0,$"STR(register)"\n\t" \
"nop" \ "nop" \
: : "r" (value)); : : "r" (value));