util: Force ESI register for cpuid's ebx result.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 9 Oct 2009 12:22:42 +0000 (13:22 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 9 Oct 2009 12:25:16 +0000 (13:25 +0100)
commit00ffef383c62ca6cd0d5687539dc45fecfbefeec
treefe3d34da33ace562889bb442c07ba2d9626f66d8
parentc4d54b62f5491dbec9930563209639f8fb7dcf2e
util: Force ESI register for cpuid's ebx result.

Fixes a segfault and better code. Unfortunately using an arbitrary
register ("=r") causes the gcc to abort when the code is optimized saying
it can't satisfy the constraint. Setting seems to do the trick.
src/gallium/auxiliary/util/u_cpu_detect.c