|
From: <sv...@va...> - 2014-05-03 21:28:07
|
Author: sewardj
Date: Sat May 3 21:28:00 2014
New Revision: 13932
Log:
VG_(invalidate_icache) for ARM64: fix incorrect computation of cache
line sizes.
Modified:
trunk/coregrind/m_libcproc.c
Modified: trunk/coregrind/m_libcproc.c
==============================================================================
--- trunk/coregrind/m_libcproc.c (original)
+++ trunk/coregrind/m_libcproc.c Sat May 3 21:28:00 2014
@@ -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.
|