]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips64: fix do_syscall_WRK for N32
authorPetar Jovanovic <mips32r2@gmail.com>
Thu, 26 Sep 2019 15:18:34 +0000 (15:18 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Thu, 26 Sep 2019 15:18:34 +0000 (15:18 +0000)
Load correctly pointer to V1_A3_val on N32.

Patch by Stefan Maksimovic.

coregrind/m_syscall.c

index a3461e84f63a98dafaec48d417dd73766cafe879..e4fb70c69324e634276760cf3e3e4a8e0af68511 100644 (file)
@@ -811,7 +811,11 @@ asm (
    "do_syscall_WRK:                        \n\t"
    "   move $2, $11                        \n\t"
    "   syscall                             \n\t"
+#  if defined(_ABI64)
    "   ld $12, 0($29)                      \n\t"
+#  elif defined(_ABIN32)
+   "   lw $12, 0($29)                      \n\t"
+#  endif
    "   sd $3, 0($12)                       \n\t" /* store v1 in V1_A3_val */
    "   jr $31                              \n\t"
    "   sd $7, 8($12)                       \n\t" /* store a3 in V1_A3_val */