eal/ppc: use compiler builtins for atomics
authorDavid Christensen <drc@linux.vnet.ibm.com>
Thu, 9 Sep 2021 19:42:43 +0000 (12:42 -0700)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 14 Oct 2021 14:51:25 +0000 (16:51 +0200)
commitb698651b916a430ff4e0ef209c3dd0e55ae9a675
tree0e973fdc8cbcc558ea3b05ee2431fb8cf146f2ae
parent567473433b7e63e12943be29926c13bd491bcca6
eal/ppc: use compiler builtins for atomics

Replace existing PPC assembly code for rte_atomicXX ops with compiler
atomic builtins as previously adopted by DPDK (see [1] and [2]).  This
has the additional benefit of resolving a POWER10 build failure due to an
outstanding gcc issue which fails on the existing PPC assembly code [3].

[1] https://www.dpdk.org/blog/2021/03/26/dpdk-adopts-the-c11-memory-model/
[2] https://doc.dpdk.org/guides/rel_notes/deprecation.html
[3] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98519

Signed-off-by: David Christensen <drc@linux.vnet.ibm.com>
lib/eal/ppc/include/rte_atomic.h