VG_(invalidate_icache) for ARM64: fix incorrect computation of cache
line sizes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13932 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_libcproc.c b/coregrind/m_libcproc.c
index 9d65d9d..25b295c 100644
--- a/coregrind/m_libcproc.c
+++ b/coregrind/m_libcproc.c
@@ -820,8 +820,8 @@
const UInt icache_line_size_power_of_two =
(cache_type_register & kICacheLineSizeMask) >> kICacheLineSizeShift;
- const UInt dcache_line_size_ = 1 << dcache_line_size_power_of_two;
- const UInt icache_line_size_ = 1 << icache_line_size_power_of_two;
+ const UInt dcache_line_size_ = 4 * (1 << dcache_line_size_power_of_two);
+ const UInt icache_line_size_ = 4 * (1 << icache_line_size_power_of_two);
Addr start = (Addr)ptr;
// Sizes will be used to generate a mask big enough to cover a pointer.