]> git.droids-corp.org - dpdk.git/commitdiff
config/ppc: fix native build with GCC 4.8.5 on RHEL 7
authorDavid Christensen <drc@linux.vnet.ibm.com>
Wed, 3 Nov 2021 20:01:26 +0000 (13:01 -0700)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 4 Nov 2021 08:12:55 +0000 (09:12 +0100)
The POWER meson.build file incorrectly checks if the detected CPU is
"greater than" POWER8 when it should actually test for "greater than or
equal to" POWER8.  Fixed the comparison operator.

Bugzilla ID: 875
Fixes: 750196880843 ("config/ppc: select instruction set for IBM Power10")
Signed-off-by: David Christensen <drc@linux.vnet.ibm.com>
config/ppc/meson.build

index cba8222163938d8e3ad57c32dd3da22fe5f1855b..1cba44011fe992c85595f66cbed3dfc65ca4c4b9 100644 (file)
@@ -89,7 +89,7 @@ int main() {
             else
                 error('Compiler does not support POWER@0@ platform'.format(cpu))
             endif
-            if cpu > 8
+            if cpu >= 8
                 cpu_instruction_set = 'power'+cpu.to_string()
             else
                 error('Compiler does not support POWER@0@ platform'.format(cpu))