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:
parent
9477c87ed9
commit
463ce4ae2d
@ -14,7 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
#define smp_wmb() barrier()
|
#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
|
* We use an eieio() for a wmb() on powerpc. This assumes we don't
|
||||||
|
Loading…
Reference in New Issue
Block a user