fix LDM usermode for aarch64 as well

This commit is contained in:
RSDuck
2020-02-04 19:07:30 +01:00
parent 2dbb9840fb
commit 42d67c8145
3 changed files with 5 additions and 2 deletions

View File

@ -639,7 +639,7 @@ s32 Compiler::Comp_MemAccessBlock(int rn, BitSet16 regs, bool store, bool preinc
int reg = *it;
if (usermode && reg >= 8 && reg < 15)
if (usermode && !regs[15] && reg >= 8 && reg < 15)
{
if (RegCache.Mapping[reg] != INVALID_REG)
MOV(W3, MapReg(reg));