Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit e476079

Browse files
This ppc64 implementation of clear_cache works for both big and little endian.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@309848 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 62abea7 commit e476079

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/builtins/clear_cache.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ void __clear_cache(void *start, void *end) {
165165
for (addr = xstart; addr < xend; addr += icache_line_size)
166166
__asm __volatile("ic ivau, %0" :: "r"(addr));
167167
__asm __volatile("isb sy");
168-
#elif defined (__powerpc64__) && defined(__LITTLE_ENDIAN__)
168+
#elif defined (__powerpc64__)
169169
const size_t line_size = 32;
170170
const size_t len = (uintptr_t)end - (uintptr_t)start;
171171

0 commit comments

Comments
 (0)