Merge optimizations/fixes/changes from pami-bgq branch.
[charm.git] / src / conv-core / converse.h
index b65b92e14d10b6c1b92aaadcf78debf95bcb039a..1b5029376ce26a6f41700025db0f7bc8d206be1a 100644 (file)
@@ -1699,8 +1699,8 @@ extern int _immRunning;
   __asm__ __volatile__("fetchadd4.rel %0=[%1],-1": "=r" (someInt_private): "r"(&someInt) :"memory"); }
 #define CmiMemoryAtomicFetchAndInc(input,output) __asm__ __volatile__("fetchadd4.rel %0=[%1],1": "=r" (output): "r"(&input) :"memory")
 #elif CMK_PPC_ASM
-#define CmiMemoryReadFence()               __asm__ __volatile__("eieio":::"memory")
-#define CmiMemoryWriteFence()              __asm__ __volatile__("eieio":::"memory")
+#define CmiMemoryReadFence()               __asm__ __volatile__("sync":::"memory")
+#define CmiMemoryWriteFence()              __asm__ __volatile__("sync":::"memory")
 #define CmiMemoryAtomicIncrement(someInt)   { int someInt_private; \
      __asm__ __volatile__ (      \
         "loop%=:\n\t"       /* repeat until this succeeds */    \