Interpreter_LoadStore: Properly update the DAR whenever an alignment exception occurs within eciwx and ecowx
These should be updating the DAR when an alignment exception occurs, just like every other instruction that can cause an alignment exception.
This commit is contained in:
parent
c1b78106e7
commit
a013638dcb
|
@ -433,8 +433,12 @@ void Interpreter::eciwx(UGeckoInstruction inst)
|
|||
{
|
||||
PowerPC::ppcState.Exceptions |= EXCEPTION_DSI;
|
||||
}
|
||||
|
||||
if (EA & 3)
|
||||
PowerPC::ppcState.Exceptions |= EXCEPTION_ALIGNMENT;
|
||||
{
|
||||
GenerateAlignmentException(EA);
|
||||
return;
|
||||
}
|
||||
|
||||
rGPR[inst.RD] = PowerPC::Read_U32(EA);
|
||||
}
|
||||
|
@ -447,8 +451,12 @@ void Interpreter::ecowx(UGeckoInstruction inst)
|
|||
{
|
||||
PowerPC::ppcState.Exceptions |= EXCEPTION_DSI;
|
||||
}
|
||||
|
||||
if (EA & 3)
|
||||
PowerPC::ppcState.Exceptions |= EXCEPTION_ALIGNMENT;
|
||||
{
|
||||
GenerateAlignmentException(EA);
|
||||
return;
|
||||
}
|
||||
|
||||
PowerPC::Write_U32(rGPR[inst.RS], EA);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue