diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-02-27 19:06:21 +0800 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-02-27 19:06:21 +0800 |
| commit | 2f1024f16763165db359e7c30ad7034a4434d752 (patch) | |
| tree | 23423a5e8407bbd59516927c3bceb5bcd3b3ab04 /src/custommem.c | |
| parent | 6d4183934128e58bcfe27d419a41a89ed073e0b7 (diff) | |
| download | box64-2f1024f16763165db359e7c30ad7034a4434d752.tar.gz box64-2f1024f16763165db359e7c30ad7034a4434d752.zip | |
[DYNAREC] More multi-arch work
Diffstat (limited to 'src/custommem.c')
| -rw-r--r-- | src/custommem.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/custommem.c b/src/custommem.c index c92b7b03..236456a0 100644 --- a/src/custommem.c +++ b/src/custommem.c @@ -644,6 +644,9 @@ void cleanDBFromAddressRange(uintptr_t addr, size_t size, int destroy) #ifdef ARM64 void arm64_next(void); #define native_next arm64_next +#elif defined(LA464) +void la464_next(void); +#define native_next la464_next #else #error Unsupported architecture #endif @@ -1162,7 +1165,6 @@ void init_custommem_helper(box64context_t* ctx) memprot[i] = memprot_default; init_mutexes(); #ifdef DYNAREC -#ifdef ARM64 if(box64_dynarec) for(int i=0; i<(1<<JMPTABL_SHIFT); ++i) { box64_jmptbldefault0[i] = (uintptr_t)native_next; @@ -1170,9 +1172,6 @@ void init_custommem_helper(box64context_t* ctx) box64_jmptbldefault2[i] = box64_jmptbldefault1; box64_jmptbl3[i] = box64_jmptbldefault2; } -#else -#error Unsupported architecture! -#endif #endif pthread_atfork(NULL, NULL, atfork_child_custommem); } |