Core: CRegisters::TriggerAddressException should only generate a TLB_MOD on writes

This commit is contained in:
zilmar 2024-02-29 15:13:14 +10:30
parent d2649f7a13
commit 25dc3ed36f
1 changed files with 1 additions and 1 deletions

View File

@ -783,7 +783,7 @@ void CRegisters::TriggerAddressException(uint64_t Address, uint32_t ExceptionCod
{ {
bool Dirty; bool Dirty;
SpecialOffset = !m_TLB.AddressDefined(Address, Dirty); SpecialOffset = !m_TLB.AddressDefined(Address, Dirty);
if (!Dirty) if (ExceptionCode == EXC_WMISS && Dirty == false)
{ {
ExceptionCode = EXC_MOD; ExceptionCode = EXC_MOD;
} }