Fix AVX OS support detection
authorJan Kotas <jkotas@microsoft.com>
Fri, 1 May 2015 20:24:30 +0000 (13:24 -0700)
committerJan Kotas <jkotas@microsoft.com>
Fri, 1 May 2015 20:24:30 +0000 (13:24 -0700)
commit3f0ab1fd8394754d6cbc7c4810a6873ea37453fa
treee4e9106638412fc7742600444169a2107dca8cd3
parent722ae33e917c1346959d2c3b7f90f36f29bbefcf
Fix AVX OS support detection

In order to check for OS support for AVX, we need to add a check for the OSXSAVE bit in SetCpuInfo in the EEJItManager. In addition, the arch spec indicates that bits 0x6 of xcr0 (obtained by executing xgetbv instruction with ecx == 0) must be set. This fix adds both of these, although the CRT uses only the check of the two bits from SetCpuInfo.

(Change made by @CarolEidt)

[tfs-changeset: 1463578]
src/vm/amd64/AsmHelpers.asm
src/vm/codeman.cpp