]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips32/64: Fix the problem with dirty helper when the
authorDejan Jevtic <dejan.jevtic@valgrind.org>
Thu, 19 Sep 2013 10:22:42 +0000 (10:22 +0000)
committerDejan Jevtic <dejan.jevtic@valgrind.org>
Thu, 19 Sep 2013 10:22:42 +0000 (10:22 +0000)
__mips_isa_rev is not 2 on higher.

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

VEX/priv/guest_mips_helpers.c

index 414964e8ae09cb51df8788cc1f18a945cddb4c55..8cb41a2c0c1c90c7c5a6d3d7a2deadd8290b65b0 100644 (file)
@@ -1118,7 +1118,7 @@ ULong mips64_dirtyhelper_rdhwr ( ULong rt, ULong rd )
 extern UInt mips_dirtyhelper_calculate_FCSR ( void* gs, UInt fs, flt_op inst )
 {
    UInt ret = 0;
-#if defined(__mips__) && ((defined(__mips_isa_rev) && __mips_isa_rev >= 2))
+#if defined(__mips__)
 #if defined(VGA_mips32)
    VexGuestMIPS32State* guest_state = (VexGuestMIPS32State*)gs;
    UInt *addr = (UInt *)&guest_state->guest_f0;