Module Name:    src
Committed By:   christos
Date:           Sun Jan 19 16:33:14 UTC 2025

Modified Files:
        src/external/lgpl2/userspace-rcu/dist/include/urcu/arch: sparc64.h

Log Message:
We build with v7 by default so use the v8 locking because the instructions
should also work (or be noops) on v7


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
    src/external/lgpl2/userspace-rcu/dist/include/urcu/arch/sparc64.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl2/userspace-rcu/dist/include/urcu/arch/sparc64.h
diff -u src/external/lgpl2/userspace-rcu/dist/include/urcu/arch/sparc64.h:1.2 src/external/lgpl2/userspace-rcu/dist/include/urcu/arch/sparc64.h:1.3
--- src/external/lgpl2/userspace-rcu/dist/include/urcu/arch/sparc64.h:1.2	Sat Jan 18 10:53:14 2025
+++ src/external/lgpl2/userspace-rcu/dist/include/urcu/arch/sparc64.h	Sun Jan 19 11:33:14 2025
@@ -41,15 +41,11 @@ __asm__ __volatile__("ba,pt %%xcc, 1f\n\
 #define cmm_mb()	membar_safe("#LoadLoad | #LoadStore | #StoreStore | #StoreLoad")
 #define cmm_rmb()	membar_safe("#LoadLoad")
 #define cmm_wmb()	membar_safe("#StoreStore")
-#elif __sparc_v8__
+#else
 /* from gcc config/sparc/sync.md */
 #define cmm_mb()	__asm__ __volatile__("stbar\n\tldstub\t[%%sp-1], %%g0")
 #define cmm_rmb()	__asm__ __volatile__("ldstub\t[%%sp-1], %%g0")
 #define cmm_wmb()	__asm__ __volatile__("stbar")
-#else
-#define cmm_mb()
-#define cmm_rmb()
-#define cmm_wmb()
 #endif
 
 #ifdef __cplusplus

Reply via email to