diff options
author | Tim Northover <Tim.Northover@arm.com> | 2013-05-04 18:52:44 +0000 |
---|---|---|
committer | Tim Northover <Tim.Northover@arm.com> | 2013-05-04 18:52:44 +0000 |
commit | 6c26b327ef459b3c1fa57a8ffeadb3634c8e31d1 (patch) | |
tree | 24692dc77a806db4e746e93dabe8d747691a3194 /llvm/lib/Support/Unix | |
parent | 2f75a0c0d8bdb8828e76bbff06d689ce0cc0d58e (diff) | |
download | bcm5719-llvm-6c26b327ef459b3c1fa57a8ffeadb3634c8e31d1.tar.gz bcm5719-llvm-6c26b327ef459b3c1fa57a8ffeadb3634c8e31d1.zip |
AArch64: use __clear_cache under GCCish environments
AArch64 is going to need some kind of cache-invalidation in order to
successfully JIT since it has a weak memory-model. This is provided by
a __clear_cache builtin in libgcc, which acts very much like the
32-bit ARM equivalent (on platforms where it exists).
llvm-svn: 181129
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r-- | llvm/lib/Support/Unix/Memory.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Memory.inc b/llvm/lib/Support/Unix/Memory.inc index e9b26bdb80f..72a8af621df 100644 --- a/llvm/lib/Support/Unix/Memory.inc +++ b/llvm/lib/Support/Unix/Memory.inc @@ -325,7 +325,7 @@ void Memory::InvalidateInstructionCache(const void *Addr, for (intptr_t Line = StartLine; Line < EndLine; Line += LineSize) asm volatile("icbi 0, %0" : : "r"(Line)); asm volatile("isync"); -# elif defined(__arm__) && defined(__GNUC__) +# elif (defined(__arm__) || defined(__aarch64__)) && defined(__GNUC__) // FIXME: Can we safely always call this for __GNUC__ everywhere? const char *Start = static_cast<const char *>(Addr); const char *End = Start + Len; |