Skip to content

Commit

Permalink
Merge branch 'cheat-icache' (PR #16234)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Oct 16, 2022
2 parents 7d53606 + 0226d95 commit 0719f1d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Core/MIPS/MIPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,15 +365,9 @@ void MIPSState::ProcessPendingClears() {

void MIPSState::InvalidateICache(u32 address, int length) {
// Only really applies to jit.
// Note that the backend is responsible for ensuring native code can still be returned to.
std::lock_guard<std::recursive_mutex> guard(MIPSComp::jitLock);
if (!MIPSComp::jit || length == 0)
return;

if (coreState == CORE_RUNNING || insideJit) {
pendingClears.emplace_back(address, length);
hasPendingClears = true;
CoreTiming::ForceCheck();
} else {
if (MIPSComp::jit && length != 0) {
MIPSComp::jit->InvalidateCacheAt(address, length);
}
}
Expand Down

0 comments on commit 0719f1d

Please sign in to comment.