From: Damjan Marion Date: Mon, 17 Apr 2023 14:11:57 +0000 (+0000) Subject: vppinfra: SFENCE requires SSE2 to be enabled X-Git-Tag: v23.10-rc0~78 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=687823f0178cfc672bcbaccaf27825047b18180d vppinfra: SFENCE requires SSE2 to be enabled Change-Id: I0469bb91107cf0acced3cd19820db8d3712701c0 Type: fix Fixes: eaabe07 Signed-off-by: Damjan Marion --- diff --git a/src/vppinfra/clib.h b/src/vppinfra/clib.h index dab7eeb6f39..d14582492d6 100644 --- a/src/vppinfra/clib.h +++ b/src/vppinfra/clib.h @@ -181,7 +181,7 @@ /* Full memory barrier (read and write). */ #define CLIB_MEMORY_BARRIER() __sync_synchronize () -#if __x86_64__ +#if __SSE__ #define CLIB_MEMORY_STORE_BARRIER() __builtin_ia32_sfence () #else #define CLIB_MEMORY_STORE_BARRIER() __sync_synchronize ()