1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

enable AVX support

This commit is contained in:
Stefan Lankes 2015-07-16 21:28:43 +02:00
parent 4987fac1ce
commit fa73b14352

View file

@ -209,8 +209,8 @@ int cpu_detection(void) {
if (has_sse())
xcr0 |= 0x2;
if (has_avx())
xcr0 |= 0x3;
kprintf("Set XCR to 0x%llx\n", xcr0);
xcr0 |= 0x4;
kprintf("Set XCR0 to 0x%llx\n", xcr0);
xsetbv(0, xcr0);
}