]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc: Fix FPU fsqrt emulation special case results
authorjhibbits <jhibbits@FreeBSD.org>
Wed, 16 Jan 2019 03:52:43 +0000 (03:52 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Wed, 16 Jan 2019 03:52:43 +0000 (03:52 +0000)
commit2cdda6b1dacce493a424d8eb57270ec0464ebe8a
treeb6ad2248e92a1495d687e6cc5f9472a7ed3eace2
parentc8609de4c26d93d8c1c2b47d229102965fc3d6b3
powerpc: Fix FPU fsqrt emulation special case results

If fsqrts is emulated with +INF as its argument, the 0 return value causes a
NULL pointer dereference, panicking the system.  Follow the PowerISA and
return +INF with no FP exception.

MFC after: 1 week
sys/powerpc/fpu/fpu_sqrt.c