From 3971541783f14577046af9683be0643af6d180fc Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sun, 28 Jun 2015 17:15:47 -0400 Subject: [PATCH] ppc: lwsync is the right thing for WB-memory. We will expose a flag to enable isync. --- include/gcc/ppc/ck_pr.h | 2 +- include/gcc/ppc64/ck_pr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/gcc/ppc/ck_pr.h b/include/gcc/ppc/ck_pr.h index ef9105c..5fe0c95 100644 --- a/include/gcc/ppc/ck_pr.h +++ b/include/gcc/ppc/ck_pr.h @@ -79,7 +79,7 @@ CK_PR_FENCE(load_store, "lwsync") CK_PR_FENCE(memory, "sync") CK_PR_FENCE(acquire, "lwsync") CK_PR_FENCE(release, "lwsync") -CK_PR_FENCE(lock, "isync") +CK_PR_FENCE(lock, "lwsync") CK_PR_FENCE(unlock, "lwsync") #undef CK_PR_FENCE diff --git a/include/gcc/ppc64/ck_pr.h b/include/gcc/ppc64/ck_pr.h index 966cac2..5abd05c 100644 --- a/include/gcc/ppc64/ck_pr.h +++ b/include/gcc/ppc64/ck_pr.h @@ -82,7 +82,7 @@ CK_PR_FENCE(load_store, "lwsync") CK_PR_FENCE(memory, "sync") CK_PR_FENCE(acquire, "lwsync") CK_PR_FENCE(release, "lwsync") -CK_PR_FENCE(lock, "isync") +CK_PR_FENCE(lock, "lwsync") CK_PR_FENCE(unlock, "lwsync") #undef CK_PR_FENCE