aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorStephen Chivers <[email protected]>2014-02-21 12:29:48 +1100
committerBenjamin Herrenschmidt <[email protected]>2014-04-07 10:33:11 +1000
commitc59c015b6aa5bc18d01c8e482149086cafd7332a (patch)
treef6fd1b1aa1f52fd43b326ef3078375b15177f1a8 /lib/string_helpers.c
parent18a1a7a1d862ae0794a0179473d08a414dd49234 (diff)
powerpc: Correct emulated mtfsf instruction
The emulated (CONFIG_MATH_EMULATION_FULL) PowerPC Floating Point instruction mtfsf does not correctly copy bits from its source register to the Floating Point Status and Register (FPSCR). The error is in the preparation of the mask used to select the bits to be copied from the source to the FPSCR. Execution of the mtfsf instruction does not produce the same results on a MPC8548 platform (emulated floating point) as on MPC7410 or 440EP platforms (hardware floating point). This error has been detected using a Freescale MPC8548 based platform and the patch below tested using that platform. The patch is based on the patch(es) provided by Gabriel Paubert and analysis by Gabriel, James Yang and David Laight. Signed-off-by: Stephen Chivers <[email protected]> Signed-off-by: Gabriel Paubert <[email protected]> Tested-by: Stephen Chivers <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions