]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Split the function of the PCB_FPU flags into two: PCB_FPU now indicates that
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>
Sun, 17 Nov 2013 14:44:22 +0000 (14:44 +0000)
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>
Sun, 17 Nov 2013 14:44:22 +0000 (14:44 +0000)
commitdebe44551207018d9b9e123536693e74acfd0bbd
treefaec530c93bef836627d6a6f15ff9981b38e2dbf
parent309c874c28b28bc44937a9410bfbbe2a7af7a468
Split the function of the PCB_FPU flags into two: PCB_FPU now indicates that
the actual FPU is enabled, while PCB_FPREGS indicates that the FPU state
structure in the PCB is valid. This separation reflects the situation on
FPU-less systems in which the FP state is used by the emulator but we don't
actually want to try to turn on the non-existant FPU.

Use this flag to save and restore FP regs properly on both AIM and Book-E.
As a side effect, this sets up hard-FP and Altivec on Book-E CPUs with such
abilities except for a trap handler to call enable_fpu()/enable_altivec().
sys/conf/files.powerpc
sys/powerpc/booke/trap.c
sys/powerpc/include/pcb.h
sys/powerpc/powerpc/exec_machdep.c
sys/powerpc/powerpc/fpu.c
sys/powerpc/powerpc/swtch32.S