MIPS: R2-on-R6 MULTU/MADDU/MSUBU emulation bugfix

[email protected]
Newsgroups gmane.linux.ports.mips.cvs
Message-ID <S23991965AbcLWNRKWU0pt/[email protected]>
Author: Leonid Yegoshin <[email protected]> Thu Aug 25 10:37:38 2016 -0700
Comitter: Ralf Baechle <[email protected]> Tue Dec 20 00:03:25 2016 +0100
Commit: 05fc5886978d0ed23f6929085bba12fd2727d6e2
Gitweb: https://git.linux-mips.org/g/ralf/linux/05fc5886978d
Branch: master

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]>

---

 arch/mips/kernel/mips-r2-to-r6-emul.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.