Save VFP state on fork().

Update the copy of VFP state in PCB before it is cloned for new process.

MFC after:	2 weeks
This commit is contained in:
mmel 2017-03-26 08:36:20 +00:00
parent 1f0e4d50b2
commit 45f6b40f83

View File

@ -110,6 +110,14 @@ cpu_fork(register struct thread *td1, register struct proc *p2,
#ifndef CPU_XSCALE_CORE3
pmap_use_minicache(td2->td_kstack, td2->td_kstack_pages * PAGE_SIZE);
#endif
#endif
#ifdef VFP
/* Store actual state of VFP */
if (curthread == td1) {
critical_enter();
vfp_store(&td1->td_pcb->pcb_vfpstate, false);
critical_exit();
}
#endif
td2->td_pcb = pcb2;