powerpc: Fix powerpcspe WRT FPSCR
Summary: Since powerpcspe doesn't have a traditional FPU, there's no FPSCR, and no FPRs. Attempting to use them triggers an illegal instruction trap. Fix this unconditional cleanup of FPSCR by conditionalizing it on the FPU being used in the outgoing thread. Reviewed By: bdragon Differential Revision: https://reviews.freebsd.org/D29452
This commit is contained in:
parent
a94d15af26
commit
6a762cfae1
@ -566,7 +566,8 @@ cleanup_power_extras(struct thread *td)
|
||||
if (pcb_flags & PCB_CDSCR)
|
||||
mtspr(SPR_DSCRP, 0);
|
||||
|
||||
cleanup_fpscr();
|
||||
if (pcb_flags & PCB_FPU)
|
||||
cleanup_fpscr();
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user