From: Julian Seward Date: Tue, 18 Oct 2016 17:31:53 +0000 (+0000) Subject: Fix run_a_thread_NORETURN assembly code typo for VGP_arm64_linux target. X-Git-Tag: svn/VALGRIND_3_13_0~331 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01492a35449cdfff1d44999ed0cec36ef1277857;p=thirdparty%2Fvalgrind.git Fix run_a_thread_NORETURN assembly code typo for VGP_arm64_linux target. Fixes #368823. Patch from chh@google.com. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16074 --- diff --git a/coregrind/m_syswrap/syswrap-linux.c b/coregrind/m_syswrap/syswrap-linux.c index 1f0d327269..96868acb4d 100644 --- a/coregrind/m_syswrap/syswrap-linux.c +++ b/coregrind/m_syswrap/syswrap-linux.c @@ -270,12 +270,12 @@ static void run_a_thread_NORETURN ( Word tidW ) #elif defined(VGP_arm64_linux) asm volatile ( "str %w1, %0\n" /* set tst->status = VgTs_Empty (32-bit store) */ - "mov x8, %2\n" /* set %r7 = __NR_exit */ - "ldr x0, %3\n" /* set %r0 = tst->os_state.exitcode */ + "mov x8, %2\n" /* set %x8 = __NR_exit */ + "ldr x0, %3\n" /* set %x0 = tst->os_state.exitcode */ "svc 0x00000000\n" /* exit(tst->os_state.exitcode) */ : "=m" (tst->status) : "r" (VgTs_Empty), "n" (__NR_exit), "m" (tst->os_state.exitcode) - : "r0", "r7" + : "x0", "x8" ); #elif defined(VGP_s390x_linux) asm volatile (