[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 07/14: Stop setting the thumb bit except on jumps to ven
From: |
Andy Wingo |
Subject: |
[Guile-commits] 07/14: Stop setting the thumb bit except on jumps to veneers |
Date: |
Fri, 12 Jun 2020 10:18:43 -0400 (EDT) |
wingo pushed a commit to branch master
in repository guile.
commit 7f5f26269f7f70dfa78f032b42448b4fbd4ab501
Author: Icecream95 <ixn@keemail.me>
AuthorDate: Thu Apr 9 20:37:12 2020 +1200
Stop setting the thumb bit except on jumps to veneers
Thanks to the previous commit, the jump targets should all be correct.
---
lightening/arm-cpu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lightening/arm-cpu.c b/lightening/arm-cpu.c
index 9f7876e..9b328ad 100644
--- a/lightening/arm-cpu.c
+++ b/lightening/arm-cpu.c
@@ -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
- [Guile-commits] branch master updated (fc13923 -> 3c32704), Andy Wingo, 2020/06/12
- [Guile-commits] 01/14: Switch CI to use Debian stable, Andy Wingo, 2020/06/12
- [Guile-commits] 02/14: Add flag bits to the jit_reloc_kind enum, Andy Wingo, 2020/06/12
- [Guile-commits] 05/14: Use an rsh of 0 for jumps on ARM, Andy Wingo, 2020/06/12
- [Guile-commits] 06/14: Return a function pointer from jit_address, Andy Wingo, 2020/06/12
- [Guile-commits] 08/14: Use bx instead of mov for jumps on ARM, Andy Wingo, 2020/06/12
- [Guile-commits] 09/14: Remove T2_BLXI, Andy Wingo, 2020/06/12
- [Guile-commits] 03/14: Add separate functions for veneer patching, Andy Wingo, 2020/06/12
- [Guile-commits] 04/14: Add a test for local forward and backward jumps, Andy Wingo, 2020/06/12
- [Guile-commits] 07/14: Stop setting the thumb bit except on jumps to veneers,
Andy Wingo <=
- [Guile-commits] 12/14: Add CI jobs for ARM in both instruction sets, Andy Wingo, 2020/06/12
- [Guile-commits] 11/14: Convert BLI to BLXI for jumps to ARM code, Andy Wingo, 2020/06/12
- [Guile-commits] 14/14: Update lightening, Andy Wingo, 2020/06/12
- [Guile-commits] 10/14: Always emit veneers for non-bl jumps to ARM code, Andy Wingo, 2020/06/12
- [Guile-commits] 13/14: Merge branch 'arm-fix' into 'master', Andy Wingo, 2020/06/12