diff options
author | Chih-Hung Hsieh <chh@google.com> | 2016-09-14 15:54:30 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2016-09-14 16:03:02 -0700 |
commit | d5b74218fa602f0f16f032fa3de31612f01b9635 (patch) | |
tree | b430545a79459270127f90247249d4552797fe65 | |
parent | 5318c4000d44c72dcfcb10d39253369b609eb1dd (diff) | |
download | valgrind-d5b74218fa602f0f16f032fa3de31612f01b9635.tar.gz |
Fix arm64 inline assembly code typo.
* This error was caught by llvm assembler.
Upstream bug in https://bugs.kde.org/show_bug.cgi?id=368823
Bug: 28454823
Test: build and test on arm64 device
Change-Id: If0584a5d49ce1b8bf2e4aaf099b440dbafc48d72
-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 ( |