]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix build failure on arm/mips/ppc
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 11 May 2024 16:39:23 +0000 (18:39 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 11 May 2024 16:41:22 +0000 (18:41 +0200)
arm64_cache_block_size is, as the name implies, arm64 only.

coregrind/m_cache.c

index 24d8fd9356478c8383487c0862ad8992d9d09e74..2b32660c449b3d9fcf6ca035a409237e613154be 100644 (file)
@@ -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