[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-trivial] [PATCH] qemu-barrier: Fix build failure on PowerPC Mac OS

From: Eric Sunshine
Subject: [Qemu-trivial] [PATCH] qemu-barrier: Fix build failure on PowerPC Mac OS X
Date: Tue, 1 Nov 2011 05:39:49 -0400

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 <address@hidden>

The anomalous __powerpc__ test appears only in qemu-barrier.h.
No other source files reference this name.

Cc: David Gibson <address@hidden>

 qemu-barrier.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/qemu-barrier.h b/qemu-barrier.h
index 735eea6..c11bb2b 100644
--- a/qemu-barrier.h
+++ b/qemu-barrier.h
@@ -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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]