MIPS: R2-on-R6 MULTU/MADDU/MSUBU emulation bugfix
| Newsgroups | gmane.linux.ports.mips.cvs |
|---|---|
| Message-ID | <S23993387AbcLVLQUVMIUl/[email protected]> |
Author: Leonid Yegoshin <[email protected]> Thu Aug 25 10:37:38 2016 -0700 Comitter: Ralf Baechle <[email protected]> Tue Dec 20 00:04:39 2016 +0100 Commit: c715ee2d919029c9de61e37917e503107e3fcc44 Gitweb: https://git.linux-mips.org/g/ralf/linux/c715ee2d9190 Branch: linux-4.6-stable MIPS instructions MULTU, MADDU and MSUBU emulation requires registers HI/LO to be converted to signed 32bits before 64bit sign extension on MIPS64. Bug was found on running MIPS32 R2 test application on MIPS64 R6 kernel. Fixes: b0a668fb2038 ("MIPS: kernel: mips-r2-to-r6-emul: Add R2 emulator for MIPS R6") Signed-off-by: Leonid Yegoshin <[email protected]> Reported-by: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/14043/ Signed-off-by: Ralf Baechle <[email protected]> (cherry picked from commit 05fc5886978d0ed23f6929085bba12fd2727d6e2) --- arch/mips/kernel/mips-r2-to-r6-emul.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)