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>
stable-1.0
Eric Sunshine 2011-11-01 05:39:49 -04:00 committed by Anthony Liguori
parent 9477c87ed9
commit 463ce4ae2d
1 changed files with 1 additions and 1 deletions

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