qemu-barrier: Fix build failure on PowerPC Mac OS X

qemu-barrier.h tests if macro __powerpc__ is defined, however, the
preprocessor on PowerPC Mac OS X defines only __POWERPC__, not
__powerpc__.  Resolve by testing instead for qemu-provided _ARCH_PPC.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Eric Sunshine 2011-11-01 05:39:49 -04:00 committed by Anthony Liguori
parent 9477c87ed9
commit 463ce4ae2d

View File

@ -14,7 +14,7 @@
*/
#define smp_wmb() barrier()
#elif defined(__powerpc__)
#elif defined(_ARCH_PPC)
/*
* We use an eieio() for a wmb() on powerpc. This assumes we don't