mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-27 03:47:11 -05:00
Interpreter_LoadStore: Flag alignment exceptions on misaligned addresses in lwarx, lmw, stmw, and stwcx
The effective address given to these instructions must be word (4 byte) aligned, and if the address is not aligned like that, then an alignment exception gets triggered. We currently don't update the DSISR in this case properly, since we didn't really handle alignment exceptions outside of ecowx and eciwx, and even then the handling of it isn't really that great, considering the DAR isn't updated with the address that caused the exception to occur. The DSISR will eventually be amended to be properly updated.
This commit is contained in:
@@ -474,8 +474,6 @@ void CheckExceptions()
|
||||
}
|
||||
else if (exceptions & EXCEPTION_ALIGNMENT)
|
||||
{
|
||||
// This never happens ATM
|
||||
// perhaps we can get dcb* instructions to use this :p
|
||||
SRR0 = PC;
|
||||
SRR1 = MSR & 0x87C0FFFF;
|
||||
MSR |= (MSR >> 16) & 1;
|
||||
|
||||
Reference in New Issue
Block a user