Patchwork [6/7] fixup: emit barrier for sync_test_and_set.

login
register
mail settings
Submitter Richard Henderson
Date Nov. 17, 2011, 9:22 p.m.
Message ID <1321564975-14750-2-git-send-email-rth@redhat.com>
Download mbox | patch
Permalink /patch/126319/
State New
Headers show

Comments

Richard Henderson - Nov. 17, 2011, 9:22 p.m.
---
 gcc/config/sparc/sync.md |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/gcc/config/sparc/sync.md b/gcc/config/sparc/sync.md
index 782aa60..821d59e 100644
--- a/gcc/config/sparc/sync.md
+++ b/gcc/config/sparc/sync.md
@@ -229,6 +229,7 @@ 
     FAIL;
   if (<MODE>mode != QImode)
     operands[1] = adjust_address (operands[1], QImode, 0);
+  sparc_emit_membar_for_model (MEMMODEL_ACQUIRE, 3, 1);
   emit_insn (gen_ldstub<mode> (operands[0], operands[1]));
   DONE;
 })