[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 248/437: Correct wrong example and mt unsafe code in the
From: |
Andy Wingo |
Subject: |
[Guile-commits] 248/437: Correct wrong example and mt unsafe code in the arm backend. |
Date: |
Mon, 2 Jul 2018 05:14:30 -0400 (EDT) |
wingo pushed a commit to branch lightning
in repository guile.
commit 5a2df005c5091b49f3596b97bb47b209aaf7231d
Author: pcpa <address@hidden>
Date: Thu Sep 12 00:24:19 2013 -0300
Correct wrong example and mt unsafe code in the arm backend.
* doc/body.texi: Correct reversed arguments in example of
usage in a (possibly) multi threaded, multiple jit_state_t
environments.
* include/lightning/jit_arm.h, include/lightning/jit_private.h,
lib/jit_arm-cpu.c, lib/jit_arm.c: Make a previously, non
documented, global state private to the related jit_state_t
generating code.
---
ChangeLog | 11 +++++++++++
doc/body.texi | 2 +-
include/lightning/jit_arm.h | 5 -----
include/lightning/jit_private.h | 2 ++
lib/jit_arm-cpu.c | 2 +-
lib/jit_arm.c | 1 -
6 files changed, 15 insertions(+), 8 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c780db0..8119011 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2013-10-10 Paulo Andrade <address@hidden>
+
+ * doc/body.texi: Correct reversed arguments in example of
+ usage in a (possibly) multi threaded, multiple jit_state_t
+ environments.
+
+ * include/lightning/jit_arm.h, include/lightning/jit_private.h,
+ lib/jit_arm-cpu.c, lib/jit_arm.c: Make a previously, non
+ documented, global state private to the related jit_state_t
+ generating code.
+
2013-09-10 Paulo Andrade <address@hidden>
* check/self.c, check/self.ok: New files implementing simple
diff --git a/doc/body.texi b/doc/body.texi
index f647111..91ce9d7 100644
--- a/doc/body.texi
+++ b/doc/body.texi
@@ -1183,7 +1183,7 @@ time, it is required to used code similar to:
@example
struct jit_state lightning;
- #define _jit lightning
+ #define lightning _jit
@end example
This will cause the symbol defined to @code{_jit} to be passed as
diff --git a/include/lightning/jit_arm.h b/include/lightning/jit_arm.h
index f3f7d19..d217a4b 100644
--- a/include/lightning/jit_arm.h
+++ b/include/lightning/jit_arm.h
@@ -117,11 +117,6 @@ typedef struct {
jit_uint32_t abi : 2;
} jit_cpu_t;
-typedef struct {
- /* prevent using thumb instructions that set flags? */
- jit_uint32_t no_set_flags : 1;
-} jit_flags_t;
-
typedef jit_int64_t jit_regset_t;
/*
diff --git a/include/lightning/jit_private.h b/include/lightning/jit_private.h
index 511a04a..90d340a 100644
--- a/include/lightning/jit_private.h
+++ b/include/lightning/jit_private.h
@@ -396,6 +396,8 @@ struct jit_compiler {
jit_uint8_t *base;
} note;
#if __arm__
+ /* prevent using thumb instructions that set flags? */
+ jit_uint32_t no_set_flags : 1;
# if DISASSEMBLER
struct {
jit_data_info_t *ptr;
diff --git a/lib/jit_arm-cpu.c b/lib/jit_arm-cpu.c
index 71d178d..c91ac6e 100644
--- a/lib/jit_arm-cpu.c
+++ b/lib/jit_arm-cpu.c
@@ -29,7 +29,7 @@
# define _u16(v) ((v) & 0xffff)
# define _u24(v) ((v) & 0xffffff)
# define jit_thumb_p() jit_cpu.thumb
-# define jit_no_set_flags() jit_flags.no_set_flags
+# define jit_no_set_flags() _jitc->no_set_flags
# define jit_armv5_p() (jit_cpu.version >= 5)
# define jit_armv5e_p() (jit_cpu.version >= 5 && jit_cpu.extend)
# define jit_armv6_p() (jit_cpu.version >= 6)
diff --git a/lib/jit_arm.c b/lib/jit_arm.c
index 1cc444f..0f291b1 100644
--- a/lib/jit_arm.c
+++ b/lib/jit_arm.c
@@ -77,7 +77,6 @@ extern void __clear_cache(void *, void *);
* Initialization
*/
jit_cpu_t jit_cpu;
-jit_flags_t jit_flags;
jit_register_t _rvs[] = {
{ rc(gpr) | 0x0c, "ip" },
{ rc(sav) | rc(gpr) | 0x04, "r4" },
- [Guile-commits] 219/437: Remove redundancy in the hppa cache synchronization code., (continued)
- [Guile-commits] 219/437: Remove redundancy in the hppa cache synchronization code., Andy Wingo, 2018/07/02
- [Guile-commits] 245/437: S390X: Correct values of float registers saved on stack., Andy Wingo, 2018/07/02
- [Guile-commits] 224/437: Correct mips o32 abi that was broken when adding n32 abi support., Andy Wingo, 2018/07/02
- [Guile-commits] 230/437: New s390x port built on the hercules emulator and fedora 16 image., Andy Wingo, 2018/07/02
- [Guile-commits] 234/437: GNU lightning 2.0.0 release, Andy Wingo, 2018/07/02
- [Guile-commits] 256/437: X86: %r12 may be used as an index register., Andy Wingo, 2018/07/02
- [Guile-commits] 229/437: Do not assume cast of nan or inf double to float always work., Andy Wingo, 2018/07/02
- [Guile-commits] 231/437: Cosmetic removal of white spaces in end of lines., Andy Wingo, 2018/07/02
- [Guile-commits] 232/437: Correct off by one bug on s390x subi., Andy Wingo, 2018/07/02
- [Guile-commits] 123/437: Revert change aliasing jit_movi_p to jit_movi_ul., Andy Wingo, 2018/07/02
- [Guile-commits] 248/437: Correct wrong example and mt unsafe code in the arm backend.,
Andy Wingo <=
- [Guile-commits] 236/437: Correct build and make check on gcc111 - AIX 7.1., Andy Wingo, 2018/07/02
- [Guile-commits] 237/437: Correct build and check on NetBSD amd64., Andy Wingo, 2018/07/02
- [Guile-commits] 213/437: Finish Itanium port, correcting remaining failing test cases., Andy Wingo, 2018/07/02
- [Guile-commits] 253/437: IA64: Correct some wrong checks value range checks., Andy Wingo, 2018/07/02
- [Guile-commits] 254/437: ARM: Correct build when disassembler is disabled., Andy Wingo, 2018/07/02
- [Guile-commits] 251/437: Add code to calculate code buffer size based on devel time information., Andy Wingo, 2018/07/02
- [Guile-commits] 144/437: Add new ldst variant test cases to check base/index register clobber., Andy Wingo, 2018/07/02
- [Guile-commits] 212/437: Correct remaining test cases, but not yet ones with stack arguments., Andy Wingo, 2018/07/02
- [Guile-commits] 179/437: Add heuristic code to estimate space and resize if required jit buffer., Andy Wingo, 2018/07/02
- [Guile-commits] 265/437: PPC: Correct wrong ldxi_l simplification in 64 bit mode, Andy Wingo, 2018/07/02