]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips: add missing assembler directive to ASM_VOLATILE_UNARY64
authorPetar Jovanovic <mips32r2@gmail.com>
Tue, 25 Apr 2017 17:28:01 +0000 (17:28 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Tue, 25 Apr 2017 17:28:01 +0000 (17:28 +0000)
Clang is picky and notices we have not explicitly set up fp64 mode.
This fixes issue with Clang build.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3356

VEX/priv/guest_mips_helpers.c

index 1183d7a84f08159eb1cf0f83852a93e66a720503..0ed8f5005d980dd72be7f5a263a5a58a214052b6 100644 (file)
@@ -497,6 +497,7 @@ ULong mips64_dirtyhelper_rdhwr ( ULong rt, ULong rd )
 #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"                     \