[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 339/437: ARM: Correct constants offset check
From: |
Andy Wingo |
Subject: |
[Guile-commits] 339/437: ARM: Correct constants offset check |
Date: |
Mon, 2 Jul 2018 05:14:50 -0400 (EDT) |
wingo pushed a commit to branch lightning
in repository guile.
commit f63d064a10b7f366f519d301600d9040c7bc1a17
Author: Paulo Andrade <address@hidden>
Date: Sun Dec 21 20:55:19 2014 -0200
ARM: Correct constants offset check
* lib/jit_arm.c: Correct check to guard overflow of index
of constants from program counter.
---
ChangeLog | 5 +++++
lib/jit_arm.c | 4 +++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 1fb41d3..d10780a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-12-21 Paulo Andrade <address@hidden>
+
+ * lib/jit_arm.c: Correct check to guard overflow of index
+ of constants from program counter.
+
2014-11-24 Paulo Andrade <address@hidden>
* lib/lightning.c: Remove an optimization to calee save
diff --git a/lib/jit_arm.c b/lib/jit_arm.c
index 66842ee..d65d248 100644
--- a/lib/jit_arm.c
+++ b/lib/jit_arm.c
@@ -1530,7 +1530,9 @@ _emit_code(jit_state_t *_jit)
/* update register live state */
jit_reglive(node);
- if (_jitc->consts.length && _jit->pc.uc - _jitc->consts.data >= 3968) {
+ if (_jitc->consts.length &&
+ (jit_uword_t)_jit->pc.uc -
+ (jit_uword_t)_jitc->consts.patches[0] >= 3968) {
/* longest sequence should be 64 bytes, but preventively
* do not let it go past 128 remaining bytes before a flush */
if (node->next &&
- [Guile-commits] 147/437: Correct test cases in the mips backend., (continued)
- [Guile-commits] 147/437: Correct test cases in the mips backend., Andy Wingo, 2018/07/02
- [Guile-commits] 292/437: AARCH64: Correct assertion test, Andy Wingo, 2018/07/02
- [Guile-commits] 305/437: Consider all callee_save_p regs as live on non trackable jumps, Andy Wingo, 2018/07/02
- [Guile-commits] 40/437: checkin rewrite of i386 assembler, Andy Wingo, 2018/07/02
- [Guile-commits] 295/437: Always mark return registers as live in epilog, Andy Wingo, 2018/07/02
- [Guile-commits] 326/437: Actually install the pkgconfig file., Andy Wingo, 2018/07/02
- [Guile-commits] 325/437: misc: Create a pkg-config file, Andy Wingo, 2018/07/02
- [Guile-commits] 335/437: PPC: Add initial powerpc le support., Andy Wingo, 2018/07/02
- [Guile-commits] 272/437: x86: Correct wrong x87 float indexed store code generation., Andy Wingo, 2018/07/02
- [Guile-commits] 340/437: ARM: Flush cache page by page, Andy Wingo, 2018/07/02
- [Guile-commits] 339/437: ARM: Correct constants offset check,
Andy Wingo <=
- [Guile-commits] 309/437: Do not fail if NULL is passed to init_jit., Andy Wingo, 2018/07/02
- [Guile-commits] 225/437: Second alpha release 1.99a, Andy Wingo, 2018/07/02
- [Guile-commits] 243/437: IA64: Correct code to save/restore r2 used as lightning JIT_FP., Andy Wingo, 2018/07/02
- [Guile-commits] 348/437: S390: Replace s390x filenames with s390, Andy Wingo, 2018/07/02
- [Guile-commits] 376/437: Correct update of on stack vararg double argument pointer, Andy Wingo, 2018/07/02
- [Guile-commits] 378/437: arm: Add initial jit_va_ calls to arm, Andy Wingo, 2018/07/02
- [Guile-commits] 387/437: alpha: Add initial jit_va_ calls to alpha, Andy Wingo, 2018/07/02
- [Guile-commits] 263/437: ARM: Correct wrong offset for load/store of floats., Andy Wingo, 2018/07/02
- [Guile-commits] 317/437: Add the new "range" test., Andy Wingo, 2018/07/02
- [Guile-commits] 174/437: Correct off by one label/note name and add align argument to jit_data, Andy Wingo, 2018/07/02