From: Ben.Lippmeier@anu.edu.au Date: Fri, 13 Feb 2009 00:49:10 +0000 (+0000) Subject: NCG: Use sync instead of msync for a memory barrier for powerpc X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=c83d2d16d72825ea5ef9a1b3c7096fc9e19491b7 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. --- diff --git a/includes/SMP.h b/includes/SMP.h index c851054..223f158 100644 --- a/includes/SMP.h +++ b/includes/SMP.h @@ -195,7 +195,7 @@ store_load_barrier(void) { #elif x86_64_HOST_ARCH __asm__ __volatile__ ("lock; addq $0,0(%%rsp)" : : : "memory"); #elif powerpc_HOST_ARCH - __asm__ __volatile__ ("msync" : : : "memory"); + __asm__ __volatile__ ("sync" : : : "memory"); #elif sparc_HOST_ARCH /* Sparc in TSO mode does not require write/write barriers. */ __asm__ __volatile__ ("membar" : : : "memory");