1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-29 16:30:19 +02:00

Stop setting the thumb bit except on jumps to veneers

Thanks to the previous commit, the jump targets should all be correct.
This commit is contained in:
Icecream95 2020-04-09 20:37:12 +12:00
parent 8045386a45
commit 7f5f26269f
No known key found for this signature in database
GPG key ID: 339D18472C107D93

View file

@ -323,7 +323,7 @@ read_jmp_offset(uint32_t *loc)
static void
patch_jmp_offset(uint32_t *loc, int32_t v)
{
write_wide_thumb(loc, patch_thumb_jump(read_wide_thumb(loc), v | 1));
write_wide_thumb(loc, patch_thumb_jump(read_wide_thumb(loc), v));
}
static void
@ -406,7 +406,7 @@ read_jcc_offset(uint32_t *loc)
static void
patch_jcc_offset(uint32_t *loc, int32_t v)
{
write_wide_thumb(loc, patch_thumb_cc_jump(read_wide_thumb(loc), v | 1));
write_wide_thumb(loc, patch_thumb_cc_jump(read_wide_thumb(loc), v));
}
static void