mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-02-09 01:30:42 +00:00
fix protection changes on translation cache + cosmetic fixlet
This commit is contained in:
parent
3fcceb052c
commit
c21650b7a8
@ -5114,7 +5114,7 @@ void init_comp(void)
|
||||
live.fate[i].status=INMEM;
|
||||
}
|
||||
else
|
||||
live.fate[i].mem=(uae_u32*)(scratch.fregs+i);
|
||||
live.fate[i].mem=(uae_u32*)(&scratch.fregs[i]);
|
||||
}
|
||||
|
||||
|
||||
@ -5652,7 +5652,7 @@ void alloc_cache(void)
|
||||
cache_size /= 2;
|
||||
}
|
||||
}
|
||||
vm_protect(compiled_code, cache_size, VM_PAGE_READ | VM_PAGE_WRITE | VM_PAGE_EXECUTE);
|
||||
vm_protect(compiled_code, cache_size * 1024, VM_PAGE_READ | VM_PAGE_WRITE | VM_PAGE_EXECUTE);
|
||||
|
||||
if (compiled_code) {
|
||||
write_log("<JIT compiler> : actual translation cache size : %d KB at 0x%08X\n", cache_size, compiled_code);
|
||||
|
Loading…
x
Reference in New Issue
Block a user