From 7e437bce90ba9bff3df570f337304df1ce1a4fbd Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Thu, 3 Mar 2016 18:22:02 +0100 Subject: Use CRC32 instruction only when build for SSE4.2 enabled platforms This fixes SIGILL crash observed on Penryn CPU Change-Id: I960878d88f0f088847d4d86605ef082f6600e2c7 Signed-off-by: Damjan Marion --- vppinfra/vppinfra/bihash_24_8.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vppinfra/vppinfra/bihash_24_8.h b/vppinfra/vppinfra/bihash_24_8.h index c0dff8ccfcd..e2ad8f91863 100644 --- a/vppinfra/vppinfra/bihash_24_8.h +++ b/vppinfra/vppinfra/bihash_24_8.h @@ -38,7 +38,7 @@ static inline int clib_bihash_is_free_24_8 (clib_bihash_kv_24_8_t *v) return 0; } -#if !defined(__powerpc64__) && !defined(__aarch64__) +#if __SSE4_2__ static inline u32 crc_u32(u32 data, u32 value) { -- cgit 1.2.3-korg