Core: CRegisters::TriggerAddressException should only generate a TLB_MOD on writes
This commit is contained in:
parent
d2649f7a13
commit
25dc3ed36f
|
@ -783,7 +783,7 @@ void CRegisters::TriggerAddressException(uint64_t Address, uint32_t ExceptionCod
|
|||
{
|
||||
bool Dirty;
|
||||
SpecialOffset = !m_TLB.AddressDefined(Address, Dirty);
|
||||
if (!Dirty)
|
||||
if (ExceptionCode == EXC_WMISS && Dirty == false)
|
||||
{
|
||||
ExceptionCode = EXC_MOD;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue