Commits

ecsv committed 4a361cb

Enable __clear_cache workaround for Android

Comments (0)

Files changed (2)

src/r4300/new_dynarec/linkage_arm.S

 	.size	breakpoint, .-breakpoint
 /*  The following bug-fix implements __clear_cache (missing in Android)  */
 	.align	2
+	.global	__clear_cache_bugfix
+	.hidden __clear_cache_bugfix
 	.type	__clear_cache_bugfix, %function
 __clear_cache_bugfix:
 	push    {r7, lr}

src/r4300/new_dynarec/new_dynarec.c

 #define NOTTAKEN 2
 #define NULLDS 3
 
+/* bug-fix to implement __clear_cache (missing in Android; http://code.google.com/p/android/issues/detail?id=1803) */
+void __clear_cache_bugfix(char* begin, char *end);
+#ifdef ANDROID
+	#define __clear_cache __clear_cache_bugfix
+#endif
+
 // asm linkage
 int new_recompile_block(int addr);
 void *get_addr_ht(u_int vaddr);