From c6fbc27960c6ae09af830e33884a40f53a879f6b Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Fri, 5 Jan 2024 18:44:18 +0800 Subject: [PATCH] ppc.h: use mftb on ppc Older versions of GNU as do not support mftbl. The issue affects Darwin PowerPC, as well as some older versions of NetBSD and Linux. Since mftb is equivalent and universally understood, just use that. Signed-off-by: Mathieu Desnoyers Change-Id: I098b70fa8bb077143d2d658835586b6b059b879f --- include/urcu/arch/ppc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/urcu/arch/ppc.h b/include/urcu/arch/ppc.h index 80462c6..be9d158 100644 --- a/include/urcu/arch/ppc.h +++ b/include/urcu/arch/ppc.h @@ -51,7 +51,7 @@ extern "C" { __extension__ \ ({ \ unsigned long rval; \ - __asm__ __volatile__ ("mftbl %0" : "=r" (rval)); \ + __asm__ __volatile__ ("mftb %0" : "=r" (rval)); \ rval; \ }) -- 2.34.1