Commit 395f153dcd299026358fef4218cbf874f5ea4c6b

Authored by malc
1 parent 1eff7fbf

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
cache-utils.c
1 #include "cache-utils.h" 1 #include "cache-utils.h"
2 2
3 -#ifdef HOST_PPC 3 +#if defined HOST_PPC || defined HOST_PPC64
4 struct qemu_cache_conf qemu_cache_conf = { 4 struct qemu_cache_conf qemu_cache_conf = {
5 .dcache_bsize = 16, 5 .dcache_bsize = 16,
6 .icache_bsize = 16 6 .icache_bsize = 16
@@ -68,4 +68,4 @@ void qemu_cache_utils_init(char **envp) @@ -68,4 +68,4 @@ void qemu_cache_utils_init(char **envp)
68 } 68 }
69 #endif 69 #endif
70 70
71 -#endif /* HOST_PPC */ 71 +#endif /* HOST_PPC || HOST_PPC64 */
cache-utils.h
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 3
4 #include "config-host.h" 4 #include "config-host.h"
5 5
6 -#ifdef HOST_PPC 6 +#if defined HOST_PPC || defined HOST_PPC64
7 struct qemu_cache_conf { 7 struct qemu_cache_conf {
8 unsigned long dcache_bsize; 8 unsigned long dcache_bsize;
9 unsigned long icache_bsize; 9 unsigned long icache_bsize;