Skip to content

Commit b6a2a31

Browse files
committed
Fix cherry pick
1 parent 392153b commit b6a2a31

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

Python/jit.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -308,21 +308,6 @@ patch_aarch64_21r(unsigned char *location, uint64_t value)
308308
set_bits(loc32, 5, value, 2, 19);
309309
}
310310

311-
// 21-bit relative branch.
312-
void
313-
patch_aarch64_19r(unsigned char *location, uint64_t value)
314-
{
315-
uint32_t *loc32 = (uint32_t *)location;
316-
assert(IS_AARCH64_BRANCH_COND(*loc32) || IS_AARCH64_BRANCH_ZERO(*loc32));
317-
value -= (uintptr_t)location;
318-
// Check that we're not out of range of 21 signed bits:
319-
assert((int64_t)value >= -(1 << 20));
320-
assert((int64_t)value < (1 << 20));
321-
// Since instructions are 4-byte aligned, only use 19 bits:
322-
assert(get_bits(value, 0, 2) == 0);
323-
set_bits(loc32, 5, value, 2, 19);
324-
}
325-
326311
// 28-bit relative branch.
327312
void
328313
patch_aarch64_26r(unsigned char *location, uint64_t value)

0 commit comments

Comments
 (0)