Commit c83d2d16 authored by Ben.Lippmeier@anu.edu.au's avatar Ben.Lippmeier@anu.edu.au
Browse files

NCG: Use sync instead of msync for a memory barrier for powerpc

  Darwin 9.6.0 + GCC 4.0.1 doesn't understand "msync". 
  I think "sync" means the same thing.
parent e3029b1d
...@@ -195,7 +195,7 @@ store_load_barrier(void) { ...@@ -195,7 +195,7 @@ store_load_barrier(void) {
#elif x86_64_HOST_ARCH #elif x86_64_HOST_ARCH
__asm__ __volatile__ ("lock; addq $0,0(%%rsp)" : : : "memory"); __asm__ __volatile__ ("lock; addq $0,0(%%rsp)" : : : "memory");
#elif powerpc_HOST_ARCH #elif powerpc_HOST_ARCH
__asm__ __volatile__ ("msync" : : : "memory"); __asm__ __volatile__ ("sync" : : : "memory");
#elif sparc_HOST_ARCH #elif sparc_HOST_ARCH
/* Sparc in TSO mode does not require write/write barriers. */ /* Sparc in TSO mode does not require write/write barriers. */
__asm__ __volatile__ ("membar" : : : "memory"); __asm__ __volatile__ ("membar" : : : "memory");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment