bootstrappable: Avoid using __clear_cache.

This commit is contained in:
Jan (janneke) Nieuwenhuizen 2020-08-23 14:06:01 +02:00
parent 94fa1710aa
commit 33403a4011
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 2 additions and 0 deletions

View File

@ -273,7 +273,9 @@ static void set_pages_executable(void *ptr, unsigned long length)
if (mprotect((void *)start, end - start, PROT_READ | PROT_WRITE | PROT_EXEC))
tcc_error("mprotect failed: did you mean to configure --with-selinux?");
# if defined TCC_TARGET_ARM || defined TCC_TARGET_ARM64
#if !BOOTSTRAP
__clear_cache(ptr, (char *)ptr + length);
#endif
# endif
#endif
}