From 2aed6df4d55480509eefcc44b83011358c67f6e2 Mon Sep 17 00:00:00 2001 From: Alexey Kopytov Date: Fri, 30 Dec 2016 11:35:10 +0300 Subject: [PATCH] Assume 128-byte cache line on AArch64 and PowerPC. --- m4/sb_concurrency_kit.m4 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/m4/sb_concurrency_kit.m4 b/m4/sb_concurrency_kit.m4 index 6113560..dfcada2 100644 --- a/m4/sb_concurrency_kit.m4 +++ b/m4/sb_concurrency_kit.m4 @@ -43,6 +43,12 @@ AS_IF([test "x$sb_cv_lib_ck" = "xsystem"], CK_CFLAGS="-I\$(abs_top_builddir)/third_party/concurrency_kit/include" CK_LIBS="\$(abs_top_builddir)/third_party/concurrency_kit/lib/libck.a" + # Assume 128-byte cache line on AArch64 and PowerPC + case $target_cpu in + powerpc*|aarch64) + CPPFLAGS="${CPPFLAGS} -DCK_MD_CACHELINE=128" + ;; + esac # Add --enable-lse to CK build flags, if LSE instructions are supported by # the target architecture if test "$cross_compiling" = no -a "$host_cpu" = aarch64; then