mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
Commit5f9f41c474("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:5f9f41c474("MIPS: kernel: Prepare the JR instruction for emulation on MIPS R6") Cc: <[email protected]> # 4.0+ Signed-off-by: Markos Chandras <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/10583/ Signed-off-by: Ralf Baechle <[email protected]>