$OpenBSD: patch-tcg_mips_tcg-target_h,v 1.1 2011/05/25 07:43:48 sthen Exp $
--- tcg/mips/tcg-target.h.orig	Mon May 23 13:36:13 2011
+++ tcg/mips/tcg-target.h	Mon May 23 15:33:43 2011
@@ -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)
 {
