Take into account Rt2 for LDRD instructions aswell when checking if the instruction changes PC
This commit is contained in:
parent
266a703c67
commit
5c44792cb5
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue