|
From: Petar J. <pe...@so...> - 2019-09-27 08:19:26
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=0ad8d78dca1cc553c3cb14622a352ee552431284 commit 0ad8d78dca1cc553c3cb14622a352ee552431284 Author: Petar Jovanovic <mip...@gm...> Date: Thu Sep 26 15:18:34 2019 +0000 mips64: fix do_syscall_WRK for N32 Load correctly pointer to V1_A3_val on N32. Patch by Stefan Maksimovic. Diff: --- coregrind/m_syscall.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/coregrind/m_syscall.c b/coregrind/m_syscall.c index a3461e8..e4fb70c 100644 --- a/coregrind/m_syscall.c +++ b/coregrind/m_syscall.c @@ -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 */ |