aboutsummaryrefslogtreecommitdiff
path: root/src/interp.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-04-02 21:16:13 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2025-04-02 21:16:13 +0300
commit89d9f5c3fc59eff3b1a46fe6d44f5ee92eeb7be4 (patch)
tree98e2ab35e8332e7dea389b1b680a32e974057406 /src/interp.c
parentb6642566af5ca9a21b7ce36ce9a996ff73f52da1 (diff)
downloadejit-89d9f5c3fc59eff3b1a46fe6d44f5ee92eeb7be4.tar.gz
ejit-89d9f5c3fc59eff3b1a46fe6d44f5ee92eeb7be4.zip
armhf seems to work
Diffstat (limited to 'src/interp.c')
-rw-r--r--src/interp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/interp.c b/src/interp.c
index 049498a..e7be77b 100644
--- a/src/interp.c
+++ b/src/interp.c
@@ -227,24 +227,24 @@ union interp_ret ejit_run(struct ejit_func *f, size_t paramc, struct ejit_arg pa
assert(f->size && "trying to run a function that hasn't been compiled");
- if (f->arena) {
+ if (f->extern_call) {
if (f->rtype == EJIT_INT64 || f->rtype == EJIT_UINT64)
return (union interp_ret){
- .i = ((ejit_escape_l_t)f->arena)(paramc, params)
+ .i = ((ejit_escape_l_t)f->extern_call)(paramc, params)
};
if (f->rtype == EJIT_DOUBLE)
return (union interp_ret){
- .f = ((ejit_escape_d_t)f->arena)(paramc, params)
+ .f = ((ejit_escape_d_t)f->extern_call)(paramc, params)
};
if (f->rtype == EJIT_FLOAT)
return (union interp_ret){
- .f = ((ejit_escape_f_t)f->arena)(paramc, params)
+ .f = ((ejit_escape_f_t)f->extern_call)(paramc, params)
};
return (union interp_ret){
- .i = ((ejit_escape_i_t)f->arena)(paramc, params)
+ .i = ((ejit_escape_i_t)f->extern_call)(paramc, params)
};
}