From: Paul Floyd Date: Sat, 11 May 2024 16:39:23 +0000 (+0200) Subject: Fix build failure on arm/mips/ppc X-Git-Tag: VALGRIND_3_24_0~146 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f55393e718c6e983acdf4a78d92a5e86ab548a55;p=thirdparty%2Fvalgrind.git Fix build failure on arm/mips/ppc arm64_cache_block_size is, as the name implies, arm64 only. --- diff --git a/coregrind/m_cache.c b/coregrind/m_cache.c index 24d8fd935..2b32660c4 100644 --- a/coregrind/m_cache.c +++ b/coregrind/m_cache.c @@ -543,11 +543,13 @@ get_cache_info(VexArchInfo *vai) static Bool get_cache_info(VexArchInfo *vai) { +#if defined(VGA_arm64) unsigned long val; asm volatile("mrs %0, dczid_el0" : "=r" (val)); // The ARM manual says that 4 bits are used but 9 is the maximum vg_assert(val <= 9); vai->arm64_cache_block_size = val; +#endif vai->hwcache_info.icaches_maintain_coherence = False; return False; // not yet