| 308 | } |
| 309 | |
| 310 | void |
| 311 | fpuresume(void *addr) |
| 312 | { |
| 313 | u_long cr0; |
| 314 | |
| 315 | cr0 = rcr0(); |
| 316 | stop_emulating(); |
| 317 | fninit(); |
| 318 | if (use_xsave) |
| 319 | load_xcr(XCR0, xsave_mask); |
| 320 | fpurestore(addr); |
| 321 | load_cr0(cr0); |
| 322 | } |
| 323 | |
| 324 | /* |
| 325 | * Enable XSAVE if supported and allowed by user. |
no test coverage detected