]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc: fix e500 SPE float SIGFPE generation
authorJoseph Myers <joseph@codesourcery.com>
Mon, 4 Nov 2013 16:55:05 +0000 (16:55 +0000)
committerScott Wood <scottwood@freescale.com>
Wed, 8 Jan 2014 00:43:42 +0000 (18:43 -0600)
commit01c9ccee3c3051d0a37af9af2938a15a06448964
treee14a3868f4ecac344384572cd579565bba1139db
parent28fbf1d540920ad6722fa6ac15237a307932bc9b
powerpc: fix e500 SPE float SIGFPE generation

The e500 SPE floating-point emulation code is called from
SPEFloatingPointException and SPEFloatingPointRoundException in
arch/powerpc/kernel/traps.c.  Those functions have support for
generating SIGFPE, but do_spe_mathemu and speround_handler don't
generate a return value to indicate that this should be done.  Such a
return value should depend on whether an exception is raised that has
been set via prctl to generate SIGFPE.  This patch adds the relevant
logic in these functions so that SIGFPE is generated as expected by
the glibc testsuite.

Signed-off-by: Joseph Myers <joseph@codesourcery.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/math-emu/math_efp.c