Skip to content

Commit

Permalink
Fix building on PPC64
Browse files Browse the repository at this point in the history
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
  • Loading branch information
malc committed Jan 14, 2009
1 parent 1eff7fb commit 395f153
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions 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
Expand Down Expand Up @@ -68,4 +68,4 @@ void qemu_cache_utils_init(char **envp)
}
#endif

#endif /* HOST_PPC */
#endif /* HOST_PPC || HOST_PPC64 */
2 changes: 1 addition & 1 deletion cache-utils.h
Expand Up @@ -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;
Expand Down

0 comments on commit 395f153

Please sign in to comment.