mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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:
committed by
Anthony Liguori
parent
9477c87ed9
commit
463ce4ae2d
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user