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

enable AVX512 support

This commit is contained in:
Stefan Lankes 2016-10-20 00:09:34 +02:00
parent b24979e448
commit 67320feba5

View file

@ -503,6 +503,8 @@ int cpu_detection(void) {
xcr0 |= 0x2;
if (has_avx())
xcr0 |= 0x4;
if (has_avx512f())
xcr0 |= 0xE0;
xsetbv(0, xcr0);
kprintf("Set XCR0 to 0x%llx\n", xgetbv(0));