]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips64: finetune mips_dirtyhelper_calculate_FCSR
authorPetar Jovanovic <mips32r2@gmail.com>
Tue, 24 Sep 2013 22:27:23 +0000 (22:27 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Tue, 24 Sep 2013 22:27:23 +0000 (22:27 +0000)
Several MIPS32 Revision 2 instructions also belong to Revision 1 of MIPS64.
Modifing parts of mips_dirtyhelper_calculate_FCSR to be active for MIPS64R1.

This fixes none/tests/mips64/round when Valgrind is compiled for MIPS64 R1.

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

VEX/priv/guest_mips_helpers.c

index c166b4dd8137f032c381aa5c2a8715d4c2d4b1e3..675fd47d1f7d18f9d41913e4e2774273aef3e227 100644 (file)
@@ -1176,7 +1176,8 @@ extern UInt mips_dirtyhelper_calculate_FCSR ( void* gs, UInt fs, flt_op inst )
       case ROUNDWS:
          ASM_VOLATILE_ROUND(fs, round.w.s)
          break;
-#if defined(__mips_isa_rev) && (__mips_isa_rev >= 2)
+#if ((__mips == 32) && defined(__mips_isa_rev) && (__mips_isa_rev >= 2)) \
+    || (__mips == 64)
       case CEILLS:
          ASM_VOLATILE_ROUND(fs, ceil.l.s)
          break;