[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 04/13: Fix reloc for jmpi and calli
From: |
Andy Wingo |
Subject: |
[Guile-commits] 04/13: Fix reloc for jmpi and calli |
Date: |
Thu, 4 Apr 2019 06:11:42 -0400 (EDT) |
wingo pushed a commit to branch lightening
in repository guile.
commit e95fb91b96b318a70165546cb48be0dc9587a24b
Author: Andy Wingo <address@hidden>
Date: Thu Apr 4 11:17:46 2019 +0200
Fix reloc for jmpi and calli
---
lightening/x86-cpu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lightening/x86-cpu.c b/lightening/x86-cpu.c
index 1c1da2b..5c1b298 100644
--- a/lightening/x86-cpu.c
+++ b/lightening/x86-cpu.c
@@ -2638,7 +2638,7 @@ callr(jit_state_t *_jit, int32_t r0)
static void
calli(jit_state_t *_jit, jit_word_t i0)
{
- ptrdiff_t rel32 = i0 - (_jit->pc.w + 4);
+ ptrdiff_t rel32 = i0 - (_jit->pc.w + 1 + 4);
if (INT32_MIN <= rel32 && rel32 <= INT32_MAX)
{
ic(_jit, 0xe8);
@@ -2664,7 +2664,7 @@ jmpr(jit_state_t *_jit, int32_t r0)
static void
jmpi(jit_state_t *_jit, jit_word_t i0)
{
- ptrdiff_t rel32 = i0 - (_jit->pc.w + 4);
+ ptrdiff_t rel32 = i0 - (_jit->pc.w + 1 + 4);
if (INT32_MIN <= rel32 && rel32 <= INT32_MAX)
{
ic(_jit, 0xe9);
- [Guile-commits] branch lightening updated (2db4ccd -> 39d1ed3), Andy Wingo, 2019/04/04
- [Guile-commits] 04/13: Fix reloc for jmpi and calli,
Andy Wingo <=
- [Guile-commits] 03/13: Merge from upstream Lightening, Andy Wingo, 2019/04/04
- [Guile-commits] 02/13: Fix implementation of jit_{gpr, fpr}_is_callee_save, Andy Wingo, 2019/04/04
- [Guile-commits] 01/13: jit: Fix inter-instruction relocs., Andy Wingo, 2019/04/04
- [Guile-commits] 05/13: Fix jit_gpr_is_callee_save usage, Andy Wingo, 2019/04/04
- [Guile-commits] 07/13: Fix JIT bugs, Andy Wingo, 2019/04/04
- [Guile-commits] 08/13: Add assert for jit_address, Andy Wingo, 2019/04/04
- [Guile-commits] 10/13: Merge from upstream Lightening, Andy Wingo, 2019/04/04
- [Guile-commits] 06/13: Merge from upstream Lightening, Andy Wingo, 2019/04/04
- [Guile-commits] 09/13: Fix some aspects of instruction mcode addresses, Andy Wingo, 2019/04/04
- [Guile-commits] 12/13: More various JIT fixen, Andy Wingo, 2019/04/04