]> git.proxmox.com Git - qemu.git/blobdiff - cache-utils.h
target-s390x: avoid AREG0 for FPU helpers
[qemu.git] / cache-utils.h
index 19b24ab4e1ab88f70acb0a895b8138cc7f41a514..2c57f78fc19984c0ecd79d87b0ce1cee3fa34312 100644 (file)
@@ -1,9 +1,10 @@
 #ifndef QEMU_CACHE_UTILS_H
 #define QEMU_CACHE_UTILS_H
 
-#include "config-host.h"
+#if defined(_ARCH_PPC)
+
+#include <stdint.h> /* uintptr_t */
 
-#ifdef HOST_PPC
 struct qemu_cache_conf {
     unsigned long dcache_bsize;
     unsigned long icache_bsize;
@@ -11,10 +12,10 @@ struct qemu_cache_conf {
 
 extern struct qemu_cache_conf qemu_cache_conf;
 
-extern void qemu_cache_utils_init(char **envp);
+void qemu_cache_utils_init(char **envp);
 
 /* mildly adjusted code from tcg-dyngen.c */
-static inline void flush_icache_range(unsigned long start, unsigned long stop)
+static inline void flush_icache_range(uintptr_t start, uintptr_t stop)
 {
     unsigned long p, start1, stop1;
     unsigned long dsize = qemu_cache_conf.dcache_bsize;