diff options
author | malc <malc@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-13 23:12:34 +0000 |
---|---|---|
committer | malc <malc@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-13 23:12:34 +0000 |
commit | 4df1ccbf37a13f97769fb7c8bde5d0bb78450ee8 (patch) | |
tree | 5f3b0572c5519def8fc50591236041ddc24d4781 /cache-utils.c | |
parent | 619bf15666074fe29a6c70649df35f7061b2d101 (diff) | |
download | qemu-4df1ccbf37a13f97769fb7c8bde5d0bb78450ee8.tar.gz qemu-4df1ccbf37a13f97769fb7c8bde5d0bb78450ee8.tar.bz2 qemu-4df1ccbf37a13f97769fb7c8bde5d0bb78450ee8.zip |
Do not rely on __powerpc__ being defined as a feature test macro
__powerpc__ is not defined on AIX and Darwin, Makefile.target adds
it to CPPFLAGS for target specific code which cache-utils are not.
Since there's not common definition which can safely be used on all
platforms use HOST_PPC provided by config-host.h
The problem was originally reported by C. W. Betts
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6292 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'cache-utils.c')
-rw-r--r-- | cache-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cache-utils.c b/cache-utils.c index 7c98144ae5..73a824a07f 100644 --- a/cache-utils.c +++ b/cache-utils.c @@ -1,6 +1,6 @@ #include "cache-utils.h" -#ifdef __powerpc__ +#ifdef HOST_PPC 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 /* __powerpc__ */ +#endif /* HOST_PPC */ |