Commit 7b3ad00a authored by Predrag Rudic's avatar Predrag Rudic Committed by Commit Bot

MIPS R6 Fix jump when called with RelocInfo::NONE

Change-Id: Ia5028a01c302c100169c24140e1bde2dce76ce4a
Reviewed-on: https://chromium-review.googlesource.com/1120182Reviewed-by: 's avatarIvica Bogosavljevic <ivica.bogosavljevic@mips.com>
Commit-Queue: Ivica Bogosavljevic <ivica.bogosavljevic@mips.com>
Cr-Commit-Position: refs/heads/master@{#54137}
parent a99df0b3
......@@ -3729,8 +3729,9 @@ void TurboAssembler::Jump(intptr_t target, RelocInfo::Mode rmode,
if (IsMipsArchVariant(kMips32r6) && bd == PROTECT) {
uint32_t lui_offset, jic_offset;
UnpackTargetAddressUnsigned(target, lui_offset, jic_offset);
DCHECK(MustUseReg(rmode));
RecordRelocInfo(rmode, target);
if (MustUseReg(rmode)) {
RecordRelocInfo(rmode, target);
}
lui(t9, lui_offset);
Jump(t9, jic_offset, al, zero_reg, Operand(zero_reg), bd);
} else {
......
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