dynarec: raise sh4 address error if trying to compile unaligned address

Error was only raised when mmu is enabled.
tentative fix for MINIDUMP-3Q
This commit is contained in:
Flyinghead 2023-01-16 17:53:01 +01:00
parent 9954768636
commit b4ecaecd45
1 changed files with 8 additions and 0 deletions

View File

@ -147,8 +147,16 @@ bool RuntimeBlockInfo::Setup(u32 rpc,fpscr_t rfpu_cfg)
return false;
}
}
else if (vaddr & 1)
{
// read address error
Do_Exception(vaddr, 0xE0, 0x100);
return false;
}
else
{
addr = vaddr;
}
fpu_cfg=rfpu_cfg;
oplist.clear();