mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-29 22:40:34 +02:00
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.
This commit is contained in:
parent
a62f405751
commit
5a2df005c5
6 changed files with 15 additions and 8 deletions
|
@ -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)
|
||||
|
|
|
@ -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" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue