]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: jump_label.c: Correct the span of the J instruction
authorMaciej W. Rozycki <macro@codesourcery.com>
Mon, 17 Nov 2014 16:09:54 +0000 (16:09 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 19 Nov 2014 17:22:08 +0000 (18:22 +0100)
commit2588d5ed1b06e20b14aeb6dc691084d0fe58980d
tree962a10905af43e16423a1a0878fa6a87deae78ea
parent750c6b65d2b1f6ec01e2078af43c626fdf156bee
MIPS: jump_label.c: Correct the span of the J instruction

Correct the check for the span of the 256MB segment addressable by the J
instruction according to this instruction's semantics.  The calculation
of the jump target is applied to the address of the delay-slot
instruction that immediately follows.  Adjust the check accordingly by
adding 4 to `e->code' that holds the address of the J instruction
itself.

Signed-off-by: Maciej W. Rozycki <macro@codesourcery.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8515/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/jump_label.c