mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-24 10:53:11 +00:00
arm64jit: Reprotect fixed code after icache flush.
This commit is contained in:
parent
4a27e99ee9
commit
257a4fdd12
@ -68,6 +68,10 @@ public:
|
||||
// If not WX Exclusive, no need to call ProtectMemoryPages because we never change the protection from RWX.
|
||||
PoisonMemory(offset);
|
||||
ResetCodePtr(offset);
|
||||
if (PlatformIsWXExclusive()) {
|
||||
// Need to re-protect the part we didn't clear.
|
||||
ProtectMemoryPages(region, offset, MEM_PROT_READ | MEM_PROT_EXEC);
|
||||
}
|
||||
}
|
||||
|
||||
// BeginWrite/EndWrite assume that we keep appending.
|
||||
|
@ -129,6 +129,7 @@ void Arm64Jit::ClearCache() {
|
||||
ILOG("ARM64Jit: Clearing the cache!");
|
||||
blocks.Clear();
|
||||
ClearCodeSpace(jitStartOffset);
|
||||
FlushIcacheSection(region + jitStartOffset, region + region_size - jitStartOffset);
|
||||
}
|
||||
|
||||
void Arm64Jit::InvalidateCacheAt(u32 em_address, int length) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user