net/thunderx: fix build with clang
authorAshwin Sekhar T K <ashwin.sekhar@caviumnetworks.com>
Fri, 12 May 2017 05:45:44 +0000 (22:45 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 3 Jul 2017 20:28:03 +0000 (22:28 +0200)
Replaced usage of %a0 in inline assembly with [%x0]

Signed-off-by: Ashwin Sekhar T K <ashwin.sekhar@caviumnetworks.com>
Reviewed-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/net/thunderx/base/nicvf_plat.h

index 36da120..3536d83 100644 (file)
@@ -80,7 +80,7 @@
 /* ARM64 specific functions */
 #if defined(RTE_ARCH_ARM64)
 #define nicvf_prefetch_store_keep(_ptr) ({\
-       asm volatile("prfm pstl1keep, %a0\n" : : "p" (_ptr)); })
+       asm volatile("prfm pstl1keep, [%x0]\n" : : "r" (_ptr)); })
 
 
 #define NICVF_LOAD_PAIR(reg1, reg2, addr) ({           \