]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Unbreak the build on non-MIPS platforms.
authorTom Hughes <tom@compton.nu>
Wed, 18 Sep 2013 11:24:25 +0000 (11:24 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 18 Sep 2013 11:24:25 +0000 (11:24 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@2767

VEX/priv/guest_mips_helpers.c

index 0a2e5ee2e109d6ba792854aaf4241fa954a46d4a..414964e8ae09cb51df8788cc1f18a945cddb4c55 100644 (file)
@@ -1118,6 +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(VGA_mips32)
    VexGuestMIPS32State* guest_state = (VexGuestMIPS32State*)gs;
    UInt *addr = (UInt *)&guest_state->guest_f0;
@@ -1211,6 +1212,7 @@ extern UInt mips_dirtyhelper_calculate_FCSR ( void* gs, UInt fs, flt_op inst )
          vassert(0);
          break;
    }
+#endif
    return ret;
 }