diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2025-03-08 20:33:32 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2025-03-08 20:33:32 +0100 |
| commit | 0724f52d5f25ad27b45aa5309eb362ebc2e225ad (patch) | |
| tree | 7a16a2a43359935d4c2d062acdaa46571b31f8bd /src | |
| parent | 61a605a2dc381917c29b09812ff93613cc862709 (diff) | |
| download | box64-0724f52d5f25ad27b45aa5309eb362ebc2e225ad.tar.gz box64-0724f52d5f25ad27b45aa5309eb362ebc2e225ad.zip | |
[ARM64_DYNAREC] Fixed inlined ClearCache, re-enabling it
Diffstat (limited to 'src')
| -rw-r--r-- | src/dynarec/dynarec_native.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dynarec/dynarec_native.c b/src/dynarec/dynarec_native.c index fdbeab47..3827b492 100644 --- a/src/dynarec/dynarec_native.c +++ b/src/dynarec/dynarec_native.c @@ -509,10 +509,10 @@ static instruction_native_t static_insts[MAX_INSTS+2] = {0}; void ClearCache(void* start, size_t len) { // disabled for now, seems to not clear some page correctly (happens with Celeste64 or CivBE for example) -#if 0//defined(ARM64) +#if defined(ARM64) // manually clear cache, I have issue with regular function on Ampere with kernel 6.12.4 uintptr_t xstart = (uintptr_t)start; - uintptr_t xend = (uintptr_t)start + len; + uintptr_t xend = (uintptr_t)start + len + 1; // Cache Type Info. Only grab the info once static uint64_t ctr_el0 = 0; if (ctr_el0 == 0) |