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:
parent
b24979e448
commit
67320feba5
1 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue