guile-commits
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]