diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2016-09-15 00:36:13 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-09-15 00:36:13 +0000 |
commit | 04bcf552a28857cb029dd5b49e40e5e0750d7106 (patch) | |
tree | b430545a79459270127f90247249d4552797fe65 | |
parent | 5318c4000d44c72dcfcb10d39253369b609eb1dd (diff) | |
parent | d5b74218fa602f0f16f032fa3de31612f01b9635 (diff) | |
download | valgrind-04bcf552a28857cb029dd5b49e40e5e0750d7106.tar.gz |
Merge "Fix arm64 inline assembly code typo."
-rw-r--r-- | coregrind/m_syswrap/syswrap-linux.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coregrind/m_syswrap/syswrap-linux.c b/coregrind/m_syswrap/syswrap-linux.c index f79696989..6584c16db 100644 --- a/coregrind/m_syswrap/syswrap-linux.c +++ b/coregrind/m_syswrap/syswrap-linux.c @@ -269,12 +269,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 ( |