From: Tom Hughes Date: Wed, 18 Sep 2013 11:24:25 +0000 (+0000) Subject: Unbreak the build on non-MIPS platforms. X-Git-Tag: svn/VALGRIND_3_9_0^2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7e6a2466f34ecbf78376a8133c12023c1a49d20;p=thirdparty%2Fvalgrind.git Unbreak the build on non-MIPS platforms. git-svn-id: svn://svn.valgrind.org/vex/trunk@2767 --- diff --git a/VEX/priv/guest_mips_helpers.c b/VEX/priv/guest_mips_helpers.c index 0a2e5ee2e1..414964e8ae 100644 --- a/VEX/priv/guest_mips_helpers.c +++ b/VEX/priv/guest_mips_helpers.c @@ -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; }