Use the correct header in the TCG MIPS code to find cacheflush() on OpenBSD.
authorBrad <brad@comstyle.com>
Thu, 26 May 2011 03:06:00 +0000 (23:06 -0400)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 3 Jun 2011 16:23:53 +0000 (18:23 +0200)
Use the correct header in the TCG MIPS code to find cacheflush() on OpenBSD
to fix compilation of the MIPS host support for OpenBSD/mips64 based architecures.

Signed-off-by: Brad Smith <brad@comstyle.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
tcg/mips/tcg-target.h

index 0028bfa..8cb7d88 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)
 {