Skip to content

Commit 0fdeea8

Browse files
committed
Fix jit bug and drop unused meson option
1 parent 2bc4abb commit 0fdeea8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

include/jit.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ class jit {
242242
uint32_t *p = (uint32_t *)cur;
243243
*p = 0x14000000;
244244
ssize_t imm = ((ssize_t)target - (ssize_t)cur);
245-
assert(imm < (1 << 28));
246-
assert(imm >= -(1 << 28));
245+
assert(imm < (1 << 27));
246+
assert(imm >= -(1 << 27));
247247
assert((imm & 3) == 0);
248248
*p |= (((size_t)imm & 0xfffffff) >> 2);
249249
cur += 4;

meson_options.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ option('ios', type : 'boolean', value : false)
22
option('android', type : 'boolean', value : false)
33
option('gem5', type : 'boolean', value : false)
44
option('linux-cross', type : 'combo', choices: ['none', 'aarch64'], value : 'none')
5-
option('apple_m1', type : 'combo', choices : ['icestorm', 'firestorm'], value : 'firestorm')

0 commit comments

Comments
 (0)