Take into account Rt2 for LDRD instructions aswell when checking if the instruction changes PC

This commit is contained in:
gdkchan 2019-01-27 20:49:14 -02:00
parent 266a703c67
commit 5c44792cb5

View file

@ -189,6 +189,13 @@ namespace ChocolArm64.Decoders
rn = opMem.Rn;
wBack = opMem.WBack;
isLoad = opMem.IsLoad;
//For the dual load, we also need to take into account the
//case were Rt2 == 15 (PC).
if (rt == 14 && opMem.Emitter == InstEmit32.Ldrd)
{
rt = RegisterAlias.Aarch32Pc;
}
}
else if (opCode is IOpCode32MemMult opMemMult)
{