Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F101990315
D34736.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
717 B
Referenced Files
None
Subscribers
None
D34736.diff
View Options
diff --git a/contrib/llvm-project/compiler-rt/lib/builtins/clear_cache.c b/contrib/llvm-project/compiler-rt/lib/builtins/clear_cache.c
--- a/contrib/llvm-project/compiler-rt/lib/builtins/clear_cache.c
+++ b/contrib/llvm-project/compiler-rt/lib/builtins/clear_cache.c
@@ -130,7 +130,10 @@
__asm __volatile("dsb ish");
}
__asm __volatile("isb sy");
-#elif defined(__powerpc64__)
+#elif defined(__powerpc__)
+ // Newer CPUs have a bigger line size made of multiple blocks, so the
+ // following value is a minimal common denominator for what used to be
+ // a single block cache line and is therefore inneficient.
const size_t line_size = 32;
const size_t len = (uintptr_t)end - (uintptr_t)start;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 7, 6:29 AM (21 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14506123
Default Alt Text
D34736.diff (717 B)
Attached To
Mode
D34736: powerpc: implement __clear_cache
Attached
Detach File
Event Timeline
Log In to Comment