Encounter a crash for the line
shrx edi,eax,edi
in ip_csum_fold. The target cpu is ivy bridge which does not support
shrx instruction.
Type: fix
Fixes:
e6709ff37dc0f3a58ed5ad98aace73fe801f1e9d
Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: Icc922d3b2ebfcfa721f63946a213b6c492874a9a
ip_csum_fold (ip_csum_t c)
{
/* Reduce to 16 bits. */
ip_csum_fold (ip_csum_t c)
{
/* Reduce to 16 bits. */
+#if defined(__x86_64__) && defined(__BMI2__)
u64 tmp;
asm volatile(
/* using ADC is much faster than mov, shift, add sequence
u64 tmp;
asm volatile(
/* using ADC is much faster than mov, shift, add sequence