]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Fix branch emulation of branch likely instructions.
authorRalf Baechle <ralf@linux-mips.org>
Thu, 22 May 2014 21:19:00 +0000 (23:19 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 22 May 2014 23:00:26 +0000 (01:00 +0200)
commit3217e30be486d9d562ff0f370d56828af3e8dc4e
tree2d7a21e12a66b126ac3933074cd1bf7b2b00d76a
parent5c59dcd219b7a7ceebb38c5ff84842f4d273d586
MIPS: Fix branch emulation of branch likely instructions.

Two issues:

  o For beql_op, beql_op, bne_op, bnel_op, blez_op, blezl_op, bgtz_op and
    bgtzl_op the wrong field was being checked for the instruction opcode.
  o For blez_op / blezl_op and bgtz_op / bgtzl_op the test was testing
    for the wrong opcode.

This bug got introduced by 88ce31df3ab04c6b6133053802e2e590fc2d20d0 [MIPS
Kprobes: Refactor branch emulation].

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Acked-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Acked-by: Victor Kamensky <kamensky@cisco.com>
arch/mips/kernel/branch.c