Commit c12bfa0e authored by Erik de Castro Lopo's avatar Erik de Castro Lopo

libFLAC: Fix cpuid detecton on old Cyrix CPUs

Some old CPUs (eg Cyrix) set EDX but not ECX when executing CPUID.
One of the solutions is to clear ECX before calling cpuid. From
https://bugzilla.mozilla.org/show_bug.cgi?id=1096651#c9 bug

Patch-from: lvqcl <lvqcl.mail@gmail.com>
parent 74e751c4
......@@ -78,6 +78,7 @@ cident FLAC__cpu_info_asm_ia32
cpuid
cmp eax, 1
jb .no_cpuid
xor ecx, ecx
mov eax, 1
cpuid
mov ebx, [esp + 8]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment