Handle the case of interworking branch for EmulateLDMDA.

llvm-svn: 125392
This commit is contained in:
Johnny Chen 2011-02-11 19:37:03 +00:00
parent 18f6a33457
commit f1075ce0e6
1 changed files with 2 additions and 1 deletions

View File

@ -1996,7 +1996,8 @@ EmulateInstructionARM::EmulateLDMDA (ARMEncoding encoding)
uint32_t data = ReadMemoryUnsigned (context, address + offset, addr_byte_size, 0, &success);
if (!success)
return false;
if (!WriteRegisterUnsigned (context, eRegisterKindGeneric, LLDB_REGNUM_GENERIC_PC, data))
// In ARMv5T and above, this is an interworking branch.
if (!LoadWritePC(context, data))
return false;
}