MCPcopy Create free account
hub / github.com/F-Stack/f-stack / load_xcr

Function load_xcr

freebsd/amd64/include/cpufunc.h:472–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470}
471
472static __inline void
473load_xcr(u_int reg, u_long val)
474{
475 u_int low, high;
476
477 low = val;
478 high = val >> 32;
479 __asm __volatile("xsetbv" : : "c" (reg), "a" (low), "d" (high));
480}
481
482/*
483 * Global TLB flush (except for thise for pages marked PG_G)

Callers 5

restore_guest_fpustateFunction · 0.50
save_guest_fpustateFunction · 0.50
vmx_emulate_xsetbvFunction · 0.50
fpuresumeFunction · 0.50
fpuinitFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected