CPU/CodeCache: Always backpatch KSEG2 writes
This commit is contained in:
parent
c3a2156c79
commit
2e805d56dd
|
@ -1676,7 +1676,8 @@ PageFaultHandler::HandlerResult CPU::CodeCache::HandleFastmemException(void* exc
|
|||
|
||||
// if we're writing to ram, let it go through a few times, and use manual block protection to sort it out
|
||||
// TODO: path for manual protection to return back to read-only pages
|
||||
if (is_write && !g_state.cop0_regs.sr.Isc && AddressInRAM(guest_address))
|
||||
if (is_write && !g_state.cop0_regs.sr.Isc && GetSegmentForAddress(guest_address) != CPU::Segment::KSEG2 &&
|
||||
AddressInRAM(guest_address))
|
||||
{
|
||||
DEV_LOG("Ignoring fault due to RAM write @ 0x{:08X}", guest_address);
|
||||
InvalidateBlocksWithPageIndex(Bus::GetRAMCodePageIndex(guest_address));
|
||||
|
|
Loading…
Reference in New Issue