sparcv9: Make use of CK_PR_FENCE macro.

ck_pring
Samy Al Bahra 14 years ago
parent e1d33c467b
commit 133e936744

@ -67,29 +67,10 @@ ck_pr_stall(void)
CK_PR_FENCE(load_depends, "") CK_PR_FENCE(load_depends, "")
CK_PR_FENCE(store, "") CK_PR_FENCE(store, "")
CK_PR_FENCE(load, "") CK_PR_FENCE(load, "")
CK_PR_FENCE(memory, "membar #MemIssue")
#undef CK_PR_FENCE #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) \ #define CK_PR_LOAD(S, M, T, C, I) \
CK_CC_INLINE static T \ CK_CC_INLINE static T \
ck_pr_load_##S(M *target) \ ck_pr_load_##S(M *target) \

Loading…
Cancel
Save