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 <damarion@cisco.com>
This commit is contained in:
Damjan Marion
2016-03-03 18:22:02 +01:00
parent 76f78ec39a
commit 7e437bce90

View File

@ -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)
{