forked from OSchip/llvm-project
Fix thumb condition extraction in ARM instrcution emulator
llvm-svn: 236988
This commit is contained in:
parent
2a3aa1f249
commit
3c1d572799
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue