From: Petar Jovanovic Date: Thu, 13 Dec 2018 15:20:28 +0000 (+0100) Subject: mips64: fix build break introduced by be7a730 X-Git-Tag: VALGRIND_3_15_0~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4ab123605d904024c21a2bcb37684d84c935194;p=thirdparty%2Fvalgrind.git mips64: fix build break introduced by be7a730 Follow up to commit be7a73004583aab5d4c97cf55276ca58d5b3090b that broke the build for mips64. --- diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 22872a25a0..93998cfaa3 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -2328,11 +2328,16 @@ static void final_tidyup(ThreadId tid) sizeof(VG_(threads)[tid].arch.vex.guest_GPR12)); # endif /* mips-linux note: we need to set t9 */ -# if defined(VGP_mips32_linux) || defined(VGP_mips64_linux) +# if defined(VGP_mips32_linux) VG_(threads)[tid].arch.vex.guest_r25 = freeres_wrapper; VG_TRACK(post_reg_write, Vg_CoreClientReq, tid, offsetof(VexGuestMIPS32State, guest_r25), sizeof(VG_(threads)[tid].arch.vex.guest_r25)); +# elif defined(VGP_mips64_linux) + VG_(threads)[tid].arch.vex.guest_r25 = freeres_wrapper; + VG_TRACK(post_reg_write, Vg_CoreClientReq, tid, + offsetof(VexGuestMIPS64State, guest_r25), + sizeof(VG_(threads)[tid].arch.vex.guest_r25)); # endif /* Pass a parameter to freeres_wrapper(). */