[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: Jakob Gruber <jgruber@chromium.org> Cr-Commit-Position: refs/heads/master@{#61110}
This commit is contained in:
parent
cce8439f48
commit
1c4482ec3d
1
AUTHORS
1
AUTHORS
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user