[PATCH] D46456: [asan] Add support for Myriad RTEMS memory map

Walter Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 11 12:12:35 PDT 2018


waltl marked an inline comment as done.
waltl added inline comments.


================
Comment at: compiler-rt/lib/asan/asan_mapping.h:311
+static inline uptr RawAddr(uptr a) {
+  return SANITIZER_MYRIAD2 ? (a & ~kMyriadCacheBitMask32) : a;
+}
----------------
vitalybuka wrote:
> what is this for?
Myriad addresses have a bit that tells the processor whether its data should be cached.  For example, addresses 0x80abcdef and 0x84abcdef correspond to the same addresses.  So to get the raw address we need to strip the cache bit.



Repository:
  rL LLVM

https://reviews.llvm.org/D46456





More information about the llvm-commits mailing list