Module Name:    src
Committed By:   alnsn
Date:           Sun Dec  2 20:54:44 UTC 2018

Modified Files:
        src/sys/arch/aarch64/include: sljit_machdep.h

Log Message:
Switch to __builtin___clear_cache() in userspace.

aarch64_sync_icache() doesn't exist because there no libarm equivalent
on aarch64.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/aarch64/include/sljit_machdep.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/aarch64/include/sljit_machdep.h
diff -u src/sys/arch/aarch64/include/sljit_machdep.h:1.1 src/sys/arch/aarch64/include/sljit_machdep.h:1.2
--- src/sys/arch/aarch64/include/sljit_machdep.h:1.1	Sun Aug 26 21:06:46 2018
+++ src/sys/arch/aarch64/include/sljit_machdep.h	Sun Dec  2 20:54:44 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: sljit_machdep.h,v 1.1 2018/08/26 21:06:46 rjs Exp $	*/
+/*	$NetBSD: sljit_machdep.h,v 1.2 2018/12/02 20:54:44 alnsn Exp $	*/
 
 /*-
  * Copyright (c) 2014 Alexander Nasonov.
@@ -47,7 +47,7 @@
 	cpu_icache_sync_range((vaddr_t)(from), (vsize_t)((to) - (from)))
 #else
 #define SLJIT_CACHE_FLUSH(from, to) \
-	(void)aarch64_sync_icache((uintptr_t)(from), (size_t)((to) - (from)))
+	(void)__builtin___clear_cache((char *)(from), (char *)(to))
 #endif
 
 #endif

Reply via email to