]> git.proxmox.com Git - qemu.git/blobdiff - tcg/mips/tcg-target.h
Use the correct header in the TCG MIPS code to find cacheflush() on OpenBSD.
[qemu.git] / tcg / mips / tcg-target.h
index 0028bfa562350dbe6f0276f4da427ba857cbcc48..8cb7d88eb6ce05d72a8c4c1c243d06aa39132d3b 100644 (file)
@@ -102,7 +102,11 @@ enum {
 /* guest base is supported */
 #define TCG_TARGET_HAS_GUEST_BASE
 
+#ifdef __OpenBSD__
+#include <machine/sysarch.h>
+#else
 #include <sys/cachectl.h>
+#endif
 
 static inline void flush_icache_range(unsigned long start, unsigned long stop)
 {