]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips64: fix build break introduced by be7a730
authorPetar Jovanovic <mips32r2@gmail.com>
Thu, 13 Dec 2018 15:20:28 +0000 (16:20 +0100)
committerPetar Jovanovic <mips32r2@gmail.com>
Thu, 13 Dec 2018 15:20:28 +0000 (16:20 +0100)
Follow up to
commit be7a73004583aab5d4c97cf55276ca58d5b3090b

that broke the build for mips64.

coregrind/m_main.c

index 22872a25a0b60b13c59d96db6cadf8e3f5bba4ba..93998cfaa3150c3af78f01eaa1f29c381e14f01e 100644 (file)
@@ -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(). */