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:22:42 +0000 (13:22 +0100)
commitc595dea23c6e77dc5d44a7f4b86916b72e09f970
treeb3c9fb25d90594da79910261bef89195a17740b5
parent69588d7ed59a019a5272a9cc391e30c47d006aee
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