aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2012-05-29 06:54:16 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2012-05-29 06:54:16 -0500
commit1c4ad9d2b4b5f2be08588a91e4193d13cc314282 (patch)
tree832b1d83d0608cd6d2b3ebaa2617ae0fb9ba3fc8
parentdd86df756e02b684718dd5378725927361b0ad36 (diff)
parent60b46aa2f3d40457d6f722cc79e3dbacd04b492f (diff)
downloadqemu-1c4ad9d2b4b5f2be08588a91e4193d13cc314282.zip
qemu-1c4ad9d2b4b5f2be08588a91e4193d13cc314282.tar.gz
qemu-1c4ad9d2b4b5f2be08588a91e4193d13cc314282.tar.bz2
Merge remote-tracking branch 'afaerber-or/cocoa-for-upstream' into staging
* afaerber-or/cocoa-for-upstream: cocoa: Suppress Cocoa frontend for -qtest arch_init: Fix AltiVec build on Darwin/ppc
-rw-r--r--arch_init.c4
-rw-r--r--ui/cocoa.m3
2 files changed, 6 insertions, 1 deletions
diff --git a/arch_init.c b/arch_init.c
index 988adca..a9e8b74 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -100,6 +100,10 @@ const uint32_t arch_type = QEMU_ARCH;
#define VECTYPE vector unsigned char
#define SPLAT(p) vec_splat(vec_ld(0, p), 0)
#define ALL_EQ(v1, v2) vec_all_eq(v1, v2)
+/* altivec.h may redefine the bool macro as vector type.
+ * Reset it to POSIX semantics. */
+#undef bool
+#define bool _Bool
#elif defined __SSE2__
#include <emmintrin.h>
#define VECTYPE __m128i
diff --git a/ui/cocoa.m b/ui/cocoa.m
index e7d6e89..2383646 100644
--- a/ui/cocoa.m
+++ b/ui/cocoa.m
@@ -879,7 +879,8 @@ int main (int argc, const char * argv[]) {
!strcmp(opt, "-vnc") ||
!strcmp(opt, "-nographic") ||
!strcmp(opt, "-version") ||
- !strcmp(opt, "-curses")) {
+ !strcmp(opt, "-curses") ||
+ !strcmp(opt, "-qtest")) {
return qemu_main(gArgc, gArgv, *_NSGetEnviron());
}
}