]> git.proxmox.com Git - qemu.git/commitdiff
Fix building on PPC64
authormalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 14 Jan 2009 10:14:31 +0000 (10:14 +0000)
committermalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 14 Jan 2009 10:14:31 +0000 (10:14 +0000)
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

cache-utils.c
cache-utils.h

index 73a824a07f0840963b4c83fff728a64e6783d270..7df1fcf51c4587cb91f6a0e5ef6f2db4f97f2535 100644 (file)
@@ -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  */
index 19b24ab4e1ab88f70acb0a895b8138cc7f41a514..8847dbbf7b067a46ab4de7958eec71ab3baace3b 100644 (file)
@@ -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;