diff options
author | Sterling Augustine <saugustine@google.com> | 2017-07-31 22:23:17 +0000 |
---|---|---|
committer | Sterling Augustine <saugustine@google.com> | 2017-07-31 22:23:17 +0000 |
commit | 81fd449238e42fe3f34292bc34b0a15a27b3d44f (patch) | |
tree | e99dcf8b2d78a42f061bce9feb7f1c2e34314567 /compiler-rt/lib/builtins/clear_cache.c | |
parent | 4a94d8d5f7ec99c6b5ab22d566ed5a5a1b4ce055 (diff) | |
download | bcm5719-llvm-81fd449238e42fe3f34292bc34b0a15a27b3d44f.tar.gz bcm5719-llvm-81fd449238e42fe3f34292bc34b0a15a27b3d44f.zip |
Add powerpc64 to compiler-rt build infrastructure.
Summary: Add powerpc64 to compiler-rt build infrastructure.
Reviewers: timshen
Reviewed By: timshen
Subscribers: nemanjai, dberris, mgorny, aheejin, cfe-commits
Differential Revision: https://reviews.llvm.org/D36108
llvm-svn: 309634
Diffstat (limited to 'compiler-rt/lib/builtins/clear_cache.c')
-rw-r--r-- | compiler-rt/lib/builtins/clear_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/builtins/clear_cache.c b/compiler-rt/lib/builtins/clear_cache.c index 3c6570db6d5..e21ac08f8a6 100644 --- a/compiler-rt/lib/builtins/clear_cache.c +++ b/compiler-rt/lib/builtins/clear_cache.c @@ -165,7 +165,7 @@ void __clear_cache(void *start, void *end) { for (addr = xstart; addr < xend; addr += icache_line_size) __asm __volatile("ic ivau, %0" :: "r"(addr)); __asm __volatile("isb sy"); -#elif defined (__powerpc64__) && defined(__LITTLE_ENDIAN__) +#elif defined (__powerpc64__) const size_t line_size = 32; const size_t len = (uintptr_t)end - (uintptr_t)start; |