MFamd64 r238669:
Force clean FPU state in PCB user FPU save area for PT_I386_{GET,SET}XMMREGS. Reported by: bde MFC after: 1 week
This commit is contained in:
parent
5793dc9994
commit
02cd44f6d4
@ -54,10 +54,12 @@ cpu_ptrace(struct thread *td, int req, void *addr, int data)
|
||||
fpstate = &td->td_pcb->pcb_user_save.sv_xmm;
|
||||
switch (req) {
|
||||
case PT_GETXMMREGS:
|
||||
npxgetregs(td);
|
||||
error = copyout(fpstate, addr, sizeof(*fpstate));
|
||||
break;
|
||||
|
||||
case PT_SETXMMREGS:
|
||||
npxgetregs(td);
|
||||
error = copyin(addr, fpstate, sizeof(*fpstate));
|
||||
fpstate->sv_env.en_mxcsr &= cpu_mxcsr_mask;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user