@@ -334,7 +334,6 @@ patch_aarch64_21rx(unsigned char *location, uint64_t value)
334334 patch_aarch64_21r (location , value );
335335}
336336
337-
338337// 21-bit relative branch.
339338void
340339patch_aarch64_19r (unsigned char * location , uint64_t value )
@@ -350,21 +349,6 @@ patch_aarch64_19r(unsigned char *location, uint64_t value)
350349 set_bits (loc32 , 5 , value , 2 , 19 );
351350}
352351
353- // 16-bit relative branch.
354- void
355- patch_aarch64_14r (unsigned char * location , uint64_t value )
356- {
357- uint32_t * loc32 = (uint32_t * )location ;
358- assert (IS_AARCH64_TEST_AND_BRANCH (* loc32 ));
359- value -= (uintptr_t )location ;
360- // Check that we're not out of range of 16 signed bits:
361- assert ((int64_t )value >= - (1 << 15 ));
362- assert ((int64_t )value < (1 << 15 ));
363- // Since instructions are 4-byte aligned, only use 14 bits:
364- assert (get_bits (value , 0 , 2 ) == 0 );
365- set_bits (loc32 , 5 , value , 2 , 14 );
366- }
367-
368352// 28-bit relative branch.
369353void
370354patch_aarch64_26r (unsigned char * location , uint64_t value )
0 commit comments