From 17de0299a62acd372dd81208de6dfa79d99116cc 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 791529e..56fb82b 100644 --- a/include/urcu/arch/ppc.h +++ b/include/urcu/arch/ppc.h @@ -63,7 +63,7 @@ extern "C" { __extension__ \ ({ \ unsigned long rval; \ - __asm__ __volatile__ ("mftbl %0" : "=r" (rval)); \ + __asm__ __volatile__ ("mftb %0" : "=r" (rval)); \ rval; \ }) -- 2.34.1