From 8059c1867f545a4c33b376074b79d0832daf02fa Mon Sep 17 00:00:00 2001 From: Ashwin Sekhar T K Date: Thu, 11 May 2017 22:45:44 -0700 Subject: [PATCH] net/thunderx: fix build with clang Replaced usage of %a0 in inline assembly with [%x0] Signed-off-by: Ashwin Sekhar T K Reviewed-by: Jerin Jacob Acked-by: Hemant Agrawal --- drivers/net/thunderx/base/nicvf_plat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/thunderx/base/nicvf_plat.h b/drivers/net/thunderx/base/nicvf_plat.h index 36da12009b..3536d83747 100644 --- a/drivers/net/thunderx/base/nicvf_plat.h +++ b/drivers/net/thunderx/base/nicvf_plat.h @@ -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) ({ \ -- 2.20.1