From f307d0adafc7e35d2dc1c461d50f6572c5e6bca8 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sat, 3 Jan 2015 15:28:33 +0100 Subject: ARM64: Add build infrastructure and initial port of interpreter. --- src/host/buildvm_asm.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/host/buildvm_asm.c') diff --git a/src/host/buildvm_asm.c b/src/host/buildvm_asm.c index c91f5bcd..7bea4d17 100644 --- a/src/host/buildvm_asm.c +++ b/src/host/buildvm_asm.c @@ -121,6 +121,15 @@ static void emit_asm_wordreloc(BuildCtx *ctx, uint8_t *p, int n, ins, sym); exit(1); } +#elif LJ_TARGET_ARM64 + if ((ins >> 26) == 0x25u) { + fprintf(ctx->fp, "\tbl %s\n", sym); + } else { + fprintf(stderr, + "Error: unsupported opcode %08x for %s symbol relocation.\n", + ins, sym); + exit(1); + } #elif LJ_TARGET_PPC || LJ_TARGET_PPCSPE #if LJ_TARGET_PS3 #define TOCPREFIX "." -- cgit v1.2.3-55-g6feb