diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2015-06-24 09:52:01 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-07-09 11:11:43 +0200 |
commit | 143fefc8f315cd10e046e6860913c421c3385cb1 (patch) | |
tree | 4bc0ebed3888fd6cb66b04bdccf2d0e2dc178593 /arch/mips/math-emu/ieee754sp.h | |
parent | e9d92d223381f1f3be5d87322b576721d3b93612 (diff) | |
download | linux-143fefc8f315cd10e046e6860913c421c3385cb1.tar.bz2 |
MIPS: Fix erroneous JR emulation for MIPS R6
Commit 5f9f41c474befb4ebbc40b27f65bb7d649241581 ("MIPS: kernel: Prepare
the JR instruction for emulation on MIPS R6") added support for
emulating the JR instruction on MIPS R6 cores but that introduced a bug
which could be triggered when hitting a JALR opcode because the code used
the wrong field in the 'r_format' struct to determine the instruction
opcode. This lead to crashes because an emulated JALR instruction was
treated as a JR one when the R6 emulator was turned off.
Fixes: 5f9f41c474be ("MIPS: kernel: Prepare the JR instruction for emulation on MIPS R6")
Cc: <stable@vger.kernel.org> # 4.0+
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: stable@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/10583/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/math-emu/ieee754sp.h')
0 files changed, 0 insertions, 0 deletions