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:
parent
4987fac1ce
commit
fa73b14352
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue