From: malc Date: Wed, 14 Jan 2009 10:14:31 +0000 (+0000) Subject: Fix building on PPC64 X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~12993 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=395f153dcd299026358fef4218cbf874f5ea4c6b;p=sdk%2Femulator%2Fqemu.git Fix building on PPC64 HOST_PPC alone can't be a substitute for __powerpc__ which is defined for both 32 and 64bit PPCs, so go with HOST_PPC || HOST_PPC64 instead. Reported by C. W. Betts git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6293 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/cache-utils.c b/cache-utils.c index 73a824a..7df1fcf 100644 --- a/cache-utils.c +++ b/cache-utils.c @@ -1,6 +1,6 @@ #include "cache-utils.h" -#ifdef HOST_PPC +#if defined HOST_PPC || defined HOST_PPC64 struct qemu_cache_conf qemu_cache_conf = { .dcache_bsize = 16, .icache_bsize = 16 @@ -68,4 +68,4 @@ void qemu_cache_utils_init(char **envp) } #endif -#endif /* HOST_PPC */ +#endif /* HOST_PPC || HOST_PPC64 */ diff --git a/cache-utils.h b/cache-utils.h index 19b24ab..8847dbb 100644 --- a/cache-utils.h +++ b/cache-utils.h @@ -3,7 +3,7 @@ #include "config-host.h" -#ifdef HOST_PPC +#if defined HOST_PPC || defined HOST_PPC64 struct qemu_cache_conf { unsigned long dcache_bsize; unsigned long icache_bsize;