vppinfra: SFENCE requires SSE2 to be enabled 93/38693/2
authorDamjan Marion <damarion@cisco.com>
Mon, 17 Apr 2023 14:11:57 +0000 (14:11 +0000)
committerFlorin Coras <florin.coras@gmail.com>
Mon, 17 Apr 2023 15:45:26 +0000 (15:45 +0000)
Change-Id: I0469bb91107cf0acced3cd19820db8d3712701c0
Type: fix
Fixes: eaabe07
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vppinfra/clib.h

index dab7eeb..d145824 100644 (file)
 /* 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 ()