Commit 1c4482ec authored by Peng Fei's avatar Peng Fei Committed by Commit Bot

[mips32] Fix the target address when relocate relative reference.

Change-Id: Ie44615daa6e0bef13a969cfb4fa62654ce31f448
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1581239
Commit-Queue: peng fei <pfgenyun@gmail.com>
Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61110}
parent cce8439f
......@@ -137,6 +137,7 @@ Noj Vek <nojvek@gmail.com>
Oleksandr Chekhovskyi <oleksandr.chekhovskyi@gmail.com>
Paolo Giarrusso <p.giarrusso@gmail.com>
Patrick Gansterer <paroga@paroga.com>
Peng Fei <pfgenyun@gmail.com>
Peter Rybin <peter.rybin@gmail.com>
Peter Varga <pvarga@inf.u-szeged.hu>
Peter Wong <peter.wm.wong@gmail.com>
......
......@@ -3858,7 +3858,7 @@ void Assembler::RelocateRelativeReference(RelocInfo::Mode rmode, Address pc,
if (imm == kEndOfJumpChain) {
return;
}
imm += pc_delta;
imm -= pc_delta;
DCHECK_EQ(imm & 3, 0);
PatchLuiOriImmediate(pc, imm, instr1, 0 * kInstrSize, instr2, ori_offset);
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment