]> git.baikalelectronics.ru Git - kernel.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)
commite1abaa43e2d63cff869e84d774c345d612a14575
treee14a3868f4ecac344384572cd579565bba1139db
parent7ffc791faddbbb64b9fe465fda355494f0b4b145
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