• Joseph Myers's avatar
    powerpc: fix e500 SPE float SIGFPE generation · 01c9ccee
    Joseph Myers authored
    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: default avatarJoseph Myers <joseph@codesourcery.com>
    Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
    01c9ccee
math_efp.c 20.3 KB