diff --git a/cache-utils.c b/cache-utils.c index 7c98144ae5c785ce2290f11feb1031924d4a64f9..73a824a07f0840963b4c83fff728a64e6783d270 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 */ diff --git a/cache-utils.h b/cache-utils.h index 0598b96ebacc9512396b0f1e5a820a8f94e53ab5..19b24ab4e1ab88f70acb0a895b8138cc7f41a514 100644 --- a/cache-utils.h +++ b/cache-utils.h @@ -1,7 +1,9 @@ #ifndef QEMU_CACHE_UTILS_H #define QEMU_CACHE_UTILS_H -#ifdef __powerpc__ +#include "config-host.h" + +#ifdef HOST_PPC struct qemu_cache_conf { unsigned long dcache_bsize; unsigned long icache_bsize;