From: Ronald S. Bultje Date: Wed, 30 Jan 2013 17:48:14 +0000 (-0800) Subject: x86-32: use simple nop codes for <= sse X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=ba5ce76f7506b5f3d083a9eda8c4705e192f15ff;p=x264.git x86-32: use simple nop codes for <= sse The "CentaurHauls family 6 model 9 stepping 8" family of CPUs (flags: fpu vme de pse tsc msr cx8 sep mtrr pge mov pat mmx fxsr sse up rng rng_en ace ace_en) SIGILLs on long nop codes. --- diff --git a/common/x86/x86inc.asm b/common/x86/x86inc.asm index f45bdb4e..153883cd 100644 --- a/common/x86/x86inc.asm +++ b/common/x86/x86inc.asm @@ -735,6 +735,7 @@ SECTION .note.GNU-stack noalloc noexec nowrite progbits ; All subsequent functions (up to the next INIT_CPUFLAGS) is built for the specified cpu. ; You shouldn't need to invoke this macro directly, it's a subroutine for INIT_MMX &co. %macro INIT_CPUFLAGS 0-2 + CPU amdnop %if %0 >= 1 %xdefine cpuname %1 %assign cpuflags cpuflags_%1 @@ -756,6 +757,9 @@ SECTION .note.GNU-stack noalloc noexec nowrite progbits %elifidn %1, sse3 %define movu lddqu %endif + %if ARCH_X86_64 == 0 && notcpuflag(sse2) + CPU basicnop + %endif %else %xdefine SUFFIX %undef cpuname