[PATCH] D37788: [ARM] builtins: Do not abort in clear_cache.

Manoj Gupta via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 26 15:30:41 PDT 2017


manojgupta added a comment.

Looking at the kernel source code, it will return -EFAULT if an instruction raises a fault.

Also, a colleague pointed me to Aarch64 docs (https://developer.arm.com/docs/den0024/latest/11-caches/115-cache-maintenance ) that state:
 The AArch64 Data Cache invalidate instruction by address, DC IVAC, requires write permission or else a permission fault is generated.

I could not find anything similar for ARM32 but can i assume that ARM32 has a similar behavior? Most docs I found state use of  mrc/mcr instructions for the cache flushing and requiring supervisor mode but didn't say anything related to write permission.


https://reviews.llvm.org/D37788





More information about the llvm-commits mailing list