ARM64: Fix ARM BTI.

Reported by Yuichiro Naito. #1400
This commit is contained in:
Mike Pall
2025-10-29 09:38:31 +01:00
parent 864e78d66c
commit 5b20d6e305

View File

@@ -3497,6 +3497,9 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop)
|.endif |.endif
|->vm_IITERN: |->vm_IITERN:
| // RA = base, (RB = nresults+1, RC = nargs+1 (2+1)) | // RA = base, (RB = nresults+1, RC = nargs+1 (2+1))
|.if JIT
| bti_jump
|.endif
| add RA, BASE, RA, lsl #3 | add RA, BASE, RA, lsl #3
| ldr TAB:RB, [RA, #-16] | ldr TAB:RB, [RA, #-16]
| ldrh TMP3w, [PC, # OFS_RD] | ldrh TMP3w, [PC, # OFS_RD]