diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-04-02 21:16:13 +0300 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-04-02 21:16:13 +0300 |
commit | 89d9f5c3fc59eff3b1a46fe6d44f5ee92eeb7be4 (patch) | |
tree | 98e2ab35e8332e7dea389b1b680a32e974057406 /src/compile | |
parent | b6642566af5ca9a21b7ce36ce9a996ff73f52da1 (diff) | |
download | ejit-89d9f5c3fc59eff3b1a46fe6d44f5ee92eeb7be4.tar.gz ejit-89d9f5c3fc59eff3b1a46fe6d44f5ee92eeb7be4.zip |
armhf seems to work
Diffstat (limited to 'src/compile')
-rw-r--r-- | src/compile/compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compile/compile.c b/src/compile/compile.c index dac8dfd..3b5399a 100644 --- a/src/compile/compile.c +++ b/src/compile/compile.c @@ -1927,7 +1927,7 @@ static void compile_trampoline(struct ejit_func *f, jit_state_t *j) jit_leave_jit_abi(j, 0, 0, frame); jit_ret(j); /* should just forward the return value */ - f->direct_call = jit_address(j); + f->direct_call = jit_address_to_function_pointer(jit_address(j)); jit_patch_here(j, r); operands_destroy(&args); @@ -2435,7 +2435,7 @@ calli: relocs_destroy(&relocs); addrs_destroy(&addrs); - if (jit_end(j, &size)) + if ((f->extern_call = jit_end(j, &size))) return 0; return size; |