From 133e936744f1c4eb81b273206b430bcc453187d3 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sat, 5 Mar 2011 17:57:37 -0500 Subject: [PATCH] sparcv9: Make use of CK_PR_FENCE macro. --- include/gcc/sparcv9/ck_pr.h | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/include/gcc/sparcv9/ck_pr.h b/include/gcc/sparcv9/ck_pr.h index 6fc3a6e..a9d6b1c 100644 --- a/include/gcc/sparcv9/ck_pr.h +++ b/include/gcc/sparcv9/ck_pr.h @@ -67,29 +67,10 @@ ck_pr_stall(void) CK_PR_FENCE(load_depends, "") CK_PR_FENCE(store, "") CK_PR_FENCE(load, "") +CK_PR_FENCE(memory, "membar #MemIssue") #undef CK_PR_FENCE -/* - * Regular loads and stores are not ordered with respect to each other - * in TSO. - */ -CK_CC_INLINE static void -ck_pr_fence_strict_memory(void) -{ - - __asm__ __volatile__("membar #MemIssue" ::: "memory"); - return; -} - -CK_CC_INLINE static void -ck_pr_fence_memory(void) -{ - - __asm__ __volatile__("membar #MemIssue" ::: "memory"); - return; -} - #define CK_PR_LOAD(S, M, T, C, I) \ CK_CC_INLINE static T \ ck_pr_load_##S(M *target) \