forked from mono/mono
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the JIT-ed CPUID hack from mono-hwcap-x86.
A proper workaround for the 32-bit PIC issue exists: Using xchg to unclobber EBX which is used by the compiler. This means we can just use inline assembly to issue the instruction, eliminating the hack where we JIT-compiled a function to do the CPUID. This patch also makes it so that we use MSVC's __cpuid intrinsic on both 32-bit and 64-bit x86 since it's available on both.
- Loading branch information
Alex Rønne Petersen
committed
Jul 20, 2013
1 parent
08d4170
commit 24c84e6
Showing
1 changed file
with
29 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters