]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
MIPS: R2-on-R6 MULTU/MADDU/MSUBU emulation bugfix
authorLeonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Thu, 25 Aug 2016 17:37:38 +0000 (10:37 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 20 Jun 2017 08:46:38 +0000 (10:46 +0200)
commitacc1a1feec3dc40689b4a4161dc113cf4d6d77bb
treedf0a46b635a21e859035cd63cc951f3a3587fbf2
parent8c3dbb0a52242daf9edd5d5fd4db5bce70aa3254
MIPS: R2-on-R6 MULTU/MADDU/MSUBU emulation bugfix

BugLink: http://bugs.launchpad.net/bugs/1691369
commit d65e5677ad5b3a49c43f60ec07644dc1f87bbd2e upstream.

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 <Leonid.Yegoshin@imgtec.com>
Reported-by: Nikola.Veljkovic@imgtec.com
Cc: paul.burton@imgtec.com
Cc: yamada.masahiro@socionext.com
Cc: akpm@linux-foundation.org
Cc: andrea.gelmini@gelma.net
Cc: macro@imgtec.com
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14043/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
arch/mips/kernel/mips-r2-to-r6-emul.c