Fix thumb condition extraction in ARM instrcution emulator

llvm-svn: 236988
This commit is contained in:
Tamas Berghammer 2015-05-11 12:50:56 +00:00
parent 2a3aa1f249
commit 3c1d572799
1 changed files with 2 additions and 2 deletions

View File

@ -13062,8 +13062,8 @@ EmulateInstructionARM::CurrentCond (const uint32_t opcode)
const uint32_t byte_size = m_opcode.GetByteSize();
if (byte_size == 2)
{
if (Bits32(opcode, 15, 12) == 0x0d && Bits32(opcode, 11, 7) != 0x0f)
return Bits32(opcode, 11, 7);
if (Bits32(opcode, 15, 12) == 0x0d && Bits32(opcode, 11, 8) != 0x0f)
return Bits32(opcode, 11, 8);
}
else if (byte_size == 4)
{