|
From: <sv...@va...> - 2017-04-25 17:28:08
|
Author: petarj
Date: Tue Apr 25 18:28:01 2017
New Revision: 3356
Log:
mips: add missing assembler directive to ASM_VOLATILE_UNARY64
Clang is picky and notices we have not explicitly set up fp64 mode.
This fixes issue with Clang build.
Modified:
trunk/priv/guest_mips_helpers.c
Modified: trunk/priv/guest_mips_helpers.c
==============================================================================
--- trunk/priv/guest_mips_helpers.c (original)
+++ trunk/priv/guest_mips_helpers.c Tue Apr 25 18:28:01 2017
@@ -497,6 +497,7 @@
#define ASM_VOLATILE_UNARY64(inst) \
__asm__ volatile(".set push" "\n\t" \
".set hardfloat" "\n\t" \
+ ".set fp=64" "\n\t" \
"cfc1 $t0, $31" "\n\t" \
"ctc1 %2, $31" "\n\t" \
"ldc1 $f24, 0(%1)" "\n\t" \
|