|
From: <sv...@va...> - 2013-09-24 22:27:34
|
Author: petarj
Date: Tue Sep 24 22:27:23 2013
New Revision: 2774
Log:
mips64: finetune mips_dirtyhelper_calculate_FCSR
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.
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 Sep 24 22:27:23 2013
@@ -1176,7 +1176,8 @@
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;
|