forked from OSchip/llvm-project
Fix write register context in EmulateInstructionARM::EmulateMOVRdRm
llvm-svn: 238431
This commit is contained in:
parent
3c007259a4
commit
034980681d
|
@ -815,7 +815,10 @@ EmulateInstructionARM::EmulateMOVRdRm (const uint32_t opcode, const ARMEncoding
|
|||
|
||||
// The context specifies that Rm is to be moved into Rd.
|
||||
EmulateInstruction::Context context;
|
||||
context.type = EmulateInstruction::eContextRegisterPlusOffset;
|
||||
if (Rd == 13)
|
||||
context.type = EmulateInstruction::eContextAdjustStackPointer;
|
||||
else
|
||||
context.type = EmulateInstruction::eContextRegisterPlusOffset;
|
||||
RegisterInfo dwarf_reg;
|
||||
GetRegisterInfo (eRegisterKindDWARF, dwarf_r0 + Rm, dwarf_reg);
|
||||
context.SetRegisterPlusOffset (dwarf_reg, 0);
|
||||
|
|
Loading…
Reference in New Issue