From 4269b6d3d0aeff1cf1bae3eac5f40cceb75576e0 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 26 Aug 2023 17:13:56 +0300 Subject: apply fixes to make jit-comparison easier --- src/copyjit.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/copyjit.c') diff --git a/src/copyjit.c b/src/copyjit.c index 96616e3..8ca35eb 100644 --- a/src/copyjit.c +++ b/src/copyjit.c @@ -498,10 +498,12 @@ void compile_finish(ctx_t *ctx) __builtin___clear_cache(ctx->buf, ctx->buf + ctx->size); } -unsigned long run(ctx_t *ctx) +unsigned long run(ctx_t *ctx, + unsigned long a, unsigned long x, unsigned long y, + unsigned long o) { void *sp = malloc(4096); - unsigned long a = CALL(ctx->buf, sp, 0, 0, 0, 0); + unsigned long r = CALL(ctx->buf, sp, a, x, y, o); free(sp); - return a; + return r; } -- cgit v1.3