From d5b74218fa602f0f16f032fa3de31612f01b9635 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Wed, 14 Sep 2016 15:54:30 -0700 Subject: 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 --- coregrind/m_syswrap/syswrap-linux.c | 6 +++--- 1 file 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 ( -- cgit v1.2.3