From e1d0a9c832ef3e92faaed7f290ff56c0ed8a9d94 Mon Sep 17 00:00:00 2001 From: Matthias Baesken Date: Tue, 18 Feb 2025 13:20:05 +0000 Subject: [PATCH] 8350202: Tune for Power10 CPUs on Linux ppc64le Reviewed-by: mdoerr --- make/autoconf/flags-cflags.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make/autoconf/flags-cflags.m4 b/make/autoconf/flags-cflags.m4 index 61645cda6dd..1674d10fa91 100644 --- a/make/autoconf/flags-cflags.m4 +++ b/make/autoconf/flags-cflags.m4 @@ -719,7 +719,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP], elif test "x$FLAGS_CPU" = xppc64le; then # Little endian machine uses ELFv2 ABI. # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. - $1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -DABI_ELFv2 -mcpu=power8 -mtune=power8" + $1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -DABI_ELFv2 -mcpu=power8 -mtune=power10" fi elif test "x$FLAGS_CPU" = xs390x; then $1_CFLAGS_CPU="-mbackchain -march=z10" @@ -740,7 +740,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP], if test "x$FLAGS_CPU" = xppc64le; then # Little endian machine uses ELFv2 ABI. # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. - $1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -DABI_ELFv2 -mcpu=power8 -mtune=power8" + $1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -DABI_ELFv2 -mcpu=power8 -mtune=power10" fi fi if test "x$OPENJDK_TARGET_OS" = xaix; then