about summary refs log tree commit diff stats
path: root/src/dynarec/arm64/dynarec_arm64_jmpnext.c
blob: c40dfb1e0648b90ba30dbb61380a8bfb446231bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include <stdint.h>

#include "arm64_emitter.h"

#define EMIT(A) *block = (A); ++block
void CreateJmpNext(void* addr, void* next)
{
    uint32_t* block = (uint32_t*)addr;
    LDRx_literal(x2, (intptr_t)next - (intptr_t)addr);
    BR(x2);
}